spec/fixtures/iiif_responses.rb in blacklight-spotlight-3.5.0.4 vs spec/fixtures/iiif_responses.rb in blacklight-spotlight-3.6.0.beta1

- old
+ new

@@ -1,91 +1,91 @@ # frozen_string_literal: true module IiifResponses def complex_collection { - "@id": 'uri://for-top-level-collection', - "@type": 'sc:Collection', + '@id': 'uri://for-top-level-collection', + '@type': 'sc:Collection', label: 'Complex Collection', collections: [ { - "@id": 'uri://for-child-collection1', - "@type": 'sc:Collection', + '@id': 'uri://for-child-collection1', + '@type': 'sc:Collection', label: 'Child Collection 1' }, { - "@id": 'uri://for-child-collection2', - "@type": 'sc:Collection', + '@id': 'uri://for-child-collection2', + '@type': 'sc:Collection', label: 'Child Collection 2' } ], manifests: [ { - "@id": 'uri://for-manifest1', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest1', + '@type': 'sc:Manifest', label: 'Test Manifest 1' } ] }.to_json end def child_collection1 { - "@id": 'uri://for-child-collection1', - "@type": 'sc:Collection', + '@id': 'uri://for-child-collection1', + '@type': 'sc:Collection', label: 'Child Collection 1', collections: [ { - "@id": 'uri://for-child-collection3', - "@type": 'sc:Collection', + '@id': 'uri://for-child-collection3', + '@type': 'sc:Collection', label: 'Child Collection 3' } ], manifests: [ { - "@id": 'uri://for-manifest2', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest2', + '@type': 'sc:Manifest', label: 'Test Manifest 2' } ] }.to_json end def child_collection2 { - "@id": 'uri://for-child-collection2', - "@type": 'sc:Collection', + '@id': 'uri://for-child-collection2', + '@type': 'sc:Collection', label: 'Child Collection 2', manifests: [ { - "@id": 'uri://for-manifest4', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest4', + '@type': 'sc:Manifest', label: 'Test Manifest 4' } ] }.to_json end def child_collection3 { - "@id": 'uri://for-child-collection3', - "@type": 'sc:Collection', + '@id': 'uri://for-child-collection3', + '@type': 'sc:Collection', label: 'Child Collection 3', manifests: [ { - "@id": 'uri://for-manifest3', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest3', + '@type': 'sc:Manifest', label: 'Test Manifest 3' } ] }.to_json end def test_manifest1 { - "@id": 'uri://for-manifest1', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest1', + '@type': 'sc:Manifest', label: 'Test Manifest 1', attribution: 'Attribution Data', description: 'A test IIIF manifest', license: 'http://www.example.org/license.html', metadata: [ @@ -101,26 +101,26 @@ label: 'Another Field', value: 'Some data' } ], thumbnail: { - "@id": 'uri://to-thumbnail' + '@id': 'uri://to-thumbnail' }, sequences: [ { - "@type": 'sc:Sequence', + '@type': 'sc:Sequence', canvases: [ { - "@type": 'sc:Canvas', + '@type': 'sc:Canvas', images: [ { - "@type": 'oa:Annotation', + '@type': 'oa:Annotation', resource: { - "@type": 'dcterms:Image', - "@id": 'uri://full-image', + '@type': 'dcterms:Image', + '@id': 'uri://full-image', service: { - "@id": 'uri://to-image-service' + '@id': 'uri://to-image-service' } } } ] } @@ -130,15 +130,15 @@ }.to_json end def test_manifest2 { - "@id": 'uri://for-manifest2', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest2', + '@type': 'sc:Manifest', label: { - "@value": 'Test Manifest 2', - "@language": 'en' + '@value': 'Test Manifest 2', + '@language': 'en' }, attribution: 'Attribution Data', description: 'A test IIIF manifest', license: 'http://www.example.org/license.html', metadata: [ @@ -150,34 +150,34 @@ label: 'Yet Another Field', value: 'Some data' } ], thumbnail: { - "@id": 'uri://to-thumbnail' + '@id': 'uri://to-thumbnail' }, sequences: [ { - "@type": 'sc:Sequence', + '@type': 'sc:Sequence', canvases: [ { - "@type": 'sc:Canvas', + '@type': 'sc:Canvas', images: [ { - "@type": 'oa:Annotation', + '@type': 'oa:Annotation', resource: { - "@type": 'dcterms:Image', + '@type': 'dcterms:Image', service: { - "@id": 'uri://to-image-service' + '@id': 'uri://to-image-service' } } }, { - "@type": 'oa:Annotation', + '@type': 'oa:Annotation', resource: { - "@type": 'dcterms:Image', + '@type': 'dcterms:Image', service: { - "@id": 'uri://to-image-service2' + '@id': 'uri://to-image-service2' } } } ] } @@ -187,20 +187,20 @@ }.to_json end def test_manifest3 { - "@id": 'uri://for-manifest3', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest3', + '@type': 'sc:Manifest', label: [ { - "@value": 'Test Manifest 3', - "@language": 'en' + '@value': 'Test Manifest 3', + '@language': 'en' }, { - "@value": "Manifeste d'essai 3", - "@language": 'fr' + '@value': "Manifeste d'essai 3", + '@language': 'fr' } ], attribution: 'Attribution Data', description: 'A test IIIF manifest', license: 'http://www.example.org/license.html', @@ -213,25 +213,25 @@ label: 'Collection', value: 'Some Collection' } ], thumbnail: { - "@id": 'uri://to-thumbnail' + '@id': 'uri://to-thumbnail' }, sequences: [ { - "@type": 'sc:Sequence', + '@type': 'sc:Sequence', canvases: [ { - "@type": 'sc:Canvas', + '@type': 'sc:Canvas', images: [ { - "@type": 'oa:Annotation', + '@type': 'oa:Annotation', resource: { - "@type": 'dcterms:Image', + '@type': 'dcterms:Image', service: { - "@id": 'uri://to-image-service' + '@id': 'uri://to-image-service' } } } ] } @@ -241,12 +241,12 @@ }.to_json end def test_manifest4 { - "@id": 'uri://for-manifest4', - "@type": 'sc:Manifest', + '@id': 'uri://for-manifest4', + '@type': 'sc:Manifest', label: 'Test Manifest 4', attribution: 'Attribution Data', description: 'A test IIIF manifest', license: 'http://www.example.org/license.html', metadata: [ @@ -258,24 +258,24 @@ label: 'Location', value: 'Some location' } ], thumbnail: { - "@id": 'uri://to-thumbnail' + '@id': 'uri://to-thumbnail' }, sequences: [ { - "@type": 'sc:Sequence', + '@type': 'sc:Sequence', canvases: [ { - "@type": 'sc:Canvas', + '@type': 'sc:Canvas', images: [ { - "@type": 'oa:Annotation', + '@type': 'oa:Annotation', resource: { - "@type": 'dcterms:Image', + '@type': 'dcterms:Image', service: { - "@id": 'uri://to-image-service' + '@id': 'uri://to-image-service' } } } ] }