IIIF Toolkit : import items silently fails

Hi,

I’m new to Omeka and I can’t manage to have the IIIF toolkit plugin working properly.

I’m using Omeka Classic 2.6 along with PHP 7.1 & MySQL 5.7
I installed the IIIF plugin via https://github.com/utlib/IiifItems/

The plugin seems to work properly if I create an item and add an IIIF canvas json code to it via the IIIF Item Metadata tab.
But nothing happens when I try to import IIIF content via the IIIF Toolkit -> Import Items form.
When I submit the form, it brings me to the Status tab but no import is being done.
There’s nothing in the error logs although I enabled them in Omeka as indicated here: https://omeka.org/classic/docs/Troubleshooting/Retrieving_Error_Messages/

I tried also using Omeka 2.3 but I see the same behavior.

If anyone already managed to work with this plugin, I’d be interested to know the configuration details (Omeka, PHP, plugin version…) that you used?
Any help would be appreciated, thanks!

Could you provide an example of the material that you were trying to import?

Most canvas IDs on IIIF manifests are just internal references, not real links that can be reached over HTTP. I would recommend selecting “Canvas” for the type and “From Paste” for the source, and then copy-and-paste the canvas fragment. Here is an example of a fragment that should work:

{
"@id": "https://media.nga.gov/public/manifests/canvas/52178.json",
"@type": "sc:Canvas",
"label": "Farmhouse in Provence",
"metadata": [
{
"label": "Date",
"value": "1888"
}
],
"description": "Painting",
"height": 334,
"width": 441,
"images": [
{
"@type": "oa:Annotation",
"motivation": "sc:painting",
"resource": {
"@id": "https://media.nga.gov/iiif/public/objects/5/2/1/7/8/52178-primary-0-nativeres.ptif/full/full/0/default.jpg",
"@type": "dctypes:Image",
"format": "image/jpeg",
"height": 334,
"width": 441,
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "https://media.nga.gov/iiif/public/objects/5/2/1/7/8/52178-primary-0-nativeres.ptif",
"profile": "http://iiif.io/api/image/2/level2.json"
}
},
"on": "https://media.nga.gov/public/manifests/canvas/52178.json"
}
]
}

Hi,

I have the same problem and unfortunately your example did not work. I am trying to import an AnnotationList but nothing is showing on the Status tab after clicking Import Item (no error). I have an Omeka classic v. 2.7 running with PHP 7.1.23 and MySQL 8.0.17 on MacOS Mojave.

Furthermore, is there another way to import an AnnotationList for an image on Omeka?

Thanks for your help!

Annotation lists cannot be independently imported as they must be attached to a canvas first. You can select “Canvas” for the type and “From Paste” for the source, then enter a canvas specifying the annotation list. Make sure that the annotations in the list match up with the canvas ID.

Example:

{
  "@id": "https://www.example.com/canvas-1",
  "@type": "sc:Canvas",
  "label": "Example",
  "height": 4785,
  "width": 3760,
  "images": [
    {
      "@id": "https://www.example.com/anno-1-1",
      "@type": "oa:Annotation",
      "motivation": "sc:painting",
      "resource": {
        "@id": "https://www.example.com/image-1",
        "@type": "dctypes:Image",
        "format": "image/jpeg",
        "height": 4785,
        "width": 3760,
        "service": {
          "@id": "https://www.example.com/iiif/1",
          "@context": "http://iiif.io/api/image/2/context.json",
          "profile": "http://iiif.io/api/image/2/level1.json"
        }
      },
      "on": "https://www.example.com/canvas-1"
    }
  ],
  "otherContent": [
    {
      "@id": "https://www.example.com/mylist.json",
      "@type": "sc:AnnotationList"
    }
  ]
}

Thank you very much for your quick reply. I was able to import annotations with the standard import plugin but they still do not appear on the item as standard annotations created in Omeka do. Still figuring this out…

Please make sure that the “@id” on the canvas matches up exactly with the “on” in the annotation list’s entries, especially the http(s): part.

Here is an example that you can try to import:

{
  "@id": "http://dms-data.stanford.edu/data/manifests/BnF/jr903ng8662/canvas/canvas-8",
  "@type": "sc:Canvas",
  "label": "Av",
  "height": 4838,
  "width": 3769,
  "images": [
    {
      "@id": "https://dms-data.stanford.edu/data/manifests/BnF/jr903ng8662/imageanno/anno-8",
      "@type": "oa:Annotation",
      "motivation": "sc:painting",
      "resource": {
        "@id": "https://stacks.stanford.edu/image/jr903ng8662/T0000008",
        "@type": "dctypes:Image",
        "format": "image/jpeg",
        "height": 4838,
        "width": 3769,
        "service": {
          "@id": "https://stacks.stanford.edu/image/iiif/jr903ng8662%252FT0000008",
          "@context": "http://iiif.io/api/image/2/context.json",
          "profile": "http://iiif.io/api/image/2/level1.json"
        }
      },
      "on": "https://dms-data.stanford.edu/data/manifests/BnF/jr903ng8662/canvas/canvas-8"
    }
  ],
  "otherContent": [
    {
      "@id": "https://dms-data.stanford.edu/data/manifests/BnF/jr903ng8662/list/text-Av.json",
      "@type": "sc:AnnotationList"
    }
  ]
}

Thanks for the advice, I found out that my problem is that I am trying to view and research annotation in a mirador viewer on Omeka. But with my current installation, only Omeka search can be performed on the Mirador viewer. Thereby I have to add metadata to the annotation item so Omeka can read the info but it is not ideal…

This topic was automatically closed after 250 days. New replies are no longer allowed.