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

book viewer shows incorrect image #54

Open ebenenglish opened 2 years ago

ebenenglish commented 2 years ago

For this item: https://www.digitalcommonwealth.org/search/commonwealth:dv1456902

When I try to view it in the book viewer, it shows multiple copies of the same image, rather than two different images: https://www.digitalcommonwealth.org/book_viewer/commonwealth:dv1456902

This also happens when viewing the item in universalviewer.io or Mirador using the manifest, though the manifest shows two completely different canvas objects. https://www.digitalcommonwealth.org/search/commonwealth:dv1456902/manifest

ebenenglish commented 1 year ago

Similar to #75, the manifest is wonky.

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

It should be:

"@id": "https://iiif.digitalcommonwealth.org/iiif/2/commonwealth:dv145692m"