cul_scv_hydra 0.16.11 → 0.16.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2NjMDc4YmMxN2JkMDUwNTk5NDZmNzJlNTMwYzU2MDE3MWYxMzRiMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjUyYWI2NmMxNTk5NWM4YzY0NGQ0MjdhYWJmYjYxNTY2Y2RkYTQ5Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2ZhNjdkYzAzZjc0OTkxNDc2MWRhYjFjODg1YmFjMDZkNmY3ZWJkMGFjZTcx
|
10
|
+
YzQzMjdmNWNhZTliMmEyMmJjNDY2ZWFhNWM5ZGY4NTE3ZDE2NTE0YTA2MDE1
|
11
|
+
NGFjYjhlYzZjMDg0N2NjNzg2NjRiYjgyNzcyNjA5YzJhN2M4N2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjA4NDM1ZDAyN2ZkNTA3ODczOGZkNjBmMTJhYjhhNmQ0ZjdhMzQ1NzU4MTA3
|
14
|
+
OWRjNDAyZWMxOGViMjI4MGNhY2VmMTExZjgzY2MxMzA2OWMzZjU5ZmYzYjFk
|
15
|
+
MTA4M2E3NmRjNWM5NWZhYzA3NDk3YmQzYTk5MDI4MGM3NGRkZmE=
|
@@ -124,7 +124,17 @@ module Cul::Scv::Hydra::Solrizer
|
|
124
124
|
else
|
125
125
|
return nil
|
126
126
|
end
|
127
|
+
end
|
128
|
+
|
129
|
+
def repository_text(node=mods)
|
130
|
+
# get the location/physicalLocation[not(@authority)]
|
131
|
+
repo_text_node = node.xpath("./mods:location/mods:physicalLocation[not(@authority)]", MODS_NS).first
|
127
132
|
|
133
|
+
if repo_text_node
|
134
|
+
ScvModsFieldable.normalize(repo_text_node.text)
|
135
|
+
else
|
136
|
+
return nil
|
137
|
+
end
|
128
138
|
end
|
129
139
|
|
130
140
|
def translate_repo_marc_code(code, type)
|
@@ -269,6 +279,7 @@ module Cul::Scv::Hydra::Solrizer
|
|
269
279
|
solr_doc["lib_repo_long_sim"] = [translate_repo_marc_code(repo_marc_code, 'long')]
|
270
280
|
solr_doc["lib_repo_full_ssim"] = [translate_repo_marc_code(repo_marc_code, 'full')]
|
271
281
|
end
|
282
|
+
solr_doc["lib_repo_text_ssm"] = repository_text
|
272
283
|
|
273
284
|
project_titles = projects
|
274
285
|
unless project_titles.nil?
|