cul_hydra 1.4.2 → 1.4.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 +4 -4
- data/app/models/concept.rb +1 -11
- data/config/fedora.yml +2 -2
- data/config/solr.yml +2 -2
- data/fixtures/spec/FOXML/concept.xml.erb +0 -1
- data/lib/cul_hydra/version.rb +1 -1
- data/lib/cul_hydra/version.rb~ +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b765af14fc80de0413ccc45b11adfd2daf8da348
|
|
4
|
+
data.tar.gz: 85737f1a45d1f97b9cef56df77d970ea6df36343
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 610f16ebc0824af59c6e61218befdc0a342cb0a69b83c16e7a5cf11992cb12bbd70696cbf43bc733316bb38567d8fb9c7a23d63c5437deac1f30c495f650a125
|
|
7
|
+
data.tar.gz: 075e59c183469c3abc955c04ccc301613516d568dff1b724f4ed174a735e124cdbf927d23fe3f5c4c03e20cce745b0aae3cb7cfb77ecf47676b1330cbd651348
|
data/app/models/concept.rb
CHANGED
|
@@ -114,16 +114,6 @@ class Concept < GenericAggregator
|
|
|
114
114
|
set_singular_rel(:short_title, val, true)
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
# the full title
|
|
118
|
-
# http://purl.org/dc/terms/title
|
|
119
|
-
def title
|
|
120
|
-
get_singular_rel(:title)
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
def title=(val)
|
|
124
|
-
set_singular_rel(:title, val, true)
|
|
125
|
-
end
|
|
126
|
-
|
|
127
117
|
def get_singular_rel(predicate)
|
|
128
118
|
property = relationships(predicate).first
|
|
129
119
|
return nil unless property
|
|
@@ -143,7 +133,7 @@ class Concept < GenericAggregator
|
|
|
143
133
|
end
|
|
144
134
|
class SingularRelValidator < ActiveModel::Validator
|
|
145
135
|
def validate(record)
|
|
146
|
-
[:abstract, :alternative, :restriction, :slug, :source, :
|
|
136
|
+
[:abstract, :alternative, :restriction, :slug, :source, :schema_image].each do |rel|
|
|
147
137
|
record.errors[rel] << "#{rel} must have 0 or 1 values" unless record.relationships(rel).length < 2
|
|
148
138
|
end
|
|
149
139
|
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:8983/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:8983/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:8983/solr/test
|
|
3
3
|
|
|
4
4
|
test:
|
|
5
|
-
url: http://localhost:
|
|
5
|
+
url: http://localhost:8983/solr/test
|
|
6
6
|
|
|
7
7
|
production:
|
|
8
8
|
url: http://katana.cul.columbia.edu:8080/solr-4.7/dcv_private_dev
|
|
@@ -36,7 +36,6 @@ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/
|
|
|
36
36
|
<rdf:Description rdf:about="info:fedora/cul:vmcvdnck2d">
|
|
37
37
|
<rdf:type rdf:resource="http://purl.oclc.org/NET/CUL/Aggregator"></rdf:type>
|
|
38
38
|
<ns0:hasModel rdf:resource="info:fedora/ldpd:Concept"></ns0:hasModel>
|
|
39
|
-
<ns2:title>Digital Library Collections</ns2:title>
|
|
40
39
|
<ns5:shortTitle>Digital Collections</ns5:shortTitle>
|
|
41
40
|
<ns2:source rdf:resource="https://dlc.library.columbia.edu/catalog"></ns2:source>
|
|
42
41
|
<ns2:abstract>The Digital Library Collections (DLC) website is a gateway to digital reproductions and descriptions of photographs, posters, drawings, objects, ephemera, and manuscripts as well as other archival material from Columbia's rare and special collections. As of January 2016 the DLC repository includes ca. 190,000 digital objects.</ns2:abstract>
|
data/lib/cul_hydra/version.rb
CHANGED
data/lib/cul_hydra/version.rb~
CHANGED