iiif_print 3.0.10 → 3.0.11
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 +25 -24
- data/app/indexers/concerns/iiif_print/child_work_indexer_decorator.rb +1 -1
- data/app/jobs/content_deposit_error_event_job.rb +17 -0
- data/app/views/hyrax/base/iiif_viewers/_universal_viewer.html.erb +1 -2
- data/lib/iiif_print/text_extraction_derivative_service.rb +3 -0
- data/lib/iiif_print/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 653b6bcf6d9120cbdfa3f0fd05d4034497a9147611d275e5d3111cf75edacc67
|
|
4
|
+
data.tar.gz: a565d045ce46175b631091b94e99160ccd8b77bccc72faf6d9c298f47dc2d8e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 005d431cee41520be5fd6035d1446e099d05efb5a756a159d941372a911d325e033b2643fe78a0ab7da1d1b8b43b31b5d43cc303b32854191e5c369cf8277635
|
|
7
|
+
data.tar.gz: 1a3073d0662f1f7c9734cc14a3aa110d26a9ca0dde6a75b84bc953ccaac57ba9773364bcd18e925797c9d6278578812390ecf378b67dd7936b9edcebd7cc7ba3
|
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.11)
|
|
5
5
|
blacklight_iiif_search (>= 1.0, < 3.0)
|
|
6
6
|
derivative-rodeo (~> 0.5)
|
|
7
7
|
hyrax (>= 2.5, < 6)
|
|
@@ -76,19 +76,19 @@ GEM
|
|
|
76
76
|
i18n (>= 0.7, < 2)
|
|
77
77
|
minitest (~> 5.1)
|
|
78
78
|
tzinfo (~> 1.1)
|
|
79
|
-
addressable (2.8.
|
|
80
|
-
public_suffix (>= 2.0.2, <
|
|
79
|
+
addressable (2.8.9)
|
|
80
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
81
81
|
almond-rails (0.3.0)
|
|
82
82
|
rails (>= 4.2)
|
|
83
83
|
arel (9.0.0)
|
|
84
84
|
ast (2.4.2)
|
|
85
85
|
autoprefixer-rails (10.4.16.0)
|
|
86
86
|
execjs (~> 2)
|
|
87
|
-
awesome_nested_set (3.
|
|
88
|
-
activerecord (>= 4.0.0, < 8.
|
|
87
|
+
awesome_nested_set (3.9.0)
|
|
88
|
+
activerecord (>= 4.0.0, < 8.2)
|
|
89
89
|
aws-eventstream (1.4.0)
|
|
90
|
-
aws-partitions (1.
|
|
91
|
-
aws-sdk-core (3.
|
|
90
|
+
aws-partitions (1.1221.0)
|
|
91
|
+
aws-sdk-core (3.242.0)
|
|
92
92
|
aws-eventstream (~> 1, >= 1.3.0)
|
|
93
93
|
aws-partitions (~> 1, >= 1.992.0)
|
|
94
94
|
aws-sigv4 (~> 1.9)
|
|
@@ -96,15 +96,15 @@ GEM
|
|
|
96
96
|
bigdecimal
|
|
97
97
|
jmespath (~> 1, >= 1.6.1)
|
|
98
98
|
logger
|
|
99
|
-
aws-sdk-kms (1.
|
|
100
|
-
aws-sdk-core (~> 3, >= 3.
|
|
99
|
+
aws-sdk-kms (1.122.0)
|
|
100
|
+
aws-sdk-core (~> 3, >= 3.241.4)
|
|
101
101
|
aws-sigv4 (~> 1.5)
|
|
102
|
-
aws-sdk-s3 (1.
|
|
103
|
-
aws-sdk-core (~> 3, >= 3.
|
|
102
|
+
aws-sdk-s3 (1.214.0)
|
|
103
|
+
aws-sdk-core (~> 3, >= 3.241.4)
|
|
104
104
|
aws-sdk-kms (~> 1)
|
|
105
105
|
aws-sigv4 (~> 1.5)
|
|
106
|
-
aws-sdk-sqs (1.
|
|
107
|
-
aws-sdk-core (~> 3, >= 3.
|
|
106
|
+
aws-sdk-sqs (1.111.0)
|
|
107
|
+
aws-sdk-core (~> 3, >= 3.241.4)
|
|
108
108
|
aws-sigv4 (~> 1.5)
|
|
109
109
|
aws-sigv4 (1.12.1)
|
|
110
110
|
aws-eventstream (~> 1, >= 1.0.2)
|
|
@@ -116,7 +116,7 @@ GEM
|
|
|
116
116
|
base64 (0.3.0)
|
|
117
117
|
bcp47 (0.3.3)
|
|
118
118
|
i18n
|
|
119
|
-
bcrypt (3.1.
|
|
119
|
+
bcrypt (3.1.21)
|
|
120
120
|
benchmark (0.3.0)
|
|
121
121
|
bigdecimal (3.3.1)
|
|
122
122
|
bindex (0.8.1)
|
|
@@ -180,7 +180,7 @@ GEM
|
|
|
180
180
|
execjs
|
|
181
181
|
coffee-script-source (1.12.2)
|
|
182
182
|
concurrent-ruby (1.2.2)
|
|
183
|
-
connection_pool (2.5.
|
|
183
|
+
connection_pool (2.5.5)
|
|
184
184
|
coveralls (0.8.23)
|
|
185
185
|
json (>= 1.8, < 3)
|
|
186
186
|
simplecov (~> 0.16.1)
|
|
@@ -344,11 +344,12 @@ GEM
|
|
|
344
344
|
temple (>= 0.8.2)
|
|
345
345
|
thor
|
|
346
346
|
tilt
|
|
347
|
-
hashie (5.
|
|
347
|
+
hashie (5.1.0)
|
|
348
|
+
logger
|
|
348
349
|
hiredis (0.6.3)
|
|
349
|
-
htmlentities (4.
|
|
350
|
-
http_logger (1.0.
|
|
351
|
-
httparty (0.
|
|
350
|
+
htmlentities (4.4.2)
|
|
351
|
+
http_logger (1.0.2)
|
|
352
|
+
httparty (0.24.2)
|
|
352
353
|
csv
|
|
353
354
|
mini_mime (>= 1.0.0)
|
|
354
355
|
multi_xml (>= 0.5.2)
|
|
@@ -391,8 +392,8 @@ GEM
|
|
|
391
392
|
active-fedora (>= 10)
|
|
392
393
|
mime-types (>= 1)
|
|
393
394
|
rdf-vocab
|
|
394
|
-
hydra-works (2.
|
|
395
|
-
activesupport (>= 5.2, <
|
|
395
|
+
hydra-works (2.3.0)
|
|
396
|
+
activesupport (>= 5.2, < 9.0)
|
|
396
397
|
hydra-derivatives (>= 3.6)
|
|
397
398
|
hydra-file_characterization (~> 1.0)
|
|
398
399
|
hydra-pcdm (>= 0.9)
|
|
@@ -583,7 +584,7 @@ GEM
|
|
|
583
584
|
mime-types (3.7.0)
|
|
584
585
|
logger
|
|
585
586
|
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
|
586
|
-
mime-types-data (3.
|
|
587
|
+
mime-types-data (3.2026.0303)
|
|
587
588
|
mini_magick (4.13.2)
|
|
588
589
|
mini_mime (1.1.5)
|
|
589
590
|
mini_portile2 (2.8.5)
|
|
@@ -594,8 +595,8 @@ GEM
|
|
|
594
595
|
mutex_m (0.3.0)
|
|
595
596
|
nest (3.2.0)
|
|
596
597
|
redic
|
|
597
|
-
net-http-persistent (4.0.
|
|
598
|
-
connection_pool (
|
|
598
|
+
net-http-persistent (4.0.8)
|
|
599
|
+
connection_pool (>= 2.2.4, < 4)
|
|
599
600
|
net-imap (0.4.6)
|
|
600
601
|
date
|
|
601
602
|
net-protocol
|
|
@@ -36,7 +36,7 @@ if ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYRAX_VALKYRIE', false))
|
|
|
36
36
|
indexers = Hyrax.config.curation_concerns.map do |concern|
|
|
37
37
|
"#{concern}ResourceIndexer".safe_constantize
|
|
38
38
|
end
|
|
39
|
-
indexers.each { |indexer| indexer.prepend(IiifPrint::ChildWorkIndexerDecorator) }
|
|
39
|
+
indexers.compact.each { |indexer| indexer.prepend(IiifPrint::ChildWorkIndexerDecorator) }
|
|
40
40
|
|
|
41
41
|
# Versions 3.0+ of Hyrax have `Hyrax::ValkyrieWorkIndexer` so we want to decorate that as
|
|
42
42
|
# well. We want to use the elsif construct because later on Hyrax::ValkyrieWorkIndexer
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Log a concern deposit error to activity streams
|
|
3
|
+
# This class is also being ported to Hyrax itself. It can be removed from here once Hyrax has it
|
|
4
|
+
class ContentDepositErrorEventJob < ContentEventJob
|
|
5
|
+
attr_accessor :reason, :repo_object, :depositor
|
|
6
|
+
|
|
7
|
+
def perform(repo_object, depositor, reason: '')
|
|
8
|
+
self.reason = reason
|
|
9
|
+
self.repo_object = repo_object
|
|
10
|
+
self.depositor = depositor
|
|
11
|
+
super(repo_object, depositor)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def action
|
|
15
|
+
"User #{link_to_profile depositor} deposit of #{link_to repo_object.title.first, polymorphic_path(repo_object)} has failed for #{reason}"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<div class="viewer-wrapper">
|
|
2
|
-
<iframe
|
|
3
|
-
id="uv-iframe"
|
|
2
|
+
<iframe title="image view"
|
|
4
3
|
src="<%= universal_viewer_base_url %>#?manifest=<%= main_app.polymorphic_url [main_app, :manifest, presenter], { locale: nil } %>&config=<%= universal_viewer_config_url %><%= uv_search_param %>"
|
|
5
4
|
allowfullscreen="true"
|
|
6
5
|
frameborder="0"
|
|
@@ -19,6 +19,9 @@ module IiifPrint
|
|
|
19
19
|
)
|
|
20
20
|
return from_alto.create_derivatives(src) unless from_alto.alto_path.nil?
|
|
21
21
|
create_derivatives_from_ocr(src)
|
|
22
|
+
rescue => e
|
|
23
|
+
user = User.find_by_user_key(file_set.depositor)
|
|
24
|
+
ContentDepositErrorEventJob.perform_later(file_set, user, reason: e.message)
|
|
22
25
|
end
|
|
23
26
|
|
|
24
27
|
def create_derivatives_from_ocr(filename)
|
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.11
|
|
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:
|
|
17
|
+
date: 2026-03-05 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: blacklight_iiif_search
|
|
@@ -365,6 +365,7 @@ files:
|
|
|
365
365
|
- app/helpers/iiif_print_helper.rb
|
|
366
366
|
- app/indexers/concerns/iiif_print/child_work_indexer_decorator.rb
|
|
367
367
|
- app/indexers/concerns/iiif_print/file_set_indexer_decorator.rb
|
|
368
|
+
- app/jobs/content_deposit_error_event_job.rb
|
|
368
369
|
- app/jobs/iiif_print/jobs/application_job.rb
|
|
369
370
|
- app/jobs/iiif_print/jobs/child_works_from_pdf_job.rb
|
|
370
371
|
- app/jobs/iiif_print/jobs/create_relationships_job.rb
|