Skip to content

Commit b7b3dd7

Browse files
authored
Merge pull request #2758 from ORCID/lmendoza/PD-5076
PD-5076
2 parents 00eb960 + 18d2371 commit b7b3dd7

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/app/core/record-works/record-works.service.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ export class RecordWorksService {
621621
/**
622622
* Loads data for the new Import Works dialog (certified + more services).
623623
* Use when SEARCH_AND_LINK_WIZARD_WITH_CERTIFIED_AND_FEATURED_LINKS is enabled.
624-
* Certified/Featured: description from S3 localize.properties by client id, else redirectUriMetadata.defaultDescription.
625-
* More Services: description from top-level `description` only.
624+
* Certified, Featured, and Default: description from S3 localize.properties by client id
625+
* (keys `${clientId}-client-description` or `clientId`), else redirectUriMetadata.defaultDescription or top-level description.
626626
*/
627627
loadSearchAndLinkWizardDialogData(
628628
locale: string
@@ -703,7 +703,12 @@ export class RecordWorksService {
703703
index,
704704
})
705705
} else {
706-
const description = item.description ?? ''
706+
const description =
707+
localizeByClientId[`${item.id}-client-description`] ??
708+
localizeByClientId[item.id] ??
709+
item.redirectUriMetadata?.defaultDescription ??
710+
item.description ??
711+
''
707712
defaultForMore.push({ name, description, url: oauthUrl, imageUrl })
708713
}
709714
}

0 commit comments

Comments
 (0)