iiif_print 3.0.10 → 3.0.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76254fc0e51b58bf968577e0fe203cfac14be503b8be917288298a9eed68afd7
4
- data.tar.gz: 4ba0b95077a46dc44e65f474283720098142088534b1454b9a4e3b177728c4a4
3
+ metadata.gz: a4551ae83d8bd370109a2532c3bd4cbeab4e97b8cc33f6044ece488eb2e3788c
4
+ data.tar.gz: 33ca8e19b35d2b25b3bca1a032a711079313646115988e56eae71945ba7e9f04
5
5
  SHA512:
6
- metadata.gz: be935301728016617038746d3fbe83b774872811aab4dde6773e5bcdefe1df185031af27a0c79acc71af82ccb03316b3c4195cb6c05f3c81e212dc66d2325a2a
7
- data.tar.gz: faa8537c064fac5f1af135372f4d632fedd2bb4c2dcbf40e27e5eaeee5a14e984180c95d77581ab26271159ae5e90e5b4ea9e3d02f3b0103f4ea7137e117c47a
6
+ metadata.gz: 7f38d9d98db8f547d5fb9af63e44cfb1ef5e616cc7e513d70ccee194f830668a2f259923fe7be7ba5fe19be834a46d56494e3988ac1f20fe219d6b5a0b589b94
7
+ data.tar.gz: 3630e05021abcc8dc82788c1dc88bdc7ecfbfa21214280ea291e89c3d8f23fe03740a9dcc19baa8c8c527c10b931b0256f03b762776cc53caf2c6fd45a0a0d8e
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.10)
4
+ iiif_print (3.0.12)
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.7)
80
- public_suffix (>= 2.0.2, < 7.0)
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.8.0)
88
- activerecord (>= 4.0.0, < 8.1)
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.1184.0)
91
- aws-sdk-core (3.237.0)
90
+ aws-partitions (1.1222.0)
91
+ aws-sdk-core (3.243.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.117.0)
100
- aws-sdk-core (~> 3, >= 3.234.0)
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.203.1)
103
- aws-sdk-core (~> 3, >= 3.234.0)
102
+ aws-sdk-s3 (1.215.0)
103
+ aws-sdk-core (~> 3, >= 3.243.0)
104
104
  aws-sdk-kms (~> 1)
105
105
  aws-sigv4 (~> 1.5)
106
- aws-sdk-sqs (1.106.0)
107
- aws-sdk-core (~> 3, >= 3.234.0)
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,9 +116,9 @@ GEM
116
116
  base64 (0.3.0)
117
117
  bcp47 (0.3.3)
118
118
  i18n
119
- bcrypt (3.1.20)
119
+ bcrypt (3.1.21)
120
120
  benchmark (0.3.0)
121
- bigdecimal (3.3.1)
121
+ bigdecimal (4.0.1)
122
122
  bindex (0.8.1)
123
123
  bixby (5.0.2)
124
124
  rubocop (= 1.28.2)
@@ -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.4)
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.0.0)
347
+ hashie (5.1.0)
348
+ logger
348
349
  hiredis (0.6.3)
349
- htmlentities (4.3.4)
350
- http_logger (1.0.1)
351
- httparty (0.23.2)
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.2.0)
395
- activesupport (>= 5.2, < 8.0)
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)
@@ -491,9 +492,9 @@ GEM
491
492
  json-ld-preloaded (3.1.6)
492
493
  json-ld (~> 3.1)
493
494
  rdf (~> 3.1)
494
- json-schema (5.2.2)
495
+ json-schema (6.2.0)
495
496
  addressable (~> 2.8)
496
- bigdecimal (~> 3.1)
497
+ bigdecimal (>= 3.1, < 5)
497
498
  jwt (2.10.2)
498
499
  base64
499
500
  kaminari (1.2.2)
@@ -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.2025.0924)
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.6)
598
- connection_pool (~> 2.2, >= 2.2.4)
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"
@@ -34,9 +34,14 @@ module IiifPrint
34
34
  # @param work_type [Class<ActiveFedora::Base>]
35
35
  # @return form for the given :work_type
36
36
  def self.decorate_form_with_adapter_logic(work_type:)
37
+ # In Hyrax flexible metadata mode, `Hyrax::FormFields(:child_works_from_pdf_splitting)`
38
+ # is a no-op but calling `"#{work_type}Form".constantize` unconditionally causes a
39
+ # circular autoload error when a model is loaded before its form.
40
+ return if Hyrax.config.try(:flexible?)
41
+
37
42
  form = "#{work_type}Form".constantize
38
43
  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))
44
+ Hyrax.config.try(:work_include_metadata?) && !form.included_modules.include?(Hyrax::FormFields(:child_works_from_pdf_splitting))
40
45
  form
41
46
  end
42
47
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module IiifPrint
2
- VERSION = '3.0.10'.freeze
2
+ VERSION = '3.0.12'.freeze
3
3
  end
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.10
4
+ version: 3.0.12
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-18 00:00:00.000000000 Z
17
+ date: 2026-03-06 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
@@ -510,7 +511,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
510
511
  - !ruby/object:Gem::Version
511
512
  version: '0'
512
513
  requirements: []
513
- rubygems_version: 3.3.20
514
+ rubygems_version: 3.1.6
514
515
  signing_key:
515
516
  specification_version: 4
516
517
  summary: IiifPrint is a gem (Rails "engine") for Hyrax-based digital repository applications