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

API breaks for archive.org book items w/ multiple books #34

Open
mekarpeles opened this issue May 8, 2019 · 0 comments
Open

API breaks for archive.org book items w/ multiple books #34

mekarpeles opened this issue May 8, 2019 · 0 comments

Comments

@mekarpeles
Copy link
Member

Background

Any image (or book) on archive.org is viewable in IIIF format if you know the archive.org identifier: https://iiif.archivelab.org/:identifier. If the item is a book (multiple pages) or the item contains multiple images, the url can be extended to https://iiif.archivelab.org/:identifier$:page or https://iiif.archivelab.org/:identifier$:filename

For instance, the item LHMTvcartoonslogo has multiple images within it, one named amrdad.jpg which can be accessed as:
https://iiif.archivelab.org/iiif/LHMTvcartoonslogo$amrdad.jpg

For a book like TheGeometry, you can open the whole book using https://iiif.archivelab.org/iiif/TheGeometry or a specific page using the page number: https://iiif.archivelab.org/iiif/TheGeometry$12.

Problem

This pattern almost certainly breaks if an item contains multiple books given in this case a third piece of information (the unique book prefix) is required for the API to differentiate between the right book and the API doesn't support this yet.

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