spotlight-dor-resources 0.3.2 → 0.3.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 698f54252d22ab420aab01562bede6178e40a17e
|
4
|
+
data.tar.gz: b9fe13651bfcc10643e34e79fa30934fe0c711f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bf3f922cab55c04bd8dfd4125ffa8a9aeee5537551bf6228f41a6bd4764d2f93ab240e4af1b6314a0acd15817420fb60beae432e6d42af30cd27bb4f4add334
|
7
|
+
data.tar.gz: 0c5a61cb18789b0d5e2e39ebff6b38f4d714b368d7ad6574b859c95d67b7c52c865b6b861c7de90963de0f02c47340eed465724c3823a30aa5e91ed7346f0c61
|
@@ -53,7 +53,7 @@ module Spotlight::Dor
|
|
53
53
|
# add coordinates solr field containing the cartographic coordinates per
|
54
54
|
# MODS subject.cartographics.coordinates (via stanford-mods gem)
|
55
55
|
def add_coordinates(sdb, solr_doc)
|
56
|
-
solr_doc['
|
56
|
+
solr_doc['coordinates_tesim'] = sdb.smods_rec.coordinates
|
57
57
|
end
|
58
58
|
|
59
59
|
# add collector_ssim solr field containing the collector per MODS names (via stanford-mods gem)
|
@@ -369,7 +369,7 @@ describe Spotlight::Dor::Indexer do
|
|
369
369
|
end
|
370
370
|
|
371
371
|
it 'is blank' do
|
372
|
-
expect(solr_doc['
|
372
|
+
expect(solr_doc['coordinates_tesim']).to be_blank
|
373
373
|
end
|
374
374
|
end
|
375
375
|
context 'with a record with coordinates' do
|
@@ -388,7 +388,7 @@ describe Spotlight::Dor::Indexer do
|
|
388
388
|
end
|
389
389
|
|
390
390
|
it 'extracts the coordinates' do
|
391
|
-
expect(solr_doc['
|
391
|
+
expect(solr_doc['coordinates_tesim']).to eq(['(W16°--E28°/N13°--S15°).'])
|
392
392
|
end
|
393
393
|
end
|
394
394
|
end # add_coordinates
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spotlight-dor-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|