cul_hydra 1.3.7 → 1.3.8

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: 57b046842e517c4452af5cb21a6359c4aefdff88
4
- data.tar.gz: 5b6122776131139c34d7ff6e6da266c9a8314f6d
3
+ metadata.gz: ec8bcbc10fdf68d670dfe01746875af54bdd5c10
4
+ data.tar.gz: d79c8eca60c517ec40c7fd010962502b298f1154
5
5
  SHA512:
6
- metadata.gz: 30cf1096c6208e8ef81eab273ab22e536c46a6c0d6eea7826af4198bb36237bd257c235ee27428af4c4795ccb2dfafd02a1e972ce73511f49898c8f6e05a035f
7
- data.tar.gz: 36711e7bd294a79840f28d4b9b8305484b8b4b42431d845f995f51ca5136be305ee5e696c511b311c50fb4eb60f5fc8aa32a862e80077158220688464486252a
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=>[:textable, :displayable])
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])
@@ -8,6 +8,7 @@
8
8
  <holdingSimple>
9
9
  <copyInformation>
10
10
  <shelfLocator>Folder no. 5</shelfLocator>
11
+ <sublocation>Avery Classics Collection</sublocation>
11
12
  </copyInformation>
12
13
  </holdingSimple>
13
14
  </location>
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.3.7'
3
+ VERSION = '1.3.8'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.3.6'
3
+ VERSION = '1.3.7'
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.3.7
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