From c49fa3c223713ceff71cc062e77ae910896559ce Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Tue, 19 Nov 2024 11:29:06 -0500 Subject: [PATCH] Update projects/registrations/preprints table to have title link to project --- app/institutions/dashboard/preprints/controller.ts | 4 +++- app/institutions/dashboard/projects/controller.ts | 4 +++- app/institutions/dashboard/registrations/controller.ts | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/institutions/dashboard/preprints/controller.ts b/app/institutions/dashboard/preprints/controller.ts index 0158ad7e54..c51f5c42de 100644 --- a/app/institutions/dashboard/preprints/controller.ts +++ b/app/institutions/dashboard/preprints/controller.ts @@ -14,7 +14,9 @@ export default class InstitutionDashboardPreprints extends Controller { columns: ObjectListColumn[] = [ { // Title name: this.intl.t('institutions.dashboard.object-list.table-headers.title'), - getValue: searchResult => searchResult.displayTitle, + type: 'link', + getHref: searchResult => searchResult.indexCard.get('osfIdentifier'), + getLinkText: searchResult => searchResult.displayTitle, }, { // Link name: this.intl.t('institutions.dashboard.object-list.table-headers.link'), diff --git a/app/institutions/dashboard/projects/controller.ts b/app/institutions/dashboard/projects/controller.ts index 6e80d937ef..22e27b6d25 100644 --- a/app/institutions/dashboard/projects/controller.ts +++ b/app/institutions/dashboard/projects/controller.ts @@ -14,7 +14,9 @@ export default class InstitutionDashboardProjects extends Controller { columns: ObjectListColumn[] = [ { // Title name: this.intl.t('institutions.dashboard.object-list.table-headers.title'), - getValue: searchResult => searchResult.displayTitle, + type: 'link', + getHref: searchResult => searchResult.indexCard.get('osfIdentifier'), + getLinkText: searchResult => searchResult.displayTitle, }, { // Link name: this.intl.t('institutions.dashboard.object-list.table-headers.link'), diff --git a/app/institutions/dashboard/registrations/controller.ts b/app/institutions/dashboard/registrations/controller.ts index 7a997a0af5..d991172f29 100644 --- a/app/institutions/dashboard/registrations/controller.ts +++ b/app/institutions/dashboard/registrations/controller.ts @@ -13,7 +13,9 @@ export default class InstitutionDashboardRegistrations extends Controller { columns: ObjectListColumn[] = [ { // Title name: this.intl.t('institutions.dashboard.object-list.table-headers.title'), - getValue: searchResult => searchResult.displayTitle, + type: 'link', + getHref: searchResult => searchResult.indexCard.get('osfIdentifier'), + getLinkText: searchResult => searchResult.displayTitle, }, { // Link name: this.intl.t('institutions.dashboard.object-list.table-headers.link'),