Skip to content

ZCU-PUB/ORCID-badge#1293

Merged
milanmajchrak merged 4 commits into
customer/zcu-pubfrom
zcu-pub/orcid
May 22, 2026
Merged

ZCU-PUB/ORCID-badge#1293
milanmajchrak merged 4 commits into
customer/zcu-pubfrom
zcu-pub/orcid

Conversation

@milanmajchrak

Copy link
Copy Markdown
Collaborator

Problem description

Issue: https://github.com/dataquest-dev/dspace-customers/issues/507

Analysis

(Write here, if there is needed describe some specific problem. Erase it, when it is not needed.)

Problems

(Write here, if some unexpected problems occur during solving issues. Erase it, when it is not needed.)

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 and others added 3 commits May 21, 2026 14:12
* Add orcid hyperlink to author in item view

* Url orcid fetch from backend instead of hardcoded

* Remove duplicate import

* Fix unit test

* Handled edge cases with orcid domain url

* Usinng behaviour subject

* Removed not wanted async property

---------

Co-authored-by: Matus Kasak <matus.kasak@dataquest.sk>
* Fixed ORCID badge

---------

Co-authored-by: Matus Kasak <matus.kasak@dataquest.sk>
Copilot AI review requested due to automatic review settings May 21, 2026 12:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds ORCID-specific rendering for authority-controlled author metadata in the plain-text metadata list element, using a backend-configured ORCID domain URL to generate a clickable ORCID badge/link.

Changes:

  • Fetch orcid.domain-url via ConfigurationDataService and expose it to the template for ORCID link generation.
  • Render authority-controlled values as an ORCID link + ORCID icon when the authority matches an ORCID iD pattern; otherwise keep plain-text rendering.
  • Add styling for the ORCID link/icon and extend unit tests (including updating the loader spec to provide ConfigurationDataService).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.ts Loads ORCID domain config and adds ORCID detection/URL helpers.
src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.html Conditionally renders ORCID authority as external link with icon.
src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.scss Adds styling for ORCID link/icon.
src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.spec.ts Adds test coverage for ORCID/non-ORCID behavior and URL building.
src/app/shared/metadata-representation/metadata-representation-loader.component.spec.ts Updates test setup to provide ConfigurationDataService dependency.

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

@milanmajchrak milanmajchrak merged commit a6b90a3 into customer/zcu-pub May 22, 2026
4 checks passed
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.

3 participants