Bug fix for multiple IIIF image property#1847
Conversation
There was a problem hiding this comment.
@mspalti : I tried testing this today & I cannot get it to work as described.
- I setup an Item with an existing image in the ORIGINAL bundle. Verified it loads in Mirador & it does
- Then, I edited that Item, created a new bundle named "Test" and added a new image to it.
- Went back to the Item page & looked in Mirador. It still only displays the single image in the ORIGINAL bundle.
- Reloaded page in browser (in case there's caching). Still only displays the single image in the ORIGINAL bundle.
- Then tried to add a new image to the ORIGINAL bundle. It also doesn't show up in Mirador.
Is there some sort of caching here that I need to refresh? I cannot figure out how to get this to work at all.
UPDATE: Does this maybe require DSpace/DSpace#8402 ??
|
@tdonohue I will take a look. It could be a bug in the implementation. I think it should have worked given what you tried. There's no relationship to DSpace/DSpace#8402 |
|
@tdonohue , this should be working now. You 'll need to reload to clear the cache after adding the image to your Test bundle. Sorry I didn't catch this earlier. Use of |
atarix83
left a comment
There was a problem hiding this comment.
thanks @mspalti
I made the following test :
- tested successful with an item with bitstreams in the ORIGINAL bundle and in a custom one
- tested successful with an item with bitstream with only a custom bundle
- test failed with an item with an empty bundle ORIGINAL and bitstreams in a custom one. I found out this fails due to an issue on the rest side, indeed the request to the manifest fail with 500 error. we'll open an issue on rest side
|
Thanks @atarix83 , I see the problem on the backend! The problem should be addressed in DSpace/DSpace#8402 which currently is under review. |
Description
Fixes a bug in
mirador-viewer.componentthat incorrectly sets themultiproperty when images are added to bundles other thanORIGINAL.The PR modifies the Angular UI to look for images in ALL eligible Bundles, not just ORIGINAL.
Some quick background: the
multiproperty is set by themirador-viewer.componentcomponent and is passed to the Mirador viewer, which in turn uses the property to create internal configuration at startup. (The default Mirador behavior is to add right thumbnail navigation whenmultiis 'true.')multishould be true whenever the Item has multiple image bitstreams.Sorry! I just realized I didn't submit this bug fix earlier!! It's a fairly minor fix so if it can make it into 7.4 that would be great.
Instructions for Reviewers
productionmode.Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.