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 +4 -4
- data/lib/cul_hydra/solrizer/mods_fieldable.rb +9 -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: 67ba675dbcd11ee3e44b2360d35ca40fbe1dba08
|
4
|
+
data.tar.gz: efec088da67ba317a7b1f93d3e3065ab42e1c9f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"]
|
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_scv_hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.22.9.
|
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-
|
12
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight
|