Skip to content

Minor text modification#210

Open
mesemus wants to merge 5 commits intordm-14from
minor-text-modification
Open

Minor text modification#210
mesemus wants to merge 5 commits intordm-14from
minor-text-modification

Conversation

@mesemus
Copy link
Copy Markdown
Collaborator

@mesemus mesemus commented Feb 9, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 9, 2026 06:44
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

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

Updates the record detail permalink area to distinguish between the record’s primary persistent identifier and the RIV-only link, with corresponding styling and translation updates, and adjusts the record detail layout/sidebar configuration.

Changes:

  • Reworks the permalink UI into two Semantic UI segments (primary persistent identifier vs. RIV-only link) with copy buttons.
  • Updates record detail header layout classes and adds LESS styling for the new segments.
  • Regenerates translation catalogs for new/updated strings and removes citation/export sidebar templates from the detail sidebar config.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
ui/datasets/templates/semantic-ui/datasets/record_detail/permalink.html Replaces the old permalink header with two labeled identifier sections and new copy buttons.
ui/datasets/templates/semantic-ui/datasets/record_detail/main.html Adjusts grid/column classes and wraps the permalink include in a dedicated container.
assets/less/site/elements/segment.overrides Adds styling rules for the new identifier segments and headers.
invenio.cfg Removes citation/export sidebar templates from APP_RDM_DETAIL_SIDE_BAR_TEMPLATES.
translations/messages.pot Regenerates the POT with new strings and updated source references.
translations/en/LC_MESSAGES/messages.po Updates English catalog to match the regenerated POT and new strings.
translations/cs/LC_MESSAGES/messages.po Updates Czech catalog to match the regenerated POT and new strings.

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

Comment on lines +10 to +12
<span class="identifier-link" data-testid="record-detail-title-persistent-identifier">
<strong>{{ persistent_url | trim }}</strong>
<ClipboardCopyButton className="ml-5" copyText={{persistent_url}} />
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

persistent_url can be missing/None (other templates guard it with {% if persistent_url %}), but here it’s always rendered and passed into ClipboardCopyButton. This can result in an empty/"None" identifier and a copy button with an invalid value. Wrap the primary identifier segment (or at least the <strong> + copy button) in an if persistent_url guard, and consider falling back to record_permalink if that’s the desired behavior when persistent_url is absent.

Suggested change
<span class="identifier-link" data-testid="record-detail-title-persistent-identifier">
<strong>{{ persistent_url | trim }}</strong>
<ClipboardCopyButton className="ml-5" copyText={{persistent_url}} />
<span class="identifier-link" data-testid="record-detail-title-persistent-identifier">
{% if persistent_url %}
<strong>{{ persistent_url | trim }}</strong>
<ClipboardCopyButton className="ml-5" copyText={{persistent_url}} />
{% else %}
<strong>{{ record_permalink | trim }}</strong>
<ClipboardCopyButton className="ml-5" copyText={{record_permalink}} />
{% endif %}

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes correct assumption

Comment thread translations/messages.pot
Comment thread translations/en/LC_MESSAGES/messages.po
Comment thread translations/cs/LC_MESSAGES/messages.po
Comment thread invenio.cfg
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.

4 participants