kitodo / kitodo-presentation

Kitodo.Presentation is a feature-rich framework for building a METS- or IIIF-based digital library. It is part of the Kitodo Digital Library Suite.
https://kitodo.org
GNU General Public License v3.0
38 stars 45 forks source link

Viewer does not work with Zoomify images #314

Closed lutzhelm closed 5 years ago

lutzhelm commented 5 years ago

dlfUtils.fetchZoomifyData does not establish the correct base URI for the image requests.

https://github.com/kitodo/kitodo-presentation/blob/3e6cda87558bec17e727068a3125394fdfe81ca0/plugins/pageview/tx_dlf_utils.js#L505

In Firefox and Chromium, the URL property of the response xml document that is passed to the callback function via done() is the URL of the current page, not the requested ImageProperties.xml URL; in MS Edge URL is not even set.

In consequence, all following tile image requests fail.

The original URL imageSourceObj.url should be used instead.

lutzhelm commented 5 years ago

Demo with nonworking viewer: https://lutzhelm.github.io/kitodo-presentation-314.html

Demo with proposed fix: https://lutzhelm.github.io/kitodo-presentation-314-working.html