ProjectMirador / mirador

An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.
https://projectmirador.org
Apache License 2.0
550 stars 256 forks source link

Book view pagination problem for Internet Archive IIIF manifests #3244

Closed amandelman closed 4 years ago

amandelman commented 4 years ago

When using book view with IIIF manifests from the Internet Archive, some pagination error results in displaying the pages with the spine on the outside edge instead of in the middle. It looks like this could be because IA inserts an extra cover page showing calibration marks, which then throws off the pagination sequence, but I'm not sure.

Example manifests:

camillevilla commented 4 years ago

@amandelman Unfortunately this would be something to bring up with the Internet Archive. Viewers like Mirador and Universal Viewer are taking their cue from the viewingHint: paged in these manifests.

paged: Valid on manifest, sequence and range. Canvases with this viewingHint represent pages in a bound volume, and should be presented in a page-turning interface if one is available. The first canvas is a single view (the first recto) and thus the second canvas represents the back of the object in the first canvas. Source: Presentation 2.1: viewingHint

To fix this, IA would need to add some additional IIIF metadata to their manifests to make sure the 2nd page appears as an individual canvas. @mekarpeles works on IA's IIIF stack, but I'm not sure where they're tracking feedback like this.

camillevilla commented 4 years ago

If you're looking for a more aesthetic workaround in your application, some ideas include:

mekarpeles commented 4 years ago

Thanks for the tag @camillevilla and @amandelman! Looking into it :)