Vault - Extracting choice data #25
stephenwf
started this conversation in
Hyperion demos
Replies: 2 comments 3 replies
-
Hyperion could extract each of the images: {
"id": "2eba27a0",
"type": "Choice",
"items": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-natural/full/max/0/default.jpg",
"type": "ContentResource"
},
{
"id": "https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-xray/full/max/0/default.jpg",
"type": "ContentResource"
}
]
} but the problem is that choices have labels that are properties of the choice (e.g. "Natural light" doesn't label the resource on it's own). An alternative may be: {
"id": "2eba27a0",
"type": "Choice",
"items": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-natural/full/max/0/default.jpg",
"label": {"en": ["Natural light"]},
"type": "ContentResource"
},
{
"id": "https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-xray/full/max/0/default.jpg",
"label": {"en": ["X-Ray"]},
"type": "ContentResource"
}
]
} |
Beta Was this translation helpful? Give feedback.
3 replies
-
(More generally, should everything include its label in the ref that comes back from Vault? You often need the labels on things, to render in UI, and this might be before fetching the full object from the Vault). See similar discussion on (link tbc). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This demo uses "Vault" api to load in a presentation 2 or 3 manifest and traverse through the canvas, annotation page, annotation and finally down the body. The body is a choice. Hyperion does not dereference each of the choices, but maybe it does need to do this.
Demo | Interactive sandbox
Beta Was this translation helpful? Give feedback.
All reactions