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

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

Open
jenlindner opened this issue Jan 25, 2017 · 1 comment

Comments

@jenlindner
Copy link

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
Copy link
Author

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 aic-collections/aicdams-lakeshore#373

lol, hi

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