iiif_print 3.0.9 → 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/iiif_print/engine.rb +2 -0
- data/lib/iiif_print/persistence_layer/valkyrie_adapter.rb +6 -6
- data/lib/iiif_print/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76254fc0e51b58bf968577e0fe203cfac14be503b8be917288298a9eed68afd7
|
|
4
|
+
data.tar.gz: 4ba0b95077a46dc44e65f474283720098142088534b1454b9a4e3b177728c4a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be935301728016617038746d3fbe83b774872811aab4dde6773e5bcdefe1df185031af27a0c79acc71af82ccb03316b3c4195cb6c05f3c81e212dc66d2325a2a
|
|
7
|
+
data.tar.gz: faa8537c064fac5f1af135372f4d632fedd2bb4c2dcbf40e27e5eaeee5a14e984180c95d77581ab26271159ae5e90e5b4ea9e3d02f3b0103f4ea7137e117c47a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: /app/samvera/hyrax-webapp
|
|
3
3
|
specs:
|
|
4
|
-
iiif_print (3.0.
|
|
4
|
+
iiif_print (3.0.10)
|
|
5
5
|
blacklight_iiif_search (>= 1.0, < 3.0)
|
|
6
6
|
derivative-rodeo (~> 0.5)
|
|
7
7
|
hyrax (>= 2.5, < 6)
|
|
@@ -87,7 +87,7 @@ GEM
|
|
|
87
87
|
awesome_nested_set (3.8.0)
|
|
88
88
|
activerecord (>= 4.0.0, < 8.1)
|
|
89
89
|
aws-eventstream (1.4.0)
|
|
90
|
-
aws-partitions (1.
|
|
90
|
+
aws-partitions (1.1184.0)
|
|
91
91
|
aws-sdk-core (3.237.0)
|
|
92
92
|
aws-eventstream (~> 1, >= 1.3.0)
|
|
93
93
|
aws-partitions (~> 1, >= 1.992.0)
|
|
@@ -222,7 +222,7 @@ GEM
|
|
|
222
222
|
representable (>= 2.4.0, <= 3.1.0)
|
|
223
223
|
uber (< 0.2.0)
|
|
224
224
|
docile (1.4.0)
|
|
225
|
-
draper (4.0.
|
|
225
|
+
draper (4.0.6)
|
|
226
226
|
actionpack (>= 5.0)
|
|
227
227
|
activemodel (>= 5.0)
|
|
228
228
|
activemodel-serializers-xml (>= 1.0)
|
data/lib/iiif_print/engine.rb
CHANGED
|
@@ -60,7 +60,9 @@ module IiifPrint
|
|
|
60
60
|
Dir.glob(File.join(File.dirname(__FILE__), "../../lib/**/*_decorator*.rb")).sort.each do |c|
|
|
61
61
|
Rails.configuration.cache_classes ? require(c) : load(c)
|
|
62
62
|
end
|
|
63
|
+
end
|
|
63
64
|
|
|
65
|
+
config.before_initialize do
|
|
64
66
|
Hyrax.config do |config|
|
|
65
67
|
config.callback.set(:after_create_fileset) do |file_set, user|
|
|
66
68
|
IiifPrint.config.handle_after_create_fileset(file_set, user)
|
|
@@ -21,12 +21,12 @@ module IiifPrint
|
|
|
21
21
|
# @param work_type [Class<Valkyrie::Resource>]
|
|
22
22
|
# @return the indexer for the given :work_type
|
|
23
23
|
def self.decorate_with_adapter_logic(work_type:)
|
|
24
|
-
work_type.send(:include, Hyrax::Schema(:child_works_from_pdf_splitting))
|
|
25
|
-
Hyrax.config.try(:work_include_metadata?)
|
|
24
|
+
work_type.send(:include, Hyrax::Schema(:child_works_from_pdf_splitting)) if
|
|
25
|
+
Hyrax.config.try(:work_include_metadata?) && !Hyrax.config.try(:flexible?) && !work_type.included_modules.include?(Hyrax::FormFields(:child_works_from_pdf_splitting))
|
|
26
26
|
# TODO: Use `Hyrax::ValkyrieIndexer.indexer_class_for` once changes are merged.
|
|
27
27
|
indexer = "#{work_type}Indexer".constantize
|
|
28
|
-
indexer.send(:include, Hyrax::Indexer(:child_works_from_pdf_splitting))
|
|
29
|
-
Hyrax.config.try(:work_include_metadata?)
|
|
28
|
+
indexer.send(:include, Hyrax::Indexer(:child_works_from_pdf_splitting)) if
|
|
29
|
+
Hyrax.config.try(:work_include_metadata?) && !Hyrax.config.try(:flexible?) && !indexer.included_modules.include?(Hyrax::FormFields(:child_works_from_pdf_splitting))
|
|
30
30
|
indexer
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -35,8 +35,8 @@ module IiifPrint
|
|
|
35
35
|
# @return form for the given :work_type
|
|
36
36
|
def self.decorate_form_with_adapter_logic(work_type:)
|
|
37
37
|
form = "#{work_type}Form".constantize
|
|
38
|
-
form.send(:include, Hyrax::FormFields(:child_works_from_pdf_splitting))
|
|
39
|
-
Hyrax.config.try(:work_include_metadata?)
|
|
38
|
+
form.send(:include, Hyrax::FormFields(:child_works_from_pdf_splitting)) if
|
|
39
|
+
Hyrax.config.try(:work_include_metadata?) && !Hyrax.config.try(:flexible?) && !form.included_modules.include?(Hyrax::FormFields(:child_works_from_pdf_splitting))
|
|
40
40
|
form
|
|
41
41
|
end
|
|
42
42
|
|
data/lib/iiif_print/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iiif_print
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Upton
|
|
@@ -14,7 +14,7 @@ authors:
|
|
|
14
14
|
autorequire:
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
|
-
date: 2025-11-
|
|
17
|
+
date: 2025-11-18 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: blacklight_iiif_search
|