Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix/normalize media #119

Merged
merged 5 commits into from
Jan 8, 2025
Merged

Bug fix/normalize media #119

merged 5 commits into from
Jan 8, 2025

Conversation

southeo
Copy link
Collaborator

@southeo southeo commented Jan 7, 2025

see jira for more information

@southeo southeo requested a review from samleeflang January 7, 2025 10:25
Copy link
Contributor

@samleeflang samleeflang left a comment

Choose a reason for hiding this comment

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

🍰

@@ -22,4 +23,8 @@ private ServiceUtils() {
);
}

public static String normalizeMediaId(DigitalMediaRequestAttributes request) {
return request.getLinkedDigitalObjectPid() + ":" + request.getPrimaryMediaId();
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok this is probably good. Although with this particular issue this wouldn't have solved it as it were multiple images with the same URL for the same linkedDigitalObject. But we will fix that at ingestion so that should never occur again

@southeo southeo merged commit 15f0dbf into main Jan 8, 2025
3 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.

2 participants