yalelibrary / YUL-DC

Preliminary issue tracking for Yale University Libraries Digital Collections project
3 stars 0 forks source link

[SPIKE] Universal Viewer - Block selected child image in parent #2845

Closed sshetenhelm closed 4 months ago

sshetenhelm commented 5 months ago

Story As part of the upcoming "Opt-In" feature development work, stakeholders may want to know if it is possible to require a user action to allow a single child image that is in a parent object to display.

So, if a parent object has two child images, and the second is an "opt-in" image, can we leave the first image visible in the Universal Viewer with all metadata in the 'More Information' pane, but require the user to click something to see the second image in the UV (but the second image would still have metadata in the more information pane).

World's most beautiful mock-up Image

Acceptance

jpengst commented 5 months ago

Currently, there is no option in UV to require a user action. In order to do something like this, I think we would have to go into the UV code itself and add this feature ourselves. UV has a slack channel that I requested access to. Once I've been given access I can ask if they have any plans on adding something like this in later versions.

jpengst commented 5 months ago

https://iiif.io/api/auth/1.0/#clickthrough-interaction-pattern

mikeapp commented 5 months ago

The clickthrough examples on the UV demo page such as https://universalviewer.io/examples/#?c=&m=&s=&cv=&manifest=https%3A%2F%2Fwellcomelibrary.org%2Fiiif%2Fb1818893x%2Fmanifest&xywh=-1611%2C-223%2C5864%2C4405 don't seem to be working. I'm not sure what's supported in UV and Mirador (which we shouldn't forget about - it's going to be difficult to have a consistent experience in both viewers).

jpengst commented 4 months ago

Kait and I found a working example, that kind of does what we're looking for. The confirmation dialogue opens after you click "View": https://wellcomecollection.org/works/bxhrqs86

However, this clickthrough example is for the entire collection of images and not for a specific image. So I'm not entirely sure if it's possible to enable this for a specific image, just because we haven't seen a working example of it.

I think implementing this like the working example above would be at least an 8. And implementing this for a specific image would be at least a 5 if we can figure out how to implement for the object first.

sshetenhelm commented 4 months ago

In terms of "whole parent" alerts, Princeton has a useful example as well -- https://findingaids.princeton.edu/catalog/C1372_c47202-68234?onlineToggle=false