cul_hydra 1.4.1 → 1.4.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: 2a84c441fe0f055a8b7d36ac6b1ce8dfa4d9de13
4
- data.tar.gz: 9a8e33a84b8bd635d8ee3ee44600963fbf43d0dd
3
+ metadata.gz: 61ab8fdc755c92a6b4a386d425e5233a659b878f
4
+ data.tar.gz: 36b7db51288c26079a1af5eee98bad4698937226
5
5
  SHA512:
6
- metadata.gz: 08d1fbc6ba15fb668570d5f9156027ddb80e7ca2a57828e865a634370d3651270767ebfdc198f0202e55eb04b88e4fc6dfd59f5657247515714503a465dc6752
7
- data.tar.gz: 5cdf59e6a07e3f1c94212586d3ca957cb94b0de1a9afe1e97db9fdf902b00077b232d1255f3d5578cbe0050398580a6a98bfb26a53198b423cfbc6b8b59e24c8
6
+ metadata.gz: fbd07f75a7b674baf04c7dc125c91b8f782e446eb48e5029f0f3dcbaca5405e5d6a8a954775849f718a555bb434649adaf49f65b9cd12e54ecdb4003e1721a25
7
+ data.tar.gz: 27549d471899da6268518324892f3d40b20186fbab45ca75f8ad2abc0ad1dabd644840ba6e07e218f7f5574f7fbb48c125c6d62696f22e555153265f8e0c860b
@@ -61,7 +61,7 @@ class Concept < GenericAggregator
61
61
  end
62
62
 
63
63
  # a human readable PREMIS restriction ('Onsite', etc.)
64
- # http://www.bbc.co.uk/ontologies/coreconcepts/slug
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:8983/fedora-test
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:8983/fedora-test
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:8983/solr/test
2
+ url: http://localhost:9983/solr/test
3
3
 
4
4
  test:
5
- url: http://localhost:8983/solr/test
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:restriction>Onsite</ns6:restriction>
47
+ <ns6:hasRestriction>Onsite</ns6:hasRestriction>
48
48
  </rdf:Description>
49
49
  </rdf:RDF>
50
50
  </foxml:xmlContent>
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.4.1'
3
+ VERSION = '1.4.2'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.4.0'
3
+ VERSION = '1.4.1'
4
4
  def self.version
5
5
  VERSION
6
6
  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.4.1
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-11-23 00:00:00.000000000 Z
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.5.1
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