Skip to content

Commit

Permalink
Change label to "View in catalog"
Browse files Browse the repository at this point in the history
  • Loading branch information
hackartisan committed Apr 29, 2020
1 parent f197c9a commit 62bd710
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/values/manifest_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def to_pair
def new_key
if key == 'Memberof'
'Collections'
elsif key == "Link to catalog"
"View in catalog"
else
key
end
Expand Down
2 changes: 1 addition & 1 deletion spec/models/iiif_resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
expect(solr_doc["readonly_created_ssim"]).to eq ["1976-01-01T00:00:00Z"]
expect(solr_doc["readonly_description_ssim"]).to eq ["First", "Second"]
expect(solr_doc["readonly_description_ssim"]).to eq ["First", "Second"]
expect(solr_doc["readonly_link-to-catalog_ssim"]).to eq ["<a href='https://catalog.princeton.edu/12345678'>https://catalog.princeton.edu/12345678</a>"]
expect(solr_doc["readonly_view-in-catalog_ssim"]).to eq ["<a href='https://catalog.princeton.edu/12345678'>https://catalog.princeton.edu/12345678</a>"]
end

it "removes old metadata" do
Expand Down

0 comments on commit 62bd710

Please sign in to comment.