cul_scv_hydra 0.16.2 → 0.16.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 +8 -8
- data/app/models/cul/scv/hydra/datastreams/mods_document.rb +2 -2
- data/lib/cul_scv_hydra/solrizer/field_mapper.rb +4 -4
- data/lib/cul_scv_hydra/solrizer/scv_mods_fieldable.rb +2 -2
- data/lib/cul_scv_hydra/version.rb +1 -1
- metadata +2 -4
- data/config/fedora.yml +0 -11
- data/config/subs.yml +0 -12
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGExNzEwMTMwZTVjZjViODg5OTNhM2QyZDVjMjMyZTZiZTAzZmFiZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2U1M2UxMjlkY2NmMWRkNzY3YzVjNDM4Yjg3YjcyNGJkYmRkZDlhNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzUyYWI5YTVkODYzYjg5Y2YzYTcwNjJkY2IzNzNjYzNkN2M2YjFkNmE4MWNj
|
10
|
+
NjBiMDc2NWVmYjUwZjZhNDU3NGI5MTJjMzJkNzg5OWYzMzcyYjljMDI2OGJi
|
11
|
+
OGE5Y2ZiNTJjOTFhNGQ5MWVlODFmODlhMmQwYzVjZjkzYmU0ZDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTU1ZWYzNTdhOTY2Yzc3ZjU4NmNiYmJjOTcyYThmY2ViMTUxYThjMGRhZGQ5
|
14
|
+
MTkwNzg3MTU1MDU4ZGM3MGNiNDRmYjZlZTNjMzRiZmFkZmVmNTFlN2U3MTc0
|
15
|
+
OTZmZWZmYThlNDU1YTJmOTA3M2MwN2JhZTk2MzA3MWM5YmI2ZDk=
|
@@ -112,8 +112,8 @@ class ModsDocument < ::ActiveFedora::OmDatastream
|
|
112
112
|
t.language_code(:proxy=>[:record_info, :language_of_cataloging, :language_code])
|
113
113
|
|
114
114
|
t.language(:index_as=>[]){
|
115
|
-
t.language_term_text(:path=>"languageTerm", :attributes=>{:authority=>'iso639-2b',:type=>'text'}, :index_as=>[:
|
116
|
-
t.language_term_code(:path=>"languageTerm", :attributes=>{:authority=>'iso639-2b',:type=>'code'}, :index_as=>[:
|
115
|
+
t.language_term_text(:path=>"languageTerm", :attributes=>{:authority=>'iso639-2b',:type=>'text'}, :index_as=>[:symbol, :textable])
|
116
|
+
t.language_term_code(:path=>"languageTerm", :attributes=>{:authority=>'iso639-2b',:type=>'code'}, :index_as=>[:symbol, :textable])
|
117
117
|
}
|
118
118
|
|
119
119
|
t.origin_info(:path=>"originInfo", :index_as=>[]){
|
@@ -83,9 +83,9 @@ module Solrizer::DefaultDescriptors
|
|
83
83
|
end
|
84
84
|
def translate_with_default(prefix, value)
|
85
85
|
begin
|
86
|
-
I18n.t(prefix + value, default: value)
|
86
|
+
return I18n.t(prefix + value, default: value)
|
87
87
|
rescue
|
88
|
-
value
|
88
|
+
return value
|
89
89
|
end
|
90
90
|
end
|
91
91
|
end
|
@@ -147,8 +147,8 @@ module Solrizer::DefaultDescriptors
|
|
147
147
|
lambda do |value|
|
148
148
|
if value.is_a? String
|
149
149
|
normal!(value)
|
150
|
-
r = [translate_with_default(SHORT_REPO,
|
151
|
-
r << translate_with_default(LONG_REPO,
|
150
|
+
r = [translate_with_default(SHORT_REPO, value)]
|
151
|
+
r << translate_with_default(LONG_REPO, value)
|
152
152
|
r.uniq!
|
153
153
|
r.join(' ')
|
154
154
|
else
|
@@ -174,13 +174,13 @@ module Cul::Scv::Hydra::Solrizer
|
|
174
174
|
solr_doc["title_si"] = sort_title
|
175
175
|
solr_doc["title_ssm"] = titles
|
176
176
|
solr_doc["lib_collection_sim"] = collections
|
177
|
-
solr_doc["lib_project_sim"] = projects
|
177
|
+
#solr_doc["lib_project_sim"] = projects
|
178
178
|
solr_doc["lib_name_sim"] = names
|
179
179
|
solr_doc["lib_name_ssm"] = solr_doc["lib_name_sim"]
|
180
180
|
solr_doc["lib_author_sim"] = names(:marcrelator, 'aut')
|
181
181
|
solr_doc["lib_recipient_sim"] = names(:marcrelator, 'rcp')
|
182
182
|
solr_doc["lib_format_sim"] = formats
|
183
|
-
solr_doc["lib_repo_sim"] = repositories
|
183
|
+
#solr_doc["lib_repo_sim"] = repositories
|
184
184
|
solr_doc["lib_shelf_sim"] = shelf_locators
|
185
185
|
solr_doc["lib_date_textual_ssm"] = textual_dates
|
186
186
|
solr_doc["lib_date_notes_ssm"] = date_notes
|
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.16.
|
4
|
+
version: 0.16.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-07-
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blacklight
|
@@ -251,13 +251,11 @@ files:
|
|
251
251
|
- app/models/static_audio_aggregator.rb
|
252
252
|
- app/models/static_image_aggregator.rb
|
253
253
|
- bin/rails
|
254
|
-
- config/fedora.yml
|
255
254
|
- config/jetty.yml
|
256
255
|
- config/locales/ldpd_hydra.en.yml
|
257
256
|
- config/predicate_mappings.yml
|
258
257
|
- config/solr_mappings.yml
|
259
258
|
- config/solr_value_maps.yml
|
260
|
-
- config/subs.yml
|
261
259
|
- lib/cul_scv_fedora/dummy_object.rb
|
262
260
|
- lib/cul_scv_fedora/rubydora_patch.rb
|
263
261
|
- lib/cul_scv_fedora/url_helper_behavior.rb
|
data/config/fedora.yml
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
alcott: &alcott
|
2
|
-
:url: http://alcott.cul.columbia.edu:8080/fedora
|
3
|
-
:user: fedoraAdmin
|
4
|
-
:password: f+BULUS*^
|
5
|
-
default: &default
|
6
|
-
:url: http://127.0.0.1:8983/fedora
|
7
|
-
:user: fedoraAdmin
|
8
|
-
:password: fedoraAdmin
|
9
|
-
development: *alcott
|
10
|
-
test: *default
|
11
|
-
production: *alcott
|
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"
|