Cannot get Universal Viewer to display images #183
-
|
I'm unable to load a IIIF image in Universal Viewer from its manifest url or the downloaded manifest file in CB-Essay. I've created the appropriate display template following the instructions on the Recipes page in the documentation. The page properly displays the viewer from the template, but the image never loads. I'm able to embed an But there appears to be no way to treat an Again, I've tried entering the individual manifest for the image from URL as
And I've gone to that URL and downloaded the json file, put it in I'm missing a step somewhere, I imagine. But where? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
@WhatTheDickens can you share a link to the example in a repository? |
Beta Was this translation helpful? Give feedback.
-
|
@WhatTheDickens oh okay I understand better--the issue is that the includes in "_includes/item/" are set up as if they are used on an Item page, so all the variables it pulls in are like
Which makes sense--that is how the includes in "_includes/feature/" work--but won't work with the Item includes. I just opened a PR in your project that adds a Feature include version of the UV include. This will allow you to use it like:
|
Beta Was this translation helpful? Give feedback.
@WhatTheDickens yeah, that is what I was describing originally in creating a custom display_template for your IIIF manifest items--the default
imagetemplate doesn't support it out of the box, so usually the best approach is to set up a new display_template for them (by copying the existing _layouts/item/image.html template and swapping out the item/image-gallery.html include with the item/iiif-manifest-universal-viewer.html include. Generally you would also tweak the download-buttons.html). We regularly do this for projects, but haven't built it into the template due to a lot of variation in what sort of iiif objects you might want to support--generally better to just create a custom ver…