cul_hydra 1.3.7 → 1.3.8
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 +4 -4
- data/app/models/cul/hydra/datastreams/mods_document.rb +1 -1
- data/fixtures/spec/CUL_MODS/{mods-physical-location-with-dual-location-shelflocator.xml → mods-physical-location-with-dual-location-shelflocator-and-sublocation.xml} +1 -0
- data/lib/cul_hydra/solrizer/mods_fieldable.rb +13 -0
- data/lib/cul_hydra/version.rb +1 -1
- data/lib/cul_hydra/version.rb~ +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec8bcbc10fdf68d670dfe01746875af54bdd5c10
|
|
4
|
+
data.tar.gz: d79c8eca60c517ec40c7fd010962502b298f1154
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38dfe5a01b4b1dfa97aad20497da68419c28a0f655fb8a674abff65447b9300c95dfd0ca38ebd19a8509298d7d47ddfad5ad6bd4981d17ae3279e079c4989fe8
|
|
7
|
+
data.tar.gz: 8d1f02b7ce37cc6f4ddfe7bab87631d8031b0dc212e2c4809678114b2c5af996bc8c0e6794cfc12315edf10a094aa50aa538cfa26695d526168013c8e47d33c3
|
|
@@ -90,7 +90,7 @@ class ModsDocument < ::ActiveFedora::OmDatastream
|
|
|
90
90
|
:attributes=>{:authority=>"marcorg"},
|
|
91
91
|
:index_as=>[:textable])
|
|
92
92
|
t.shelf_locator(:path=>"shelfLocator", :index_as=>[:displayable])
|
|
93
|
-
t.sublocation(:path=>"sublocation", :index_as=>[:
|
|
93
|
+
t.sublocation(:path=>"sublocation", :index_as=>[:displayable])
|
|
94
94
|
t.url
|
|
95
95
|
}
|
|
96
96
|
t.top_level_location_url(:proxy=>[:mods, :location, :url])
|
|
@@ -198,6 +198,16 @@ module Cul::Hydra::Solrizer
|
|
|
198
198
|
end
|
|
199
199
|
values
|
|
200
200
|
end
|
|
201
|
+
|
|
202
|
+
def sublocation(node=mods)
|
|
203
|
+
values = node.xpath("./mods:location/mods:sublocation", MODS_NS).collect do |n|
|
|
204
|
+
ModsFieldable.normalize(n.text, true)
|
|
205
|
+
end
|
|
206
|
+
values += node.xpath("./mods:location/mods:holdingSimple/mods:copyInformation/mods:sublocation", MODS_NS).collect do |n|
|
|
207
|
+
ModsFieldable.normalize(n.text, true)
|
|
208
|
+
end
|
|
209
|
+
values
|
|
210
|
+
end
|
|
201
211
|
|
|
202
212
|
def textual_dates(node=mods)
|
|
203
213
|
dates = []
|
|
@@ -380,6 +390,9 @@ module Cul::Hydra::Solrizer
|
|
|
380
390
|
solr_doc["lib_shelf_sim"] = shelf_locators
|
|
381
391
|
solr_doc['location_shelf_locator_ssm'] = solr_doc["lib_shelf_sim"]
|
|
382
392
|
solr_doc["all_text_teim"] += solr_doc["lib_shelf_sim"]
|
|
393
|
+
solr_doc['lib_sublocation_sim'] = sublocation
|
|
394
|
+
solr_doc['lib_sublocation_ssm'] = solr_doc['lib_sublocation_sim']
|
|
395
|
+
solr_doc["all_text_teim"] += solr_doc['lib_sublocation_sim']
|
|
383
396
|
solr_doc["lib_date_textual_ssm"] = textual_dates
|
|
384
397
|
solr_doc["lib_date_notes_ssm"] = date_notes
|
|
385
398
|
solr_doc["lib_non_date_notes_ssm"] = non_date_notes
|
data/lib/cul_hydra/version.rb
CHANGED
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.3.
|
|
4
|
+
version: 1.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Armintor
|
|
@@ -459,7 +459,7 @@ files:
|
|
|
459
459
|
- fixtures/spec/CUL_MODS/mods-origin-info.xml
|
|
460
460
|
- fixtures/spec/CUL_MODS/mods-part.xml
|
|
461
461
|
- fixtures/spec/CUL_MODS/mods-physical-description.xml
|
|
462
|
-
- fixtures/spec/CUL_MODS/mods-physical-location-with-dual-location-shelflocator.xml
|
|
462
|
+
- fixtures/spec/CUL_MODS/mods-physical-location-with-dual-location-shelflocator-and-sublocation.xml
|
|
463
463
|
- fixtures/spec/CUL_MODS/mods-physical-location.xml
|
|
464
464
|
- fixtures/spec/CUL_MODS/mods-record-info.xml
|
|
465
465
|
- fixtures/spec/CUL_MODS/mods-relateditem-project.xml
|