cul_hydra 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bcd5ff2e5d892178111d42facde6174246facde
4
- data.tar.gz: 556a42557585191fc8d981285bbf6d684742324b
3
+ metadata.gz: 0443ea299bfab622ec6f7e0448786f95e2bf7f40
4
+ data.tar.gz: 73242552dfc36864f6ff716776e79994d635fca8
5
5
  SHA512:
6
- metadata.gz: 890c5a309de35f748885ee8c03a266563cc3040bb444ff6d35efa3679057363c2699e820d3e320be809dcb2d37b3f5368f329addc52853466f7a18ab64ea59a2
7
- data.tar.gz: 85c31b7043f37003d27f94fa5e5677c35ed86d04b561e3884e2272d1eef4e4168c515c79de21a1747b84a470aa2bd61988241dbe3c82751113e4ff41ac4d43b1
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
- #solr_doc['fedora_pid_uri_ssi'] = 'info:fedora/' + solr_doc['id'] if solr_doc['id'].present?
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: f+BULUS*^
4
- url: http://repository.cul.columbia.edu:8080/fedora
5
- datastreams_root: /ifs/cul/repo/archive/repo-datastreams
6
- time_zone: "America/New_York"
7
- test: &TEST
8
- user: fedoraAdmin
9
- password: fedoraAdmin
10
- url: <%= "http://127.0.0.1:#{ENV['TEST_JETTY_PORT'] || 8983}/fedora-test" %>
11
- datastreams_root: /ifs/cul/repo/archive/repo-datastreams
12
- time_zone: "America/New_York"
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://repository.cul.columbia.edu:8080/fedora
17
- datastreams_root: /ifs/cul/repo/archive/repo-datastreams
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
- <<: *PROD
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
- fedora_server: http://repository.cul.columbia.edu:8080
7
- php_server: http://fedora-svc.cul.columbia.edu/dev
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
- fedora_server: http://repository.cul.columbia.edu:8080
10
- php_server: http://fedora-svc.cul.columbia.edu/dev
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>
@@ -0,0 +1,8 @@
1
+ module Cul
2
+ module Hydra
3
+ VERSION = '1.4.16'
4
+ def self.version
5
+ VERSION
6
+ end
7
+ end
8
+ end
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.5.1'
3
+ VERSION = '1.5.2'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -0,0 +1,8 @@
1
+ module Cul
2
+ module Hydra
3
+ VERSION = '1.5.1'
4
+ def self.version
5
+ VERSION
6
+ end
7
+ end
8
+ end
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.1
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-08-29 00:00:00.000000000 Z
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.11
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