cul_scv_hydra 0.18.2 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a1f95f27c9815b98f9bbe434c0cbacfd8088596
4
- data.tar.gz: 8fc95376596dcb379c2ee4d4bdb5699e3925932f
3
+ metadata.gz: 7785c32e3d0f17f24a888874d662e5f52f54847b
4
+ data.tar.gz: b9a2948fdef204e83a6f8bf457f4f308341fcb81
5
5
  SHA512:
6
- metadata.gz: 33a7f2aeea4b0e7f64e60f741563ee968c3c1ea80a2a41ebcee43b8be4ec60f9c8eb52925993ab327157f9cf1cc8806117ff765b07e2cdd58ff7108434a83f8e
7
- data.tar.gz: bb97ea65500960d7d6ff4ca4a5851b4733dc723cb82260da480e4a1b6208d7f7fe1ab88f293574809d8c7f57672f89da26db1a5a4353102a99c98de5909ba0e9
6
+ metadata.gz: 4c80cbb874268224cb7cf302372a039415b4ac9ec9d8cb2af87a6866f9ef39a39c42ca1de54a22ee9b0c3982c546dc6f47bb149444ced127b6aee97103170808
7
+ data.tar.gz: 25bdf9e8fcd9abdfd8fec104ce8e167eeafe98a558ef0f992fa5d634f0967d577239090ca7257541d917aef67b6f94efd3fce9bb171157d58dda458b7e75cb0b
@@ -135,7 +135,6 @@ class ModsDocument < ::ActiveFedora::OmDatastream
135
135
  t.date_other_textual(:path=>"dateOther", :attributes=>{:encoding=>:none, :keyDate=>:none}, :index_as=>[:textable])
136
136
 
137
137
  t.publisher(:index_as=>[:displayable])
138
- t.place(:index_as=>[:displayable])
139
138
  t.edition(:index_as=>[:displayable])
140
139
  }
141
140
  t.lib_publisher(:proxy=>[:mods, :origin_info, :publisher], :index_as=>[:displayable])
data/config/fedora.yml CHANGED
@@ -1,11 +1,11 @@
1
- alcott: &alcott
2
- :url: http://alcott.cul.columbia.edu:8080/fedora
1
+ development:
3
2
  :user: fedoraAdmin
4
- :password: f+BULUS*^
5
- default: &default
6
- :url: http://127.0.0.1:8983/fedora
3
+ :password: fedoraAdmin
4
+ :url: http://localhost:8983/fedora-test
5
+ :time_zone: "America/New_York"
6
+
7
+ test:
7
8
  :user: fedoraAdmin
8
9
  :password: fedoraAdmin
9
- development: *alcott
10
- test: *default
11
- production: *alcott
10
+ :url: http://localhost:8983/fedora-test
11
+ :time_zone: "America/New_York"
data/config/solr.yml ADDED
@@ -0,0 +1,5 @@
1
+ development:
2
+ url: http://localhost:8983/solr/test
3
+
4
+ test:
5
+ url: http://localhost:8983/solr/test
@@ -222,6 +222,14 @@ module Cul::Scv::Hydra::Solrizer
222
222
  item_in_context_url_val
223
223
  end
224
224
 
225
+ def project_url(node=mods)
226
+ project_url_val = []
227
+ node.xpath("./mods:relatedItem[@type='host' and @displayLabel='Project']/mods:location/mods:url", MODS_NS).collect do |n|
228
+ project_url_val << ScvModsFieldable.normalize(n.text, true)
229
+ end
230
+ project_url_val
231
+ end
232
+
225
233
  def all_subjects(node=mods)
226
234
  list_of_subjects = []
227
235
 
@@ -247,6 +255,22 @@ module Cul::Scv::Hydra::Solrizer
247
255
  return list_of_subjects
248
256
  end
249
257
 
258
+ def origin_info_place(node=mods)
259
+ places = []
260
+ node.xpath("./mods:originInfo/mods:place/mods:placeTerm", MODS_NS).collect do |n|
261
+ places << ScvModsFieldable.normalize(n.text, true)
262
+ end
263
+ return places
264
+ end
265
+
266
+ def origin_info_place_without_value_uri(node=mods)
267
+ places = []
268
+ node.xpath("./mods:originInfo/mods:place/mods:placeTerm[not(@valueUri)]", MODS_NS).collect do |n|
269
+ places << ScvModsFieldable.normalize(n.text, true)
270
+ end
271
+ return places
272
+ end
273
+
250
274
  def to_solr(solr_doc={})
251
275
  solr_doc = (defined? super) ? super : solr_doc
252
276
 
@@ -272,6 +296,9 @@ module Cul::Scv::Hydra::Solrizer
272
296
  solr_doc["lib_date_notes_ssm"] = date_notes
273
297
  solr_doc["lib_non_date_notes_ssm"] = non_date_notes
274
298
  solr_doc["lib_item_in_context_url_ssm"] = item_in_context_url
299
+ solr_doc["lib_project_url_ssm"] = project_url
300
+ solr_doc["origin_info_place_ssm"] = origin_info_place
301
+ solr_doc["origin_info_place_without_value_uri_ssm"] = origin_info_place_without_value_uri
275
302
 
276
303
  repo_marc_code = repository_code
277
304
  unless repo_marc_code.nil?
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.18.2'
5
+ VERSION = '0.18.3'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -0,0 +1,11 @@
1
+
2
+ module Cul
3
+ module Scv
4
+ module Hydra
5
+ VERSION = '0.18.2'
6
+ def self.version
7
+ VERSION
8
+ end
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.2
4
+ version: 0.18.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-09 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight
@@ -254,11 +254,10 @@ files:
254
254
  - config/fedora.yml
255
255
  - config/jetty.yml
256
256
  - config/locales/ldpd_hydra.en.yml
257
- - config/locales/nnc.ntriples
258
257
  - config/predicate_mappings.yml
258
+ - config/solr.yml
259
259
  - config/solr_mappings.yml
260
260
  - config/solr_value_maps.yml
261
- - config/subs.yml
262
261
  - lib/cul_scv_fedora/dummy_object.rb
263
262
  - lib/cul_scv_fedora/rubydora_patch.rb
264
263
  - lib/cul_scv_fedora/url_helper_behavior.rb
@@ -294,6 +293,7 @@ files:
294
293
  - lib/cul_scv_hydra/solrizer/terminology_based_solrizer.rb
295
294
  - lib/cul_scv_hydra/solrizer/value_mapper.rb
296
295
  - lib/cul_scv_hydra/version.rb
296
+ - lib/cul_scv_hydra/version.rb~
297
297
  - lib/tasks/cmodel.rake
298
298
  - lib/tasks/cul_hydra_dev.rake
299
299
  - lib/tasks/index.rake
@@ -1,12 +0,0 @@
1
- <info:fedora/marcorg:nnc> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#CorporateName> .
2
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#hasReciprocalAuthority> <http://id.loc.gov/vocabulary/organizations/nnc> .
3
- <info:fedora/marcorg:nnc> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Authority> .
4
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#code> "NNC"^^<http://id.loc.gov/datatypes/orgs/code> .
5
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#code> "nnc"^^<http://id.loc.gov/datatypes/orgs/normalized> .
6
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#authoritativeLabel> "Butler Library"@en .
7
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#hasAbbreviationVariant> _:bnodereponncfacet .
8
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#hasExpansionVariant> _:bnodereponncfull .
9
- _:bnodereponncfacet <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Variant> .
10
- _:bnodereponncfacet <http://www.loc.gov/mads/rdf/v1#variantLabel> "Butler Library"@en .
11
- _:bnodereponncfull <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Variant> .
12
- _:bnodereponncfull <http://www.loc.gov/mads/rdf/v1#variantLabel> "Butler Library, Columbia University"@en
data/config/subs.yml DELETED
@@ -1,12 +0,0 @@
1
- development:
2
- djatoka_server: "http://iris.cul.columbia.edu:8080"
3
- fedora_server: "http://sayers.cul.columbia.edu:8080"
4
- php_server: "http://bach.cul.columbia.edu/dev"
5
- test:
6
- djatoka_server: "http://iris.cul.columbia.edu:8080"
7
- fedora_server: "http://sayers.cul.columbia.edu:8080"
8
- php_server: "http://bach.cul.columbia.edu/dev"
9
- production:
10
- djatoka_server: "http://iris.cul.columbia.edu:8080"
11
- fedora_server: "http://alcott.cul.columbia.edu:8080"
12
- php_server: "http://bach.cul.columbia.edu"