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

Fix language code concatenation orginating from the <oai_dc> in the public XML #4728

Open
andrewjbtw opened this issue Nov 9, 2023 · 1 comment

Comments

@andrewjbtw
Copy link

The <oai_dc> element in the public XML is used to generate IIIF manifests, which then power the metadata display in Mirador and (soon) the Media viewer.

There is a problem somewhere in the transformation into <oai_dc> that's causing language codes to be concatenated:

<dc:language>ArabicaraArabicArab</dc:language>

This string is then ending up in embed viewers:

Screenshot 2023-11-09 at 2 34 54 PM

There's a stylesheet that generated DC from MODS that is probably the source of the issue:
https://github.com/sul-dlss/dor-services-app/blob/main/app/services/publish/mods2dc.xslt

@andrewjbtw
Copy link
Author

It occurs to me now that I understand where the DC is created, this ticket should move to the DSA repo. I'll see if I can do that myself.

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

No branches or pull requests

1 participant