Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSeaDragon fails to load image on translated nodes #1226

Closed
Natkeeran opened this issue Jul 19, 2019 · 5 comments
Closed

OpenSeaDragon fails to load image on translated nodes #1226

Natkeeran opened this issue Jul 19, 2019 · 5 comments
Milestone

Comments

@Natkeeran
Copy link
Contributor

Summary

OpenSeaDraogn fails to load image on translated nodes

Steps to reproduce

  • Enable a second language
  • Create an image with display tag openseadragon
  • (The image is displayed in the openseadragon)
  • Translate the node
  • The image is not displayed in the openseadragon
  • It gets a 404 error
@seth-shaw-unlv seth-shaw-unlv changed the title OpenSeaDraogn fails to load image on translated nodes OpenSeaDragon fails to load image on translated nodes Aug 21, 2019
@whikloj
Copy link
Member

whikloj commented Aug 26, 2019

Checking this (and possibly #1121) out.

It appears that when I view http://localhost:8000/node/9 the tileSources passed to OpenSeadragon is http://127.0.0.1:8080/cantaloupe/iiif/2/_flysystem%2Ffedora%2F2019-08%2F0066.tif

But when I go to http://localhost:8000/fr/node/9 then the tileSources passed to OpenSeadragon is http://127.0.0.1:8080/cantaloupe/iiif/2/http%3A%2F%2Flocalhost%3A8000%2F_flysystem%2Ffedora%2F2019-08%2F0066.tif

So I am guessing the host part is causing the issue.

@whikloj
Copy link
Member

whikloj commented Aug 26, 2019

Right here, when accessing a translated node the base URI has the language code but the full path to the file does not.

ie.

base_path = http://localhost:8000/fr

resource.full_path = http://localhost:8000/_flysystem/fedora/2019-08/0066.tif

It appears that we don't currently support tile sources not on the same machine as the Drupal box.

@whikloj
Copy link
Member

whikloj commented Aug 26, 2019

Ok, this is self inflicted. We have configured cantaloupe to look at a specific URL as the HttpResolver prefix.

https://github.com/Islandora-Devops/claw-playbook/blob/dev/inventory/vagrant/group_vars/tomcat.yml#L66

We should set the prefix to "" and set $base = ""; (here) instead of the assumed base URI. Then it works.

I'll open some PRs.

@dannylamb
Copy link
Contributor

This appears to be working based on @whikloj's two PRs. I could translate a TIFF and openseadragon worked on both languages.

image

@dannylamb
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants