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

parent IIIF 2 / IIIF 3 #65

Open
Sozialarchiv opened this issue Jun 7, 2020 · 0 comments
Open

parent IIIF 2 / IIIF 3 #65

Sozialarchiv opened this issue Jun 7, 2020 · 0 comments

Comments

@Sozialarchiv
Copy link

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.

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