IIIF-Commons / iiif-helpers

MIT License
3 stars 2 forks source link

Canvas missing values for Cookbook Manifest from Recipe #202 #2

Open jbaiter opened 2 years ago

jbaiter commented 2 years ago

When loading the manifest from https://iiif.io/api/cookbook/recipe/0202-start-canvas/manifest.json via vault, the Canvas https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p2 is missing values for the following keys:

Canvas from Manifest ```json { "id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p2", "type": "Canvas", "label": { "en": [ "Frontispiece" ] }, "width": 3186, "height": 4612, "items": [ { "id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/page/p2/1", "type": "AnnotationPage", "items": [ { "id": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/annotation/p0002-image", "type": "Annotation", "motivation": "painting", "body": { "id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19/full/max/0/default.jpg", "type": "Image", "format": "image/jpeg", "width": 3186, "height": 4612, "service": [ { "id": "https://iiif.io/api/image/3.0/example/reference/59d09e6773341f28ea166e9f3c1e674f-gallica_ark_12148_bpt6k1526005v_f19", "type": "ImageService3", "profile": "level1" } ] }, "target": "https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p2" } ] } ] } ```
Normalized Canvas after loading it from the vault ``` { id: 'https://iiif.io/api/cookbook/recipe/0202-start-canvas/canvas/p2', type: 'Canvas', label: null, behavior: [], motivation: null, thumbnail: [], posterCanvas: null, accompanyingCanvas: null, placeholderCanvas: null, summary: null, requiredStatement: null, metadata: [], rights: null, navDate: null, provider: [], items: [], annotations: [], seeAlso: [], homepage: [], logo: [], partOf: [], rendering: [], service: [], duration: 0, height: 0, width: 0 }, ```

Sandbox: https://codesandbox.io/s/vault-cookbook-202-e7y51m?file=/src/index.js

The problem only happens with the second canvas, every other canvas works as expected.