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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f102335a9605f015a39db48f0a56b45326879f8b86a29cf93e25208904bec73
|
4
|
+
data.tar.gz: 56154537716f8bd8f8c703a78cbd62c06913aa6f34df5674879811a664cf619a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
404
|
-
if
|
405
|
-
|
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
|
data/lib/cul_hydra/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2019-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap-sass
|