cul_hydra 1.4.1 → 1.4.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/concept.rb +16 -2
- data/config/fedora.yml +2 -2
- data/config/solr.yml +2 -2
- data/fixtures/spec/FOXML/concept.xml.erb +1 -1
- data/lib/cul_hydra/version.rb +1 -1
- data/lib/cul_hydra/version.rb~ +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61ab8fdc755c92a6b4a386d425e5233a659b878f
|
|
4
|
+
data.tar.gz: 36b7db51288c26079a1af5eee98bad4698937226
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbd07f75a7b674baf04c7dc125c91b8f782e446eb48e5029f0f3dcbaca5405e5d6a8a954775849f718a555bb434649adaf49f65b9cd12e54ecdb4003e1721a25
|
|
7
|
+
data.tar.gz: 27549d471899da6268518324892f3d40b20186fbab45ca75f8ad2abc0ad1dabd644840ba6e07e218f7f5574f7fbb48c125c6d62696f22e555153265f8e0c860b
|
data/app/models/concept.rb
CHANGED
|
@@ -61,7 +61,7 @@ class Concept < GenericAggregator
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
# a human readable PREMIS restriction ('Onsite', etc.)
|
|
64
|
-
# http://www.
|
|
64
|
+
# http://www.loc.gov/premis/rdf/v1#hasRestriction
|
|
65
65
|
def restriction
|
|
66
66
|
get_singular_rel(:restriction)
|
|
67
67
|
end
|
|
@@ -69,6 +69,20 @@ class Concept < GenericAggregator
|
|
|
69
69
|
def restriction=(val)
|
|
70
70
|
set_singular_rel(:restriction, val, true)
|
|
71
71
|
end
|
|
72
|
+
|
|
73
|
+
def remove_restriction
|
|
74
|
+
clear_relationship(:restriction)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# a representative image URI for this concept
|
|
78
|
+
# https://schema.org/image
|
|
79
|
+
def representative_image
|
|
80
|
+
get_singular_rel(:schema_image)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def representative_image=(val)
|
|
84
|
+
set_singular_rel(:schema_image, val)
|
|
85
|
+
end
|
|
72
86
|
|
|
73
87
|
# a human readable URI segment for this concept
|
|
74
88
|
# http://www.bbc.co.uk/ontologies/coreconcepts/slug
|
|
@@ -129,7 +143,7 @@ class Concept < GenericAggregator
|
|
|
129
143
|
end
|
|
130
144
|
class SingularRelValidator < ActiveModel::Validator
|
|
131
145
|
def validate(record)
|
|
132
|
-
[:abstract, :alternative, :restriction, :slug, :source, :title].each do |rel|
|
|
146
|
+
[:abstract, :alternative, :restriction, :slug, :source, :title, :schema_image].each do |rel|
|
|
133
147
|
record.errors[rel] << "#{rel} must have 0 or 1 values" unless record.relationships(rel).length < 2
|
|
134
148
|
end
|
|
135
149
|
end
|
data/config/fedora.yml
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
development:
|
|
2
2
|
:user: fedoraAdmin
|
|
3
3
|
:password: fedoraAdmin
|
|
4
|
-
:url: http://localhost:
|
|
4
|
+
:url: http://localhost:9983/fedora-test
|
|
5
5
|
:time_zone: "America/New_York"
|
|
6
6
|
|
|
7
7
|
test:
|
|
8
8
|
:user: fedoraAdmin
|
|
9
9
|
:password: fedoraAdmin
|
|
10
|
-
:url: http://localhost:
|
|
10
|
+
:url: http://localhost:9983/fedora-test
|
|
11
11
|
:time_zone: "America/New_York"
|
|
12
12
|
|
|
13
13
|
production:
|
data/config/solr.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
development:
|
|
2
|
-
url: http://localhost:
|
|
2
|
+
url: http://localhost:9983/solr/test
|
|
3
3
|
|
|
4
4
|
test:
|
|
5
|
-
url: http://localhost:
|
|
5
|
+
url: http://localhost:9983/solr/test
|
|
6
6
|
|
|
7
7
|
production:
|
|
8
8
|
url: http://katana.cul.columbia.edu:8080/solr-4.7/dcv_private_dev
|
|
@@ -44,7 +44,7 @@ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/
|
|
|
44
44
|
<ns2:publisher rdf:resource="info:fedora/cul:vmcvdnck2d"></ns2:publisher>
|
|
45
45
|
<ns3:slug>catalog</ns3:slug>
|
|
46
46
|
<ns4:image rdf:resource="info:fedora/cul:1c59zw3rf4"></ns4:image>
|
|
47
|
-
<ns6:
|
|
47
|
+
<ns6:hasRestriction>Onsite</ns6:hasRestriction>
|
|
48
48
|
</rdf:Description>
|
|
49
49
|
</rdf:RDF>
|
|
50
50
|
</foxml:xmlContent>
|
data/lib/cul_hydra/version.rb
CHANGED
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.4.
|
|
4
|
+
version: 1.4.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: 2016-
|
|
12
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: blacklight
|
|
@@ -566,7 +566,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
566
566
|
version: '0'
|
|
567
567
|
requirements: []
|
|
568
568
|
rubyforge_project:
|
|
569
|
-
rubygems_version: 2.
|
|
569
|
+
rubygems_version: 2.6.7
|
|
570
570
|
signing_key:
|
|
571
571
|
specification_version: 4
|
|
572
572
|
summary: ActiveFedora, OM, and Solrizer implementations for CUL repository apps
|