samvera / iiif_manifest

Other
10 stars 10 forks source link

Looking for a good way to add media sequences to the manifest (more question than issue) #1

Open jenlindner opened 7 years ago

jenlindner commented 7 years ago

I've been experimenting with using the Universal Viewer in conjunction with the RIIIF server for the AIC's Sufia-based app, and would like to use it with PDFs. This means creating media sequences, that implement type "ixif", and adding them to pdf manifests (and maybe more).

I have a behavior module for creating manifests locally, in which I add the media sequences to the manifest created by this gem, and it works, which is great. But I think the way I found is janky, and I'd love help in finding a better architecture for this. One way would be to make it part of this gem, but that seems really ambitious to me, and would require adding options to choose when to add them (based on file and viewer type, I'd think). Another way might be to do what I'm doing, find a way to extend the manifest creation locally, only in less janky way, probably.

This is my manifest_behavior module, that gets added to the generic_works_controller:

https://gist.github.com/jenlindner/9bc2162e95f30f7f1cd8281e0dc165a1

Thanks, Jen

jenlindner commented 7 years ago

Hi @jcoyne, this is what it evolved into, via a lot of help from @awead: https://github.com/aic-collections/aicdams-lakeshore/pull/373/files#diff-c39b386e781aff844f1b88d21a0d2ccd

This PR has the (maybe kind of janky? but working) changes needed to use the Universal Viewer with images and pdfs in our view https://github.com/aic-collections/aicdams-lakeshore/pull/373

lol, hi