diff --git a/app/helpers/blacklight_helper.rb b/app/helpers/blacklight_helper.rb
index 131a7aaa6..20567ba9d 100644
--- a/app/helpers/blacklight_helper.rb
+++ b/app/helpers/blacklight_helper.rb
@@ -64,17 +64,17 @@ def render_other_versions_link
data.html_safe
end
- def render_related_to_markup
- related_to_text = ''
- urls = @document[:related_to_ssm]
- urls.each { |url| related_to_text += '' + url + '
' }
- related_to_text
- end
+ # def render_related_to_markup
+ # related_to_text = ''
+ # urls = @document[:related_to_ssm]
+ # urls.each { |url| related_to_text += '' + url + '
' }
+ # related_to_text
+ # end
- def render_related_to_link
- data = render_related_to_markup
- data.html_safe
- end
+ # def render_related_to_link
+ # data = render_related_to_markup
+ # data.html_safe
+ # end
def render_table_of_contents_key
unless @document[:toc_tesim].nil? || @document[:toc_tesim].empty?
diff --git a/app/views/catalog/work_record--ursus/_note_metadata.html.erb b/app/views/catalog/work_record--ursus/_note_metadata.html.erb
index 0895b3992..4a0656ba6 100644
--- a/app/views/catalog/work_record--ursus/_note_metadata.html.erb
+++ b/app/views/catalog/work_record--ursus/_note_metadata.html.erb
@@ -20,17 +20,10 @@
<%= raw doc_presenter.field_value field %>
-
<% end %>
- <% if @document[:related_to_ssm] %>
- Related Item(s)
-
- <%= render_related_to_link %>
- <% end %>
-
<%= toc_key %>
<%= raw toc_value %>
diff --git a/config/metadata/note_metadata.yml b/config/metadata/note_metadata.yml
index 746096a8d..18b8fc0f9 100644
--- a/config/metadata/note_metadata.yml
+++ b/config/metadata/note_metadata.yml
@@ -5,6 +5,7 @@ contents_note_tesim: 'Contents note'
colophon_tesim: 'Colophon'
provenance_tesim: 'Provenance'
note_tesim: 'Note'
+related_to_ssm: 'Related items'
# toc_tesim: 'Table of Contents' (render_table_of_contents_key / value)
resp_statement_tesim: 'Statement of Responsibility'
citation_source_tesim: 'References'
diff --git a/spec/presenters/ursus/note_metadata_presenter_spec.rb b/spec/presenters/ursus/note_metadata_presenter_spec.rb
index 04dd9fa6f..7d3744e97 100644
--- a/spec/presenters/ursus/note_metadata_presenter_spec.rb
+++ b/spec/presenters/ursus/note_metadata_presenter_spec.rb
@@ -4,17 +4,18 @@
RSpec.describe Ursus::NoteMetadataPresenter do
let(:solr_doc) do
{
- 'caption_tesim' => 'Caption',
'summary_tesim' => 'Summary',
'description_tesim' => 'Description',
- 'provenance_tesim' => 'Provenance',
+ 'caption_tesim' => 'Caption',
'contents_note_tesim' => 'Contents note',
'colophon_tesim' => 'Colophon',
- 'incipit_tesim' => 'Incipit',
- 'explicit_tesim' => 'Explicit',
+ 'provenance_tesim' => 'Provenance',
'note_tesim' => 'Note',
+ 'related_to_ssm' => 'Related items',
'resp_statement_tesim' => 'Statement of Responsibility',
- 'citation_source_tesim' => 'References'
+ 'citation_source_tesim' => 'References',
+ 'incipit_tesim' => 'Incipit',
+ 'explicit_tesim' => 'Explicit'
}
end
let(:solr_doc_missing_items) do
@@ -30,10 +31,6 @@
context 'with a solr document containing overview metadata' do
describe 'config' do
- it 'returns the Caption Key' do
- expect(config['caption_tesim'].to_s).to eq('Caption')
- end
-
it 'returns the Summary Key' do
expect(config['summary_tesim'].to_s).to eq('Summary')
end
@@ -42,30 +39,30 @@
expect(config['description_tesim'].to_s).to eq('Description')
end
- it 'returns the Provenance Key' do
- expect(config['provenance_tesim'].to_s).to eq('Provenance')
- end
+ it 'returns the Caption Key' do
+ expect(config['caption_tesim'].to_s).to eq('Caption')
+ end
it 'returns the Contents note Key' do
- expect(config['contents_note_tesim'].to_s).to eq('Contents note')
- end
+ expect(config['contents_note_tesim'].to_s).to eq('Contents note')
+ end
it 'returns the Colophon Key' do
- expect(config['colophon_tesim'].to_s).to eq('Colophon')
- end
+ expect(config['colophon_tesim'].to_s).to eq('Colophon')
+ end
- it 'returns the Incipit Key' do
- expect(config['incipit_tesim'].to_s).to eq('Incipit')
- end
-
- it 'returns the Explicit Key' do
- expect(config['explicit_tesim'].to_s).to eq('Explicit')
+ it 'returns the Provenance Key' do
+ expect(config['provenance_tesim'].to_s).to eq('Provenance')
end
it 'returns the Note Key' do
expect(config['note_tesim'].to_s).to eq('Note')
end
+ it 'returns the Related items Key' do
+ expect(config['related_to_ssm'].to_s).to eq('Related items')
+ end
+
it 'returns the Statement of Responsibility Key' do
expect(config['resp_statement_tesim'].to_s).to eq('Statement of Responsibility')
end
@@ -73,6 +70,14 @@
it 'returns the References Key' do
expect(config['citation_source_tesim'].to_s).to eq('References')
end
+
+ it 'returns the Incipit Key' do
+ expect(config['incipit_tesim'].to_s).to eq('Incipit')
+ end
+
+ it 'returns the Explicit Key' do
+ expect(config['explicit_tesim'].to_s).to eq('Explicit')
+ end
end
describe "#note terms" do
@@ -81,7 +86,7 @@
it "returns existing keys" do
expect(presenter_object.note_terms).to be_instance_of(Hash)
- expect(all).to eq 11
+ expect(all).to eq 12
expect(config.length).to eq all
end