Skip to content

Conversation

@bram-maegerman
Copy link

Port of #4737 by @bram-maegerman to dspace-8_x

Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

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

@bram-maegerman : Thanks also for this backport. Similar to my review on #4881, I believe there's a few minor bugs in this backport. Also there's a change that is unrelated to this PR. See inline below.

Once this is updated, I can retest / rereview.

for (const inputKey of inputKeys) {
if (inputKey.includes('*')) {
const inputKeyRegex = new RegExp('^' + inputKey.replace(/\\/g, '\\\\').replace(/\./g, '\\.').replace(/\*/g, '.*') + '$');
const inputKeyRegex = new RegExp('^' + inputKey.replace(/\./g, '\\.').replace(/\*/g, '.*') + '$');
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this change, as this seems to be reverting a different bug fix. In other words this change is not in the original PR you are backporting.

[innerHTML]="item.firstMetadataValue('dc.publisher') + ', '"></span>
[innerHTML]="item.firstMetadataValue('dc.publisher', undefined, true) + ', '"></span>
<span class="item-list-date"
[innerHTML]="item.firstMetadataValue('dc.date.issued') || ('mydspace.results.no-date' | translate)"></span>)
Copy link
Member

Choose a reason for hiding this comment

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

Same as #4881, I think this line needs to be changed to item.firstMetadataValue('dc.date.issued', undefined, true) to align with #4737 Or am I missing something?

Comment on lines +36 to 37
<span [ngClass]="{'text-muted': !item.hasMetadata('dc.description.abstract')}"
[innerHTML]="(item.firstMetadataValue('dc.description.abstract')) || ('mydspace.results.no-abstract' | translate)"></span>
Copy link
Member

Choose a reason for hiding this comment

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

Same as #4881, I think this needs to be updated to item.firstMetadataValue('dc.description.abstract', undefined, true) in order to align with #4737.

@github-project-automation github-project-automation bot moved this from 🙋 Needs Reviewers Assigned to 👀 Under Review in DSpace Maintenance (9.x, 8.x, 7.6.x) Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug component: Item (Archived) Item display or editing high priority

Projects

Status: 👀 Under Review

Development

Successfully merging this pull request may close these issues.

3 participants