Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jbaiter opened this issue Jul 14, 2022 · 0 comments
Open

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

jbaiter opened this issue Jul 14, 2022 · 0 comments

Comments

@jbaiter
Copy link
Contributor

jbaiter commented Jul 14, 2022

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:

  • the annotation page reference in the items array
  • width and height
  • label
Canvas from Manifest
{
      "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.

@jbaiter jbaiter changed the title Canvas missing items for Cookbook Manifest from Recipe #202 Canvas missing values for Cookbook Manifest from Recipe #202 Jul 14, 2022
@stephenwf stephenwf transferred this issue from IIIF-Commons/vault Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant