Skip to content

Commit

Permalink
fix: add human_readable_related_records to notes section on ursus ite…
Browse files Browse the repository at this point in the history
…m page
  • Loading branch information
pghorpade committed Nov 9, 2023
1 parent 369b7b8 commit 92a5fe1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ class CatalogController < ApplicationController
config.add_show_field 'provenance_tesim', label: 'Provenance'
config.add_show_field 'colophon_tesim', label: 'Colophon'
config.add_show_field 'note_tesim', label: 'Note'
config.add_show_field 'resp_statement_tesim', label: 'Statement of responsibility'
config.add_show_field 'resp_statement_tesim', label: 'Statement of Responsibility'
config.add_show_field 'citation_source_tesim', label: 'References'
config.add_show_field 'related_to_ssm', label: 'Related Items', auto_link: true # make this field url aware
config.add_show_field 'related_record_ssm', label: 'Related Records', auto_link: true # make this field url aware
config.add_show_field 'human_readable_related_record_title_ssm', label: 'Related Records'

# Physical description
config.add_show_field 'medium_tesim', label: 'Medium'
Expand Down
2 changes: 1 addition & 1 deletion config/metadata/note_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ colophon_tesim: 'Colophon'
provenance_tesim: 'Provenance'
note_tesim: 'Note'
related_to_ssm: 'Related items'
related_record_ssm: 'Related records'
human_readable_related_record_title_ssm: 'Related records'
# toc_tesim: 'Table of Contents' (render_table_of_contents_key / value)
resp_statement_tesim: 'Statement of Responsibility'
citation_source_tesim: 'References'
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/catalog_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"interviewer_tesim", "interviewee_tesim", "cartographer_tesim",
"artist_tesim", "recipient_tesim", "director_tesim", "producer_tesim", "host_tesim",
"musician_tesim", "printer_tesim", "researcher_tesim",
'format_book_tesim', 'resp_statement_tesim', 'citation_source_tesim', 'related_to_ssm', 'related_record_ssm', "oai_set_ssim"]
'format_book_tesim', 'resp_statement_tesim', 'citation_source_tesim', 'related_to_ssm', 'human_readable_related_record_title_ssm', "oai_set_ssim"]
end

it 'has exactly expected show fields' do
Expand Down
4 changes: 2 additions & 2 deletions spec/presenters/ursus/note_metadata_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'provenance_tesim' => 'Provenance',
'note_tesim' => 'Note',
'related_to_ssm' => 'Related items',
'related_record_ssm' => 'Related records',
'human_readable_related_record_title_ssm' => 'Related records',
'resp_statement_tesim' => 'Statement of responsibility',
'citation_source_tesim' => 'References',
'incipit_tesim' => 'Incipit',
Expand Down Expand Up @@ -65,7 +65,7 @@
end

it 'returns the Related records Key' do
expect(config['related_record_ssm'].to_s).to eq('Related records')
expect(config['human_readable_related_record_title_ssm'].to_s).to eq('Related records')
end

it 'returns the Statement of responsibility Key' do
Expand Down

0 comments on commit 92a5fe1

Please sign in to comment.