-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
0677f2a
to
7fa73c3
Compare
There was a problem hiding this 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| |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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-)']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🇬🇷
ebd1fa8
to
c8e2a49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sandbergja 🍄 🍄
This adds a new solr field,
language_name_display
, which we could then add to the Show page.Part of #2069