cul_hydra 1.7.1 → 1.7.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/config/fedora.yml +26 -0
- data/config/solr.yml +17 -0
- data/config/subs.yml +10 -0
- data/fixtures/spec/CUL_MODS/mods-access-condition.xml +6 -0
- data/lib/cul_hydra/solrizer/mods_fieldable.rb +8 -0
- data/lib/cul_hydra/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b5dd74f2d26ddb0a1efb86ee729c06774977b2e5976c541ba32b45605d45cf9
|
|
4
|
+
data.tar.gz: 2f1cae0e041f4e01490a968e65380a5249d7b0a49065d80aaeea720f9e989544
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99da42f9c8b66f392f26c437d418dbd751442d65b58acbc39776395c10fd7564242623bc879796ba1eada163c7542bc870284e1917bd65a46d65060c8d747d6c
|
|
7
|
+
data.tar.gz: b9264c59bba928dd8b291bc0c8c37e49110a2a3e1346f05913e4f76f02e987cf13940d49d8b43c642fd0048dd805a38062e952d590f1b3c9166a43859f517929
|
data/config/fedora.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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"
|
|
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
|
data/config/solr.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
development:
|
|
17
|
+
<<: *PROD
|
data/config/subs.yml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
development:
|
|
6
|
+
fedora_server: http://repository.cul.columbia.edu:8080
|
|
7
|
+
php_server: http://fedora-svc.cul.columbia.edu/dev
|
|
8
|
+
test:
|
|
9
|
+
fedora_server: http://repository.cul.columbia.edu:8080
|
|
10
|
+
php_server: http://fedora-svc.cul.columbia.edu/dev
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
|
2
|
+
<mods xmlns='http://www.loc.gov/mods/v3' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd' version='3.4'>
|
|
3
|
+
<accessCondition type="use and reproduction" xlink:href="http://rightsstatements.org/vocab/InC/1.0/">In Copyright</accessCondition>
|
|
4
|
+
<accessCondition type="local rights statement" xlink:href="https://doi.org/10.7916/D8TJ046B">
|
|
5
|
+
Copyright & Permissions for Online Exhibitions & Digital Collections</accessCondition>
|
|
6
|
+
</mods>
|
|
@@ -482,6 +482,12 @@ module Cul::Hydra::Solrizer
|
|
|
482
482
|
end
|
|
483
483
|
end
|
|
484
484
|
|
|
485
|
+
def copyright_statement(node=mods)
|
|
486
|
+
node.at_xpath('./mods:accessCondition[@type="use and reproduction"]', MODS_NS)&.tap do |t|
|
|
487
|
+
return t['xlink:href']
|
|
488
|
+
end
|
|
489
|
+
end
|
|
490
|
+
|
|
485
491
|
def to_solr(solr_doc={})
|
|
486
492
|
solr_doc = (defined? super) ? super : solr_doc
|
|
487
493
|
|
|
@@ -612,6 +618,8 @@ module Cul::Hydra::Solrizer
|
|
|
612
618
|
# Add names to type-derived keys
|
|
613
619
|
add_notes_by_type!(solr_doc)
|
|
614
620
|
|
|
621
|
+
solr_doc['copyright_statement_ssi'] = copyright_statement
|
|
622
|
+
|
|
615
623
|
solr_doc.each do |k, v|
|
|
616
624
|
if self.class.maps_field? k
|
|
617
625
|
solr_doc[k] = self.class.map_value(k, v)
|
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.7.
|
|
4
|
+
version: 1.7.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: 2019-06-
|
|
12
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bootstrap-sass
|
|
@@ -400,11 +400,14 @@ files:
|
|
|
400
400
|
- app/models/static_audio_aggregator.rb
|
|
401
401
|
- app/models/static_image_aggregator.rb
|
|
402
402
|
- bin/rails
|
|
403
|
+
- config/fedora.yml
|
|
403
404
|
- config/jetty.yml
|
|
404
405
|
- config/locales/ldpd_hydra.en.yml
|
|
405
406
|
- config/predicate_mappings.yml
|
|
407
|
+
- config/solr.yml
|
|
406
408
|
- config/solr_mappings.yml
|
|
407
409
|
- config/solr_value_maps.yml
|
|
410
|
+
- config/subs.yml
|
|
408
411
|
- fixtures/cmodels/ldpd_ADLMetadata.xml
|
|
409
412
|
- fixtures/cmodels/ldpd_AESMetadata.xml
|
|
410
413
|
- fixtures/cmodels/ldpd_BagAggregator.xml
|
|
@@ -455,6 +458,7 @@ files:
|
|
|
455
458
|
- fixtures/spec/CUL_ACCESS/access-open.xml
|
|
456
459
|
- fixtures/spec/CUL_DC/dc.xml
|
|
457
460
|
- fixtures/spec/CUL_MODS/mods-001.xml
|
|
461
|
+
- fixtures/spec/CUL_MODS/mods-access-condition.xml
|
|
458
462
|
- fixtures/spec/CUL_MODS/mods-all.xml
|
|
459
463
|
- fixtures/spec/CUL_MODS/mods-archival-context.xml
|
|
460
464
|
- fixtures/spec/CUL_MODS/mods-bad-repo.xml
|