Skip to content

DR-3764 Display multiple languages #423

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

Merged
merged 5 commits into from
Aug 1, 2025
Merged

Conversation

keithbauer
Copy link
Member

@keithbauer keithbauer commented Jul 30, 2025

Ticket:

This PR does the following:

  • Displays multiple languages when applicable

Open questions

How has this been tested? How should a reviewer test this?

Tested locally with http://localhost:3000/items/e06d3e10-c553-012f-193f-58d385a7bc34?canvasIndex=0

image

Accessibility concerns or updates

Checklist:

  • I have added relevant accessibility documentation for this pull request.
  • All new and existing tests passed.
  • I have updated the CHANGELOG.md.

@keithbauer keithbauer requested a review from avertrees July 30, 2025 18:47
Copy link

vercel bot commented Jul 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
digital-collections ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2025 4:25pm

@keithbauer keithbauer changed the title Display multiple languages DR-3764 Display multiple languages Jul 30, 2025
@keithbauer keithbauer requested a review from sarangj July 31, 2025 14:34
Copy link
Contributor

@sarangj sarangj left a comment

Choose a reason for hiding this comment

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

One small comment, otherwise looks good!

@@ -22,7 +22,7 @@ export function normalizeItemMetadataFromManifest(
physicalDescription: joinWithBr(raw["Physical Description"]),
typeOfResource: joinWithBr(raw["Resource Type"]),
abstract: raw["Abstract"]?.[0] || "",
languages: raw["Languages"]?.[0] || "",
languages: joinWithBr(raw["Languages"]) || "",
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like joinWithBr always returns a string, so don't need to keep the || "" bit!

@keithbauer keithbauer merged commit f6802ce into main Aug 1, 2025
5 checks passed
@keithbauer keithbauer deleted the DR-3764/multiple-languages branch August 1, 2025 16:36
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