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: 6cf2a83344f82c3ea1feda2793081760cc08e181
4
- data.tar.gz: 6ab5ecd724cef6f372a36049253a2f97b81daf8d
3
+ metadata.gz: 9a307bb5b7c512a3896b4de2b51c2cfcdff1f2c6
4
+ data.tar.gz: 6fc927e3bdc91a0373b47d3b91ee5e2fb5465b6e
5
5
  SHA512:
6
- metadata.gz: 7a5f64fa56d7d49e295218f61e2863ae4e2f31b3f0552c3fa3cf46d9cdeb9d7d14174eafc03fad5d83803b07f1f3c600cce43e11f25898bdb1263fab80f3f467
7
- data.tar.gz: 3c5180a0e9c2e491d8df704047b9db2dd625bf84c1e686b6797737211bcaffb611c71acb0a79045af1064c0d80f444c7faee8d40f6e5d0455e7d79a089614c04
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 valueUri attributes. Otherwise show the others.
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[@valueUri]", MODS_NS).collect do |n|
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(@valueUri)]", MODS_NS).collect do |n|
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
 
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.18.4'
5
+ VERSION = '0.18.5'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.18.3'
5
+ VERSION = '0.18.4'
6
6
  def self.version
7
7
  VERSION
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.4
4
+ version: 0.18.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor