Skip to content

parent IIIF 2 / IIIF 3 #65

@Sozialarchiv

Description

@Sozialarchiv

To get the parent independent of the iiif version I am using the following code:

if (manifestoData.context === 'http://iiif.io/api/collection/2/context.json') {
  manifestData.parent = manifestoData.getProperty('within');
} else if (manifestoData.context === 'http://iiif.io/api/presentation/3/context.json') {
  manifestData.parent = manifestoData.getProperty('partOf');
}

Is there a way without the context check?

I tried manifestData.parentCollection but it was undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions