scientist-softserv / iiif_print

A gem for Hyrax/Samvera for displaying PDF pages in a IIIF Compliant viewer
Apache License 2.0
4 stars 1 forks source link

๐ŸŽ IiifPrint Re Split PDF on command #294

Open ShanaLMoore opened 10 months ago

ShanaLMoore commented 10 months ago

Summary

LaRita has a WIP PR that covers the backend work required for this feature ๐ŸŽ‰ (this has not been tested yet).

We need to create a frontend button or interface, on a PDF fileset, that would trigger the backend behavior.

consider user permissions - the user should be able to edit.

Before starting, ask Jeremy for notes

Tasks

Considerations

(Jeremy here): I had thought about creating a separate controller, to avoid the decorator pattern. That separate controller would be IiifPrint::PdfSplitsController. The action would be create and follow the above guidance. Advantages would be keeping the controller space clear.

I have several projects located on my machine; and it looks as though we have not overriden the file_sets behavior. See details:

`cd ~/git; fd _show_actions.html | rg file_sets` ```bash hyrax/app/views/hyrax/file_sets/_show_actions.html.erb hyrax/spec/views/hyrax/file_sets/_show_actions.html.erb_spec.rb dlp-curate/app/views/hyrax/file_sets/_show_actions.html.erb ```

Acceptance Criteria

laritakr commented 9 months ago

Tested and passed on work: https://adl.s2.adventistdigitallibrary.org/concern/published_works/20121661_testimony_for_the_church_number_29?locale=en