Skip to content

Commit

Permalink
Hide PDF Resplit button
Browse files Browse the repository at this point in the history
Refs:
notch8/palni_palci_knapsack#229
notch8/palni_palci_knapsack#80

Adds a new decorator to override the IiifPrint FileSetPresenterDecorator
and prevent the resplit PDF button from appearing.

This is a temporary fix until we can get the resplit button to work.
  • Loading branch information
LaRita Robinson committed Feb 4, 2025
1 parent b0de624 commit b3e1011
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/presenters/iiif_print/file_set_presenter_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

# OVERRIDE IiifPrint v3 to hide the re-split button.
# Delete when splitting issue is resolved.
# see https://github.com/notch8/palni_palci_knapsack/issues/80#issuecomment-2632366138
module IiifPrint
module FileSetPresenterDecorator
def show_split_button?
false
end
end
end
Hyrax::FileSetPresenter.prepend(IiifPrint::FileSetPresenterDecorator)

0 comments on commit b3e1011

Please sign in to comment.