cul_hydra 1.6.1 → 1.6.2

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
  SHA256:
3
- metadata.gz: e631e6dec97d12ff67e5e412582d19a42715b0b35c7eb556186d855ab5071d2c
4
- data.tar.gz: 52e1a4749582ca13b6b4285ad8060fb9c950a492e26ae972faca08d0b083ecf2
3
+ metadata.gz: 2f102335a9605f015a39db48f0a56b45326879f8b86a29cf93e25208904bec73
4
+ data.tar.gz: 56154537716f8bd8f8c703a78cbd62c06913aa6f34df5674879811a664cf619a
5
5
  SHA512:
6
- metadata.gz: fb189e3fa2116c7d403dd41aff1719aecf460880b7f9ccf6751b5511eb289709332c36dd4a68bf1280b9c2be6b05a69bda96b8d5d3dc34b200328970c4dab60b
7
- data.tar.gz: eaf5bd3c4d5c1d54b9776341403060ff8f26598132a4101985f712fa82f7e995a6e22012dd02f0c3d0f50ff95831572c60712c2faff99fc50025b7d397ee2c36
6
+ metadata.gz: '008492c21b4ab8536b6efa4a4826ad75b4ec571eea746fcec2358fb778d2bf67c2131e9a3defcb7ecddf7f3bcaab83a873d11f47255983d451965fe94977b9cc'
7
+ data.tar.gz: 8c4b1c7ed98e4552916a436686c370cab795372bc0fea5fbf0ca2a8a7628bf931c9305db1e13a3b4e6e5e1eadaf6452ded9533d9be3fb51254bd3a71e05bf3f1
@@ -56,6 +56,11 @@
56
56
  <coordinates>40.6892, -74.0444</coordinates>
57
57
  </cartographics>
58
58
  </subject>
59
+ <subject>
60
+ <cartographics>
61
+ <coordinates>-40.6892, 74.0444</coordinates>
62
+ </cartographics>
63
+ </subject>
59
64
  <subject>
60
65
  <hierarchicalGeographic>
61
66
  <country>United States</country>
@@ -400,9 +400,10 @@ module Cul::Hydra::Solrizer
400
400
  def coordinates(node=mods)
401
401
  coordinate_values = []
402
402
  node.xpath("./mods:subject/mods:cartographics/mods:coordinates", MODS_NS).collect do |n|
403
- n = ModsFieldable.normalize(n.text, true)
404
- if n.match(/-*\d+\.\d+\s*,\s*-*\d+\.\d+\s*/) # Expected coordinate format: 40.123456,-73.5678
405
- coordinate_values << n
403
+ nt = ModsFieldable.normalize(n.text, true)
404
+ if nt.match(/-*\d+\.\d+\s*,\s*-*\d+\.\d+\s*/) # Expected coordinate format: 40.123456,-73.5678
405
+ nt = "-#{nt}" if n.text[n.text.index(nt) - 1] == '-'
406
+ coordinate_values << nt
406
407
  end
407
408
  end
408
409
  coordinate_values
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.6.1'
3
+ VERSION = '1.6.2'
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.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-29 00:00:00.000000000 Z
12
+ date: 2019-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap-sass