boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

first image in book viewer commonwealth:sj13b8675 does not display #75

Open ebenenglish opened 2 years ago

ebenenglish commented 2 years ago

When viewing this item (commonwealth:sj13b8675) in the book viewer:

https://www.digitalcommonwealth.org/book_viewer/commonwealth:sj13b8675

The viewer throws an error:

Your log-in attempt did not appear to be successful. Please try again.

Also, the first page of the item does not display.

This appears to be due to an error in the first canvas of the manifest where an incorrect FileSet id is being set as the @id of the service object:

"images": [
  {
    "@id": "https://ark.digitalcommonwealth.org/ark:/50959/sj13b8675/annotation/sj13b868f",
    "@type": "oa:Annotation",
    "motivation": "sc:painting",
    "resource": {
    "@id": "https://ark.digitalcommonwealth.org/ark:/50959/sj13b868f/large_image",
    "@type": "dctypes:Image",
    "format": "image/jpeg",
    "width": 3092,
    "height": 4672,
    "service": {
      "@context": "http://iiif.io/api/image/2/context.json",
      "@id": "https://iiif.digitalcommonwealth.org/iiif/2/commonwealth:sj13bh70x",
      "profile": "http://iiif.io/api/image/2/level2.json"
    }
  },
  "on": "https://ark.digitalcommonwealth.org/ark:/50959/sj13b8675/canvas/sj13b868f"
  }
]

In this case commonwealth:sj13bh70x should not be present (it should be commonwealth:sj13b868f). commonwealth:sj13bh70x is a Filestreams::Document, not an image.

This only affects the first item in the object.