Skip to content

Commit

Permalink
Service to split previously ingested pdf
Browse files Browse the repository at this point in the history
This creates a new service which combines:
- IiifPrint::SplitPdfs::DestroyPdfChildWorksService
- IiifPring::Jobs::ChildWorksFromPdfJob

Beginning with a PDF fileset, it removes any existing child works (found
by either the fileset ID or the title), any pending
relationship table entries (found by parent id and fileset ID), and then
submits a new job to do the pdf splitting.

Note that pending relationship entries will not be removed if they don't
have the file_id (which is the id of the fileset that spawned them). This
is to avoid removing pending relationships that could still be needed for
another fileset on the parent work.
  • Loading branch information
laritakr authored and jeremyf committed Nov 27, 2023
1 parent 13a1dfc commit 9ea15c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iiif_print/split_pdfs/pdf_child_works_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def self.pdfs_only_for(paths)
end
end
end
end
end

0 comments on commit 9ea15c8

Please sign in to comment.