cul_scv_hydra 0.18.4 → 0.18.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a307bb5b7c512a3896b4de2b51c2cfcdff1f2c6
|
4
|
+
data.tar.gz: 6fc927e3bdc91a0373b47d3b91ee5e2fb5465b6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69fe65d4a6f3008321a9d50992d99e0367ca761ccbef2ae7db276fcd12f2c660891eea2b3607082f137757c63e11cdc9616a5dafb67f2daeb86d16291ee96500
|
7
|
+
data.tar.gz: f7c71dfab081dc337ac6119eb27e709059ad44759e3c2d1eab5982a33061bf5b56be64c70fca1de854a11376ff8a66c88297f1d305e337db0319bbf79c77fce8
|
@@ -264,15 +264,19 @@ module Cul::Scv::Hydra::Solrizer
|
|
264
264
|
end
|
265
265
|
|
266
266
|
def origin_info_place_for_display(node=mods)
|
267
|
-
# If there are multiple origin_info place elements, choose only the ones without
|
267
|
+
# If there are multiple origin_info place elements, choose only the ones without valueURI attributes. Otherwise show the others.
|
268
268
|
places_with_uri = []
|
269
269
|
places_without_uri = []
|
270
|
-
node.xpath("./mods:originInfo/mods:place/mods:placeTerm[@
|
270
|
+
node.xpath("./mods:originInfo/mods:place/mods:placeTerm[@valueURI]", MODS_NS).collect do |n|
|
271
271
|
places_with_uri << ScvModsFieldable.normalize(n.text, true)
|
272
272
|
end
|
273
|
-
node.xpath("./mods:originInfo/mods:place/mods:placeTerm[not(@
|
273
|
+
node.xpath("./mods:originInfo/mods:place/mods:placeTerm[not(@valueURI)]", MODS_NS).collect do |n|
|
274
274
|
places_without_uri << ScvModsFieldable.normalize(n.text, true)
|
275
275
|
end
|
276
|
+
|
277
|
+
puts 'places_with_uri: ' + places_with_uri.inspect
|
278
|
+
puts 'places_without_uri: ' + places_without_uri.inspect
|
279
|
+
|
276
280
|
return (places_without_uri.length > 0 ? places_without_uri : places_with_uri)
|
277
281
|
end
|
278
282
|
|