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 +4 -4
- data/app/models/concerns/cul/hydra/models/common.rb +6 -1
- data/lib/cul_hydra/version.rb +1 -1
- data/lib/cul_hydra/version.rb~ +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2394e77a1eb550f0a7345256e447bf195ecf191
|
4
|
+
data.tar.gz: d2283027faf5a423ff68c2971b71a65e6c0fceb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/cul_hydra/version.rb
CHANGED
data/lib/cul_hydra/version.rb~
CHANGED