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

Update manifest generation to be more compliant and more usable #2

Merged
merged 7 commits into from
May 30, 2022

Conversation

jrdh
Copy link
Member

@jrdh jrdh commented May 30, 2022

Previously, the manifest record level builder was basically designed to work with one dataset we have on the NHM Data Portal and nothing else. Now that is not the case!

This PR also tidies up some parts of the manifest generation so that the resulting manifest is more compliant with the various viewers.

jrdh added 7 commits May 27, 2022 17:04
- don't need to know/hard code the iiif image server profile
- remove the requirement that these iiif dicts are only added for vfactor

This is predicated on the image URL in the record being an actual image
URL which is a change to the way the vfactor records worked, but it
makes waaay more sense and mean it works immediately for the specimen
collection too.
If the image is coming from our IIIF server it will be but if the image isn't actually being served by a IIIF server it could be anything.

This may be unnecessary quite frankly but hey ho.
This is incorrect. I've seen manifests that point to the full/max/0/default.jpg version but I think given our base image endpoints at /media/{id} show an image this makes sense. If you get the manifest and you want to get the info.json (or indeed any IIIF iamge data) you just add it to the end of the URL which is nice.
@jrdh jrdh merged commit 6d08b34 into dev May 30, 2022
@jrdh jrdh deleted the josh/beetles branch May 30, 2022 10:02
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

Successfully merging this pull request may close these issues.

None yet

1 participant