Skip to content

Commit

Permalink
♻️ Remove IIIF Print splitting
Browse files Browse the repository at this point in the history
PDFs shall not be split!

Related to:

- #188
  • Loading branch information
jeremyf committed Nov 20, 2023
1 parent 8e8c170 commit da66cbf
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions app/models/etd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# `rails generate hyrax:work Etd`
class Etd < ActiveFedora::Base
include ::Hyrax::WorkBehavior
include IiifPrint.model_configuration(
pdf_split_child_model: GenericWork
)
include PdfBehavior

self.indexer = EtdIndexer
Expand Down
3 changes: 0 additions & 3 deletions app/models/generic_work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

class GenericWork < ActiveFedora::Base
include ::Hyrax::WorkBehavior
include IiifPrint.model_configuration(
pdf_split_child_model: self
)
include PdfBehavior

# this line needs to be before the validations & properties in order for them to be indexed correctly
Expand Down
3 changes: 0 additions & 3 deletions app/models/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# `rails generate hyrax:work Image`
class Image < ActiveFedora::Base
include ::Hyrax::WorkBehavior
include IiifPrint.model_configuration(
pdf_split_child_model: self
)
include PdfBehavior

property :extent, predicate: ::RDF::Vocab::DC.extent, multiple: true do |index|
Expand Down
3 changes: 0 additions & 3 deletions app/models/paper_or_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# `rails generate hyrax:work PaperOrReport`
class PaperOrReport < ActiveFedora::Base
include ::Hyrax::WorkBehavior
include IiifPrint.model_configuration(
pdf_split_child_model: GenericWork
)
include PdfBehavior

self.indexer = PaperOrReportIndexer
Expand Down

0 comments on commit da66cbf

Please sign in to comment.