cul_scv_hydra 0.22.9.7 → 0.22.9.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: 9fffc9048b41a4ee245b7fdd9ba063c559cdc556
4
- data.tar.gz: 4d628d85ba74b387c9f4fb1905c708922bffbf3f
3
+ metadata.gz: 67ba675dbcd11ee3e44b2360d35ca40fbe1dba08
4
+ data.tar.gz: efec088da67ba317a7b1f93d3e3065ab42e1c9f8
5
5
  SHA512:
6
- metadata.gz: 550c7643a816ef5c034faffb541c6db361801946a9a92cbc0a7c61a411e509b888e1830630f26bde32d6a8d5d22584acbcd32e003108b3bccccd3ad449ea974c
7
- data.tar.gz: 4b41cad0335695be5304421d072ecb52336e8323195c8ced8da678acc499bfff22bc2ab2fe38e1a4a1c0f0becb35a66aa30657a362d30d8142775bcf50a3e5ef
6
+ metadata.gz: 7188765143462d4f6cdc93424982e95518903604680e0e06b6c62a6dd6ba08724a3a9e2aa514fd2431f7e691fd33813d229caa8544879166f10717dc647df2ec
7
+ data.tar.gz: 72fee1cbab65259f6c7f895ac180c65de15d7f0995d8f9dc46b690701ccc61a2ea2912468f96cfae5b1c8a7624cc1fdb4e6d8c58a67e16c0cbc11070fbf26bd1
@@ -291,6 +291,14 @@ module Cul::Hydra::Solrizer
291
291
  return list_of_subjects
292
292
  end
293
293
 
294
+ def durst_subjects(node=mods)
295
+ list_of_subjects = []
296
+ node.xpath("./mods:subject[@authority='Durst']/mods:topic", MODS_NS).collect do |n|
297
+ list_of_subjects << ModsFieldable.normalize(n.text, true)
298
+ end
299
+ return list_of_subjects
300
+ end
301
+
294
302
  def origin_info_place(node=mods)
295
303
  places = []
296
304
  node.xpath("./mods:originInfo/mods:place/mods:placeTerm", MODS_NS).collect do |n|
@@ -340,6 +348,7 @@ module Cul::Hydra::Solrizer
340
348
  solr_doc["lib_name_teim"] = solr_doc["lib_name_sim"]
341
349
  solr_doc["all_text_teim"] += solr_doc["lib_name_teim"]
342
350
  solr_doc["lib_all_subjects_ssm"] = all_subjects
351
+ solr_doc["durst_subjects_ssim"] = durst_subjects
343
352
  solr_doc["lib_all_subjects_teim"] = solr_doc["lib_all_subjects_ssm"]
344
353
  solr_doc["all_text_teim"] += solr_doc["lib_all_subjects_teim"]
345
354
  solr_doc["lib_name_ssm"] = solr_doc["lib_name_sim"]
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '0.22.9.7'
3
+ VERSION = '0.22.9.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 = '0.22.9.6'
3
+ VERSION = '0.22.9.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_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.9.7
4
+ version: 0.22.9.8
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: 2015-04-04 00:00:00.000000000 Z
12
+ date: 2015-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight