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

i2069: Add a new field for specific languages on the Show page #2092

Merged
merged 2 commits into from
Mar 14, 2023

Conversation

sandbergja
Copy link
Member

This adds a new solr field, language_name_display, which we could then add to the Show page.

Part of #2069

christinach
christinach previously approved these changes Mar 14, 2023
Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

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

Thank you @sandbergja 🍄 . Just one comment in traject_config.

As part of a new ticket can we add a document in the docs/ file describing the need and the logic of the language display field ? I'm thinking more of the meeting we had with the catalogers and the info they provided.

@@ -727,6 +728,10 @@
# 546 XX 3a
to_field 'language_display', extract_marc('5463a')

to_field 'language_name_display' do |record, accumulator|
Copy link
Member

Choose a reason for hiding this comment

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

@sandbergja can you add a comment that this field will be used to show specific languages in the record page?

Copy link
Member

Choose a reason for hiding this comment

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

I created one. #2100

end
let(:extractor) { described_class.new(LanguageService.new, MARC::Record.new_from_hash('fields' => fields)) }
it 'finds a language from the 008' do
expect(extractor.specific_names).to eq(['Modern Greek (1453-)'])
Copy link
Member

Choose a reason for hiding this comment

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

🇬🇷

Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

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

Thank you @sandbergja 🍄 🍄

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