Ingesting IIIF manifest when creating item through api

I’m attempting to adapt the OAI-PMH Harvester module to accept MARC21 records at the moment and having some trouble understanding how to trigger the ingest of a IIIF manifest into the media.

I’m having some trouble understanding how to use the in-built media ingesters. I’ve tried reverse engineering how the CSV_Import module does it to no avail.

Essentially for each item created I want to take the manifest from the MARC21 910m record, create a IIIF_Presentation type media object and associate it with that item.

How would I go about doing that? The developer documentation on using ingesters isn’t very clear on this.

The IIIF Presentation ingester requires you to pass the URL to the manifest as o:source within the media object, so in a request trying to create an item with that media included, it would look like

[
    // ...
    // other item data
    // ..

    "o:media": [
        [
            'o:ingester' => 'iiif_presentation',
            'o:source' => '<manifest url>',
        ]
    ]
]

That structure assumes you’re trying to do this as part of creating the item.

Oh cool, I’ll give that a go. And that handles all the ID info for me as long as it’s part of an item creation?

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.