cul_hydra 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc86af65e09c7f445c98132040488e30f9fbc0ec
4
- data.tar.gz: 043b1c113b906fd138bebe336816554c9ddbbcfa
3
+ metadata.gz: b2394e77a1eb550f0a7345256e447bf195ecf191
4
+ data.tar.gz: d2283027faf5a423ff68c2971b71a65e6c0fceb6
5
5
  SHA512:
6
- metadata.gz: 3faff2a87534e94607e17f32a19cbffc98ee3fa97a511a9d563192d2348bc438788546b8c18603f8ff4c939f902961c694e8ad1879e54c1b27b49ce9e34cc6fe
7
- data.tar.gz: fa795f39b498b43854f5f77edbd74bf8761ca28029d34f9c6026067a90fadc8cb81ff522283a5ed52583231ce375bfe98c77975a34151f8e046020b39a2ab8df
6
+ metadata.gz: 82937f824a67b93f93ab736899f30dda395ede7288436d0478ec59870289d44cd5a530361685ac1e54671ce6a9d8967cb2823cfcb53a49f308fc8924bcc27f6e
7
+ data.tar.gz: ab7a330d7a7ff0f32588a6aaf76a3363cd26ca2e6ab5e28ad900bcf65d4ce039d8bdc11f3c7220565b287625e7a6c010b439e67f9173a913f26ad9d6aa86e080
@@ -153,7 +153,12 @@ module Cul::Hydra::Models::Common
153
153
 
154
154
  # Check for the presence of a structMap and get first GenericResource in that structMap
155
155
  if self.has_struct_metadata?
156
- struct = Cul::Hydra::Datastreams::StructMetadata.from_xml(self.datastreams['structMetadata'].content)
156
+ begin
157
+ struct = Cul::Hydra::Datastreams::StructMetadata.from_xml(self.datastreams['structMetadata'].content)
158
+ rescue Rubydora::FedoraInvalidRequest => e
159
+ Rails.logger.error "Error: Problem accessing struct datastream data in #{self.pid}" # More specific error notice
160
+ raise e
161
+ end
157
162
  ng_div = struct.first_ordered_content_div #Nokogiri node response
158
163
  found_struct_div = (! ng_div.nil?)
159
164
  else
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.0.5'
3
+ VERSION = '1.0.6'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
4
4
  def self.version
5
5
  VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor