Skip to content

Commit

Permalink
update IIIF collection ARK URL (fixes #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebenenglish committed Dec 9, 2021
1 parent 11bbdff commit cf6bf08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/commonwealth-vlr-engine/iiif_manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def image_resource_from_image_id(page_id, document)
# document = SolrDocument of series object
# manifest_docs = Array of SolrDocument of volume-level objects
def collection_for_manifests(document, manifest_docs)
collection = IIIF::Presentation::Collection.new('@id' => document[:identifier_uri_ss].gsub(/\/[\w]+\z/, '/collection\\0'))
collection = IIIF::Presentation::Collection.new('@id' => "#{document[:identifier_uri_ss]}/iiif_collection")
collection.label = 'Multi-part work description'
collection.viewing_hint = 'multi-part'
collection.attribution = manifest_attribution(document).presence
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/commonwealth-vlr-engine/iiif_manifest_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
end

it 'has the right id' do
expect(collection['@id']).to eq(document[:identifier_uri_ss].gsub(/\/[\w]+\z/, '/collection\\0'))
expect(collection['@id']).to eq("#{document[:identifier_uri_ss]}/iiif_collection")
end
end

Expand Down

0 comments on commit cf6bf08

Please sign in to comment.