diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index f29fbc6cd..d2cfda292 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -225,6 +225,7 @@ class CatalogController < ApplicationController 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 'human_readable_related_record_title_ssm', label: 'Related Records' # Physical description config.add_show_field 'medium_tesim', label: 'Medium' diff --git a/config/metadata/note_metadata.yml b/config/metadata/note_metadata.yml index 18b8fc0f9..9a653e913 100644 --- a/config/metadata/note_metadata.yml +++ b/config/metadata/note_metadata.yml @@ -6,6 +6,7 @@ colophon_tesim: 'Colophon' provenance_tesim: 'Provenance' note_tesim: 'Note' related_to_ssm: 'Related items' +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' diff --git a/config/oai.yml b/config/oai.yml index 58340ecaf..f4331a73a 100644 --- a/config/oai.yml +++ b/config/oai.yml @@ -88,6 +88,7 @@ DC: description: - content_disclaimer_ssm - related_to_ssm + - related_record_ssm DPLA: parent_schema: default object: diff --git a/spec/controllers/catalog_controller_spec.rb b/spec/controllers/catalog_controller_spec.rb index b0df2ccba..aebf6e1cd 100644 --- a/spec/controllers/catalog_controller_spec.rb +++ b/spec/controllers/catalog_controller_spec.rb @@ -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', "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 diff --git a/spec/presenters/ursus/note_metadata_presenter_spec.rb b/spec/presenters/ursus/note_metadata_presenter_spec.rb index 5bb4c0b10..e6abd73f6 100644 --- a/spec/presenters/ursus/note_metadata_presenter_spec.rb +++ b/spec/presenters/ursus/note_metadata_presenter_spec.rb @@ -12,6 +12,7 @@ 'provenance_tesim' => 'Provenance', 'note_tesim' => 'Note', 'related_to_ssm' => 'Related items', + 'human_readable_related_record_title_ssm' => 'Related records', 'resp_statement_tesim' => 'Statement of Responsibility', 'citation_source_tesim' => 'References', 'incipit_tesim' => 'Incipit', @@ -63,6 +64,10 @@ expect(config['related_to_ssm'].to_s).to eq('Related items') end + it 'returns the Related records Key' do + expect(config['human_readable_related_record_title_ssm'].to_s).to eq('Related records') + end + it 'returns the Statement of Responsibility Key' do expect(config['resp_statement_tesim'].to_s).to eq('Statement of Responsibility') end @@ -86,7 +91,7 @@ it "returns existing keys" do expect(presenter_object.note_terms).to be_instance_of(Hash) - expect(all).to eq 12 + expect(all).to eq 13 expect(config.length).to eq all end