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

"Grandchild" works display multiple times on manifest #214

Open
laritakr opened this issue Apr 7, 2023 · 0 comments
Open

"Grandchild" works display multiple times on manifest #214

laritakr opened this issue Apr 7, 2023 · 0 comments

Comments

@laritakr
Copy link
Contributor

laritakr commented Apr 7, 2023

Remove duplicates in manifest, and show in correct sequence.

To Duplicate

  • Add a new work with an image file.
  • When viewing the above work, add a child work as a child using the Attach Child dropdown option. Use a PDF file for this child's file.
  • When returning to the original work, universal viewer should show both the original image and all of the child work's split child work images.
Screenshot

Screenshot 2023-04-07 at 11 56 14 AM

Manifest
{
  "@context": "http://iiif.io/api/presentation/2/context.json",
  "@type": "sc:Manifest",
  "@id": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest",
  "label": "Image test",
  "metadata": [
    {
      "label": "Title",
      "value": [
        "Image test"
      ]
    },
    {
      "label": "Date modified",
      "value": [
        "04/07/2023"
      ]
    },
    {
      "label": "Creator",
      "value": [
        "<a href='http://adl.hyku.test/catalog?f%5Bcreator_sim%5D%5B%5D=Smith%2C+John&locale=en'>Smith, John</a>"
      ]
    },
    {
      "label": "Keyword",
      "value": [
        "<a href='http://adl.hyku.test/catalog?f%5Bkeyword_sim%5D%5B%5D=bee&locale=en'>bee</a>",
        "<a href='http://adl.hyku.test/catalog?f%5Bkeyword_sim%5D%5B%5D=spring&locale=en'>spring</a>",
        "<a href='http://adl.hyku.test/catalog?f%5Bkeyword_sim%5D%5B%5D=flower&locale=en'>flower</a>"
      ]
    },
    {
      "label": "Rights statement",
      "value": [
        "<a href='http://rightsstatements.org/vocab/NKC/1.0/'>No Known Copyright</a>"
      ]
    }
  ],
  "service": [
    {
      "@context": "http://iiif.io/api/search/0/context.json",
      "profile": "http://iiif.io/api/search/0/search",
      "label": "Search within this manifest",
      "@id": "http://adl.hyku.test/catalog/5ee4fa57-5e83-489b-9524-2fab5301bfbf/iiif_search"
    }
  ],
  "sequences": [
    {
      "@type": "sc:Sequence",
      "@id": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/sequence/normal",
      "rendering": [],
      "canvases": [
        {
          "@type": "sc:Canvas",
          "@id": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/b39e0ccd-e189-4c11-9b4d-fa9e1e97bef0",
          "label": "May-bee_you_should_come_sing_with_us_.png",
          "width": 600,
          "height": 400,
          "images": [
            {
              "@type": "oa:Annotation",
              "motivation": "sc:painting",
              "resource": {
                "@type": "dctypes:Image",
                "@id": "http://adl.hyku.test/images/b39e0ccd-e189-4c11-9b4d-fa9e1e97bef0%2Ffiles%2F672930ed-9fd7-4e1a-abfa-87d9882e95e3%2Ffcr:versions%2Fversion1/full/600,/0/default.jpg",
                "height": 400,
                "width": 600,
                "format": "jpg",
                "service": {
                  "@context": "http://iiif.io/api/image/2/context.json",
                  "@id": "http://adl.hyku.test/images/b39e0ccd-e189-4c11-9b4d-fa9e1e97bef0%2Ffiles%2F672930ed-9fd7-4e1a-abfa-87d9882e95e3%2Ffcr:versions%2Fversion1",
                  "profile": "http://iiif.io/api/image/2/level2.json"
                }
              },
              "on": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/b39e0ccd-e189-4c11-9b4d-fa9e1e97bef0"
            }
          ],
          "metadata": [
            {
              "label": "Title",
              "value": [
                "Image test"
              ]
            },
            {
              "label": "Date modified",
              "value": [
                "04/07/2023"
              ]
            },
            {
              "label": "Creator",
              "value": [
                "<a href='http://adl.hyku.test/catalog?f%5Bcreator_sim%5D%5B%5D=Smith%2C+John&locale=en'>Smith, John</a>"
              ]
            },
            {
              "label": "Keyword",
              "value": [
                "<a href='http://adl.hyku.test/catalog?f%5Bkeyword_sim%5D%5B%5D=bee&locale=en'>bee</a>",
                "<a href='http://adl.hyku.test/catalog?f%5Bkeyword_sim%5D%5B%5D=spring&locale=en'>spring</a>",
                "<a href='http://adl.hyku.test/catalog?f%5Bkeyword_sim%5D%5B%5D=flower&locale=en'>flower</a>"
              ]
            },
            {
              "label": "Rights statement",
              "value": [
                "<a href='http://rightsstatements.org/vocab/NKC/1.0/'>No Known Copyright</a>"
              ]
            }
          ]
        },
        {
          "@type": "sc:Canvas",
          "@id": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/8f779080-99c7-4ff2-8202-de046a20b76c",
          "label": "80001038-5b56-4a77-9124-2a978c55590a-page2.jpg",
          "width": 4400,
          "height": 3400,
          "images": [
            {
              "@type": "oa:Annotation",
              "motivation": "sc:painting",
              "resource": {
                "@type": "dctypes:Image",
                "@id": "http://adl.hyku.test/images/8f779080-99c7-4ff2-8202-de046a20b76c%2Ffiles%2F595f642c-ad7a-4d89-8153-6c058e637d19%2Ffcr:versions%2Fversion1/full/600,/0/default.jpg",
                "height": 3400,
                "width": 4400,
                "format": "jpg",
                "service": {
                  "@context": "http://iiif.io/api/image/2/context.json",
                  "@id": "http://adl.hyku.test/images/8f779080-99c7-4ff2-8202-de046a20b76c%2Ffiles%2F595f642c-ad7a-4d89-8153-6c058e637d19%2Ffcr:versions%2Fversion1",
                  "profile": "http://iiif.io/api/image/2/level2.json"
                }
              },
              "on": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/8f779080-99c7-4ff2-8202-de046a20b76c"
            }
          ]
        },
        {
          "@type": "sc:Canvas",
          "@id": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/7c71284a-a8eb-4945-ac59-02c842657125",
          "label": "80001038-5b56-4a77-9124-2a978c55590a-page1.jpg",
          "width": 4400,
          "height": 3400,
          "images": [
            {
              "@type": "oa:Annotation",
              "motivation": "sc:painting",
              "resource": {
                "@type": "dctypes:Image",
                "@id": "http://adl.hyku.test/images/7c71284a-a8eb-4945-ac59-02c842657125%2Ffiles%2Fc146ffd3-4f20-41d7-9e6f-1e17de0d8aff%2Ffcr:versions%2Fversion1/full/600,/0/default.jpg",
                "height": 3400,
                "width": 4400,
                "format": "jpg",
                "service": {
                  "@context": "http://iiif.io/api/image/2/context.json",
                  "@id": "http://adl.hyku.test/images/7c71284a-a8eb-4945-ac59-02c842657125%2Ffiles%2Fc146ffd3-4f20-41d7-9e6f-1e17de0d8aff%2Ffcr:versions%2Fversion1",
                  "profile": "http://iiif.io/api/image/2/level2.json"
                }
              },
              "on": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/7c71284a-a8eb-4945-ac59-02c842657125"
            }
          ]
        },
        {
          "@type": "sc:Canvas",
          "@id": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/7c71284a-a8eb-4945-ac59-02c842657125",
          "label": "80001038-5b56-4a77-9124-2a978c55590a-page1.jpg",
          "width": 4400,
          "height": 3400,
          "images": [
            {
              "@type": "oa:Annotation",
              "motivation": "sc:painting",
              "resource": {
                "@type": "dctypes:Image",
                "@id": "http://adl.hyku.test/images/7c71284a-a8eb-4945-ac59-02c842657125%2Ffiles%2Fc146ffd3-4f20-41d7-9e6f-1e17de0d8aff%2Ffcr:versions%2Fversion1/full/600,/0/default.jpg",
                "height": 3400,
                "width": 4400,
                "format": "jpg",
                "service": {
                  "@context": "http://iiif.io/api/image/2/context.json",
                  "@id": "http://adl.hyku.test/images/7c71284a-a8eb-4945-ac59-02c842657125%2Ffiles%2Fc146ffd3-4f20-41d7-9e6f-1e17de0d8aff%2Ffcr:versions%2Fversion1",
                  "profile": "http://iiif.io/api/image/2/level2.json"
                }
              },
              "on": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/7c71284a-a8eb-4945-ac59-02c842657125"
            }
          ]
        },
        {
          "@type": "sc:Canvas",
          "@id": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/8f779080-99c7-4ff2-8202-de046a20b76c",
          "label": "80001038-5b56-4a77-9124-2a978c55590a-page2.jpg",
          "width": 4400,
          "height": 3400,
          "images": [
            {
              "@type": "oa:Annotation",
              "motivation": "sc:painting",
              "resource": {
                "@type": "dctypes:Image",
                "@id": "http://adl.hyku.test/images/8f779080-99c7-4ff2-8202-de046a20b76c%2Ffiles%2F595f642c-ad7a-4d89-8153-6c058e637d19%2Ffcr:versions%2Fversion1/full/600,/0/default.jpg",
                "height": 3400,
                "width": 4400,
                "format": "jpg",
                "service": {
                  "@context": "http://iiif.io/api/image/2/context.json",
                  "@id": "http://adl.hyku.test/images/8f779080-99c7-4ff2-8202-de046a20b76c%2Ffiles%2F595f642c-ad7a-4d89-8153-6c058e637d19%2Ffcr:versions%2Fversion1",
                  "profile": "http://iiif.io/api/image/2/level2.json"
                }
              },
              "on": "http://adl.hyku.test/concern/images/5ee4fa57-5e83-489b-9524-2fab5301bfbf/manifest/canvas/8f779080-99c7-4ff2-8202-de046a20b76c"
            }
          ]
        }
      ]
    }
  ]
}
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