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
- ZGFkMzRjYjBmOTU0NjFhOGM0YmY1ZWY3ZThlN2Y0ZWMyZmExYWVkMQ==
4
+ N2NjMDc4YmMxN2JkMDUwNTk5NDZmNzJlNTMwYzU2MDE3MWYxMzRiMA==
5
5
  data.tar.gz: !binary |-
6
- YjYyZGNjMjA5ZDJkMWE2YWYwM2ExYmNhOTA4YjYxYWY3NzI3ZDM1Mw==
6
+ NjUyYWI2NmMxNTk5NWM4YzY0NGQ0MjdhYWJmYjYxNTY2Y2RkYTQ5Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmZhMzhlMzMyYzA0OGZhNDI4NjEzYzBjY2U3ZGYyODg2Zjc1YjA3N2ZhZDI4
10
- M2Q3NGM4YjAxMTYxNDgwZTQzZjc3ZmI0Nzg0MDE5NmQzMjYwODk4ZGQxODJm
11
- M2E5MGM4NDNhZTE3OTU1MGRiNDk3MzIyNTNlYzU1ODhjZjgzOGU=
9
+ Y2ZhNjdkYzAzZjc0OTkxNDc2MWRhYjFjODg1YmFjMDZkNmY3ZWJkMGFjZTcx
10
+ YzQzMjdmNWNhZTliMmEyMmJjNDY2ZWFhNWM5ZGY4NTE3ZDE2NTE0YTA2MDE1
11
+ NGFjYjhlYzZjMDg0N2NjNzg2NjRiYjgyNzcyNjA5YzJhN2M4N2U=
12
12
  data.tar.gz: !binary |-
13
- ODc0YmFjMWQ0ZWM5NTBjNTkxZDAxNzFiNzc1YWM2MGQyMmMzZDE5ODBkMmUy
14
- MTM1MjRkZmY4NTRiYzg2OTAxZjRiZjFmNmQzYmQzOWQ1ZDg0NWQwZGY4OWRk
15
- MmM4NDU5YjMxOGY0ODhiM2JlYjkwOGIyNDBhNWZlZDYzNDczYmU=
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?
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.16.11'
5
+ VERSION = '0.16.12'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.16.10'
5
+ VERSION = '0.16.11'
6
6
  def self.version
7
7
  VERSION
8
8
  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.16.11
4
+ version: 0.16.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor