Compound object
This implements compound objects for pictures only. It can be expended for audio/video when that feature is added to spotlight.
Thanks @sephirothkod. Can you add some screenshots to this ticket of this feature in action? I'm not sure I understand what compound objects are, and how this feature is intended to work.
Also, in this project, we use a style guide (enforced by rubocop); you'll note some of the notices when running the project's tests (and in travis, e.g. https://travis-ci.org/projectblacklight/spotlight/jobs/174554036#L349). Some of them seem easy (like using 2 spaces instead of tabs). I'll try to add some additional comments inline about some non-style changes that would help this fit in better.
Hi Chris,
Thanks for letting me know about all the stylistic stuff that rubocop finds. I was just running "rake ci" and it wasn't running rubocop but it looks like if I just run "rake" it runs rubo cop? so I'll make the changes and keep that in mind for the future.
The idea of compound objects is to allow exhibit makers to keep books all grouped together in one object rather than having to add each individual page to the exhibit the can add the entire book all in one go.
The next iteration will have each page's metadata displayed along with the object metadata, and change when you "flip" the page.
Here is one of our working examples here at UVic: http://exhibits.library.uvic.ca/spotlight/wwi/catalog/1-1314
Hi @cbeer I believe I have made all the necessary changes for this branch there are only two errors from ci. the fact that routes has an extra line (required for the compound objects) and one of my functions has a large Assignment Branch Condition size. If needed I can break up the function so it meets the ABC requirement but I can't do anything about the routes as that extra line needs to be there.
Cheers
Now that we support IIIF manifests, I wonder if support for compound objects can be reframed as either:
- IIIF manifest building (https://github.com/bodleian/iiif-manifest-editor? Something from PUL?)
- Support for hierarchical resources (perhaps in scope for Arclight?)
It probably could be re-framed but I will not be able to do it. My time for working on spotlight was 3 months ago when I submitted this code; I have other projects that need my attention right now. I think we should discuss how better to collaborate on this project during LDCX at the end of March. I will have some more time to work on Spotlight during the spring/summer so we should be able to work things out in March/April, in advanced of that time period.