cul_hydra 1.5.1 → 1.5.2
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 +4 -4
- data/app/models/concerns/cul/hydra/models/common.rb +1 -2
- data/config/fedora.yml +15 -24
- data/config/solr.yml +7 -16
- data/config/subs.yml +15 -8
- data/fixtures/spec/CUL_MODS/mods-top-level-location-vs-relateditem-location.xml +1 -1
- data/lib/cul_hydra/#version.rb# +8 -0
- data/lib/cul_hydra/solrizer/mods_fieldable.rb +10 -0
- data/lib/cul_hydra/version.rb +1 -1
- data/lib/cul_hydra/version.rb~ +8 -0
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0443ea299bfab622ec6f7e0448786f95e2bf7f40
|
|
4
|
+
data.tar.gz: 73242552dfc36864f6ff716776e79994d635fca8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe049bfe0f4d8ce61c999236d778a7f4aa9d67b8c479410b7fd1b5114272547d56b73ed2a4cf27345df134e430c9a94128a91920b2e05f010ccec0eeeeb357f2
|
|
7
|
+
data.tar.gz: 59df9e0f93b867a18a7c6b211246e1517968439cf07b3008fa9ccdfa7065fa3c4611dc93692030d4a6d1d79c9dc143e2212bbda663bbc998285e8aac704e35ab
|
|
@@ -174,8 +174,7 @@ module Cul::Hydra::Models::Common
|
|
|
174
174
|
|
|
175
175
|
# Index URI form of pid to facilitate solr joins
|
|
176
176
|
solr_doc['fedora_pid_uri_ssi'] = 'info:fedora/' + self.pid if self.pid.present?
|
|
177
|
-
|
|
178
|
-
#solr_doc['fedora_pid_uri_ssi'] = ''
|
|
177
|
+
solr_doc['datastreams_ssim'] = self.datastreams.keys.map {|k| k.to_s }.sort
|
|
179
178
|
|
|
180
179
|
solr_doc
|
|
181
180
|
end
|
data/config/fedora.yml
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
development:
|
|
2
|
-
user: fedoraAdmin
|
|
3
|
-
password:
|
|
4
|
-
url: http://
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
test:
|
|
8
|
-
user: fedoraAdmin
|
|
9
|
-
password: fedoraAdmin
|
|
10
|
-
url:
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
:user: fedoraAdmin
|
|
3
|
+
:password: fedoraAdmin
|
|
4
|
+
:url: http://localhost:8983/fedora-test
|
|
5
|
+
:time_zone: "America/New_York"
|
|
6
|
+
|
|
7
|
+
test:
|
|
8
|
+
:user: fedoraAdmin
|
|
9
|
+
:password: fedoraAdmin
|
|
10
|
+
:url: http://localhost:8983/fedora-test
|
|
11
|
+
:time_zone: "America/New_York"
|
|
12
|
+
|
|
13
13
|
production:
|
|
14
|
-
user: fedoraAdmin
|
|
15
|
-
password: f+BULUS*^
|
|
16
|
-
url: http://
|
|
17
|
-
|
|
18
|
-
time_zone: "America/New_York"
|
|
19
|
-
dcv_test:
|
|
20
|
-
user: fedoraAdmin
|
|
21
|
-
password: f+BULUS*^
|
|
22
|
-
url: http://repository.cul.columbia.edu:8080/fedora
|
|
23
|
-
datastreams_root: /ifs/cul/repo/archive/repo-datastreams
|
|
24
|
-
time_zone: "America/New_York"
|
|
25
|
-
cucumber:
|
|
26
|
-
<<: *TEST
|
|
14
|
+
:user: fedoraAdmin
|
|
15
|
+
:password: f+BULUS*^
|
|
16
|
+
:url: http://alcott.cul.columbia.edu:8080/fedora
|
|
17
|
+
:time_zone: "America/New_York"
|
data/config/solr.yml
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
# This is a sample config file that does not have multiple solr instances. You will also need to be sure to
|
|
2
|
-
# edit the fedora.yml file to match the solr URL for active-fedora.
|
|
3
|
-
# url: http://katana.cul.columbia.edu:8080/solr-4.7/dcv_private_dev
|
|
4
|
-
test: &TEST
|
|
5
|
-
url: <%= "http://127.0.0.1:#{ENV['TEST_JETTY_PORT'] || 8983}/solr/test" %>
|
|
6
|
-
dcv_dev: &DEV
|
|
7
|
-
url: http://spatha.cul.columbia.edu:8080/solr-4.7/dcv_private_test
|
|
8
|
-
dcv_core: 'dcv_private_dev'
|
|
9
|
-
dcv_test: &IFP
|
|
10
|
-
url: http://spatha.cul.columbia.edu:8080/solr-4.7/dcv_private_test
|
|
11
|
-
dcv_core: 'dcv_private_test'
|
|
12
|
-
cucumber:
|
|
13
|
-
<<: *TEST
|
|
14
|
-
production: &PROD
|
|
15
|
-
url: http://spatha.cul.columbia.edu:8080/solr-4.7/dcv_prod
|
|
16
1
|
development:
|
|
17
|
-
|
|
2
|
+
url: http://localhost:8983/solr/test
|
|
3
|
+
|
|
4
|
+
test:
|
|
5
|
+
url: http://localhost:8983/solr/test
|
|
6
|
+
|
|
7
|
+
production:
|
|
8
|
+
url: http://katana.cul.columbia.edu:8080/solr-4.7/dcv_private_dev
|
data/config/subs.yml
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
old:
|
|
2
|
-
fedora_server: http://sayers.cul.columbia.edu:8080
|
|
3
|
-
php_server: http://bach.cul.columbia.edu/dev
|
|
4
|
-
djatoka_server: http://iris.cul.columbia.edu:8080
|
|
5
1
|
development:
|
|
6
|
-
|
|
7
|
-
|
|
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"
|
|
8
5
|
test:
|
|
9
|
-
|
|
10
|
-
|
|
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"
|
|
13
|
+
|
|
14
|
+
hyacinth_prod:
|
|
15
|
+
djatoka_server: "http://iris.cul.columbia.edu:8080"
|
|
16
|
+
fedora_server: "http://alcott.cul.columbia.edu:8080"
|
|
17
|
+
php_server: "http://bach.cul.columbia.edu"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<sublocation>exampleSublocation</sublocation>
|
|
9
9
|
<url access="object in context" usage="primary display">http://item-in-context.cul.columbia.edu/something/123</url>
|
|
10
10
|
<url>http://another-location.cul.columbia.edu/zzz/yyy</url>
|
|
11
|
-
<url>http://great-url.cul.columbia.edu/ooo</url>
|
|
11
|
+
<url displayLabel="Great URL">http://great-url.cul.columbia.edu/ooo</url>
|
|
12
12
|
</location>
|
|
13
13
|
<relatedItem displayLabel="Project" type="host">
|
|
14
14
|
<titleInfo>
|
|
@@ -322,6 +322,15 @@ module Cul::Hydra::Solrizer
|
|
|
322
322
|
project_url_val
|
|
323
323
|
end
|
|
324
324
|
|
|
325
|
+
# Create a list of attribute hashes for top-level URL locations
|
|
326
|
+
# @param node [Nokogiri::XML::Node] search context
|
|
327
|
+
# @return [Array<Hash>] array of url locations as attribute hashes
|
|
328
|
+
def url_locations(node=mods)
|
|
329
|
+
node.xpath("./mods:location/mods:url", MODS_NS).map do |n|
|
|
330
|
+
{access: n['access'], usage: n['usage'], displayLabel: n['displayLabel'], url: n.text.strip }.compact
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
|
|
325
334
|
def all_subjects(node=mods)
|
|
326
335
|
list_of_subjects = []
|
|
327
336
|
|
|
@@ -453,6 +462,7 @@ module Cul::Hydra::Solrizer
|
|
|
453
462
|
solr_doc["lib_non_date_notes_ssm"] = non_date_notes
|
|
454
463
|
solr_doc["lib_item_in_context_url_ssm"] = item_in_context_url
|
|
455
464
|
solr_doc["lib_non_item_in_context_url_ssm"] = non_item_in_context_url
|
|
465
|
+
solr_doc["location_url_json_ss"] = JSON.generate(url_locations)
|
|
456
466
|
solr_doc["lib_project_url_ssm"] = project_url
|
|
457
467
|
solr_doc["origin_info_place_ssm"] = origin_info_place
|
|
458
468
|
solr_doc["origin_info_place_for_display_ssm"] = origin_info_place_for_display
|
data/lib/cul_hydra/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cul_hydra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.2
|
|
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: 2018-
|
|
12
|
+
date: 2018-10-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: blacklight
|
|
@@ -532,6 +532,7 @@ files:
|
|
|
532
532
|
- fixtures/spec/STRUCTMAP/structmap-unlabeled-seq.xml
|
|
533
533
|
- fixtures/spec/STRUCTMAP/structmap-unordered-seq.xml
|
|
534
534
|
- lib/cul_hydra.rb
|
|
535
|
+
- lib/cul_hydra/#version.rb#
|
|
535
536
|
- lib/cul_hydra/access_controls_enforcement.rb
|
|
536
537
|
- lib/cul_hydra/controllers.rb
|
|
537
538
|
- lib/cul_hydra/controllers/aggregates.rb
|
|
@@ -569,6 +570,7 @@ files:
|
|
|
569
570
|
- lib/cul_hydra/solrizer/value_mapper.rb
|
|
570
571
|
- lib/cul_hydra/solrizer_patch.rb
|
|
571
572
|
- lib/cul_hydra/version.rb
|
|
573
|
+
- lib/cul_hydra/version.rb~
|
|
572
574
|
- lib/tasks/cmodel.rake
|
|
573
575
|
- lib/tasks/cul_hydra_dev.rake
|
|
574
576
|
- lib/tasks/index.rake
|
|
@@ -595,7 +597,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
595
597
|
version: '0'
|
|
596
598
|
requirements: []
|
|
597
599
|
rubyforge_project:
|
|
598
|
-
rubygems_version: 2.6.
|
|
600
|
+
rubygems_version: 2.6.14
|
|
599
601
|
signing_key:
|
|
600
602
|
specification_version: 4
|
|
601
603
|
summary: ActiveFedora, OM, and Solrizer implementations for CUL repository apps
|