projectblacklight / spotlight

Spotlight enables librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.
Other
160 stars 64 forks source link

Image viewer not paging through IIIF manifest images #1796

Open randystern opened 7 years ago

randystern commented 7 years ago

I have a manifest that works in Mirador: https://iiif.lib.harvard.edu/manifests/drs:6131691

When I use the IIIF manifest loader in Spotlight, the manifest loads and creates an item, with a title and metadata. The image viewer indicates there are 11 pages. However, the viewer comes up displaying only the last page of the manifest, and the left/right arrow functions do nothing.

Should this work in the existing image viewer, or should I just wait until Mirador integration is available?

jkeck commented 7 years ago

We use openseadragon-rails for injecting the viewer. Perhaps we're instantiating the viewer incorrectly (although that would be strange since it knows how many images there are) or it's a bug upstream in that codebase. We'll have to dig into it, and submit a ticket over there if it doesn't appear to be something we're doing incorrectly.

ives1227 commented 7 years ago

The OSD is missing the sequenceMode field. This can be corrected by copying blacklight-gallery’s views/catalog/_openseadrsgon_default.html.erb and made a placing it in the Spotlight instance. I then added sequenceMode: true to the parameters and it corrected it.

nicolasfranck commented 6 years ago

It is also very aggressive: it not only tries to load all info.json, but also all image parts, leading to hundreds of requests in the background..

Try with a "big" manifest: https://adore.ugent.be/IIIF/manifests/archive.ugent.be%3A50AAA046-3CF9-11E1-9518-74973B7C8C91

nicolasfranck commented 6 years ago

Reported to blacklight-gallery: cf. https://github.com/projectblacklight/blacklight-gallery/issues/49