-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎁 Allowing per tenant ability to disable IIIF Print
The current (as of <2023-08-10 Thu>) implementation of IIIF Print assumes that we generate derivatives at the application level. However, we want options for generating at the tenant level. As noted, I have chosen to default using IIIF print to `true` because that was the behavior before this commit. In other words, this commit is functionally a non-change to the production code-base (assuming no one goes and flips some switches). Related to: - scientist-softserv/palni-palci#656 - scientist-softserv/palni-palci#657 - scientist-softserv/palni-palci#658 - scientist-softserv/palni-palci#659
- Loading branch information
Showing
7 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated via | ||
# `rails generate hyrax:work GenericWork` | ||
require 'rails_helper' | ||
require 'order_already/spec_helper' | ||
|
||
RSpec.describe GenericWork do | ||
describe '#iiif_print_config#pdf_splitter_service' do | ||
subject { described_class.new.iiif_print_config.pdf_splitter_service } | ||
|
||
it { is_expected.to eq(IiifPrint::TenantConfig::PdfSplitter) } | ||
end | ||
|
||
describe "metadata" do | ||
it { is_expected.to have_property(:bulkrax_identifier).with_predicate("https://hykucommons.org/terms/bulkrax_identifier") } | ||
end | ||
|
||
it { is_expected.to have_already_ordered_attributes(*described_class.multi_valued_properties_for_ordering) } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters