Skip to content

ZCU-PUB/Update author redirect based on configuration#1298

Open
Kasinhou wants to merge 3 commits into
customer/zcu-pubfrom
zcu-pub/author-orcid-update
Open

ZCU-PUB/Update author redirect based on configuration#1298
Kasinhou wants to merge 3 commits into
customer/zcu-pubfrom
zcu-pub/author-orcid-update

Conversation

@Kasinhou
Copy link
Copy Markdown

@Kasinhou Kasinhou commented May 28, 2026

Problem description

BE PR: dataquest-dev/DSpace#1324
Authors with ORCID have icon next to name (redirect to orcid url). When clicking on author name, you can configure if it will redirect to orcid url or default browse as it was before.

Sync verification

If en.json5 or cs.json5 translation files were updated:

  • Run yarn run sync-i18n -t src/assets/i18n/cs.json5 -i to synchronize messages, and changes are included in this PR.

Manual Testing (if applicable)

Copilot review

  • Requested review from Copilot

@Kasinhou Kasinhou self-assigned this May 28, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes ORCID-author authority rendering configurable, allowing author names to either link to ORCID profiles or to the existing browse-by-author page while keeping an ORCID icon link available.

Changes:

  • Adds ORCID utility helpers for loading configuration, detecting ORCID authority values, and building profile URLs.
  • Updates the plain-text metadata representation component/template to support orcid.author.link-target.
  • Adds the ORCID link title translation and styling for standalone ORCID icon links.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/app/shared/utils/orcid-author.util.ts Adds ORCID config loading, authority detection, and URL construction helpers.
src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.ts Loads ORCID-related config and exposes helpers for ORCID/browse rendering.
src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.html Adds configurable ORCID-vs-browse author link rendering.
src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.scss Styles the standalone ORCID icon link.
src/assets/i18n/en.json5 Adds English ORCID profile link title.
src/assets/i18n/cs.json5 Adds Czech ORCID profile link title.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/shared/utils/orcid-author.util.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants