ddr-core 1.12.0 → 1.13.0
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/ddr/admin_set.rb +15 -5
- data/app/models/ddr/contact.rb +14 -5
- data/app/models/ddr/language.rb +15 -8
- data/app/models/ddr/rights_statement.rb +16 -7
- data/config/aux/admin_set.yml +26 -0
- data/config/aux/contact.yml +87 -0
- data/config/aux/language.yml +1012 -0
- data/config/aux/rights_statement.yml +107 -0
- data/lib/ddr/auth/ability_definitions/publication_ability_definitions.rb +2 -3
- data/lib/ddr/index/query_result.rb +4 -2
- metadata +7 -3
@@ -0,0 +1,107 @@
|
|
1
|
+
- title: Creative Commons Public Domain Mark 1.0
|
2
|
+
url: https://creativecommons.org/publicdomain/mark/1.0
|
3
|
+
short_title: Public Domain
|
4
|
+
feature:
|
5
|
+
- cc-pd
|
6
|
+
reuse_text: Free Re-Use
|
7
|
+
|
8
|
+
- title: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
|
9
|
+
url: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
10
|
+
short_title: CC BY-NC-SA 4.0
|
11
|
+
feature:
|
12
|
+
- cc-cc
|
13
|
+
- cc-by
|
14
|
+
- cc-nc
|
15
|
+
- cc-sa
|
16
|
+
reuse_text: Limited Re-Use
|
17
|
+
|
18
|
+
- title: 'RightsStatements.org: No Known Copyright'
|
19
|
+
url: http://rightsstatements.org/vocab/NKC/1.0/
|
20
|
+
short_title: No Known Copyright
|
21
|
+
feature:
|
22
|
+
- rs-other
|
23
|
+
reuse_text: null
|
24
|
+
|
25
|
+
- title: 'RightsStatements.org: Copyright Undetermined'
|
26
|
+
url: http://rightsstatements.org/vocab/UND/1.0/
|
27
|
+
short_title: Copyright Undetermined
|
28
|
+
feature:
|
29
|
+
- rs-other
|
30
|
+
reuse_text: null
|
31
|
+
|
32
|
+
- title: 'RightsStatements.org: Copyright Not Evaluated'
|
33
|
+
url: http://rightsstatements.org/vocab/CNE/1.0/
|
34
|
+
short_title: Copyright Not Evaluated
|
35
|
+
feature:
|
36
|
+
- rs-other
|
37
|
+
reuse_text: null
|
38
|
+
|
39
|
+
- title: 'RightsStatements.org: No Copyright - United States'
|
40
|
+
url: http://rightsstatements.org/vocab/NoC-US/1.0/
|
41
|
+
short_title: No Copyright - United States
|
42
|
+
feature:
|
43
|
+
- rs-noc
|
44
|
+
reuse_text: Free Re-Use
|
45
|
+
|
46
|
+
- title: 'RightsStatements.org: In Copyright - Rights-Holder(s) Unlocatable or Unidentifiable'
|
47
|
+
url: http://rightsstatements.org/vocab/InC-RUU/1.0/
|
48
|
+
short_title: Unknown Rights-Holder
|
49
|
+
feature:
|
50
|
+
- rs-inc
|
51
|
+
reuse_text: Limited Re-Use
|
52
|
+
|
53
|
+
- title: 'RightsStatements.org: In Copyright - Non-Commercial Use Permitted'
|
54
|
+
url: http://rightsstatements.org/vocab/InC-NC/1.0/
|
55
|
+
short_title: Non-Commercial Use Permitted
|
56
|
+
feature:
|
57
|
+
- rs-inc
|
58
|
+
reuse_text: Limited Re-Use
|
59
|
+
|
60
|
+
- title: 'RightsStatements.org: In Copyright - Educational Use Permitted'
|
61
|
+
url: http://rightsstatements.org/vocab/InC-EDU/1.0/
|
62
|
+
short_title: Educational Use Permitted
|
63
|
+
feature:
|
64
|
+
- rs-inc
|
65
|
+
reuse_text: Limited Re-Use
|
66
|
+
|
67
|
+
- title: 'RightsStatements.org: In Copyright'
|
68
|
+
url: http://rightsstatements.org/vocab/InC/1.0/
|
69
|
+
short_title: In Copyright
|
70
|
+
feature:
|
71
|
+
- rs-inc
|
72
|
+
reuse_text: No Re-Use
|
73
|
+
|
74
|
+
- title: Creative Commons 1.0 Universal (CC0 Public Domain Dedication)
|
75
|
+
url: https://creativecommons.org/publicdomain/zero/1.0/
|
76
|
+
short_title: CC0 1.0
|
77
|
+
feature:
|
78
|
+
- cc-cc
|
79
|
+
- cc-zero
|
80
|
+
reuse_text: Free Re-Use
|
81
|
+
|
82
|
+
- title: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
|
83
|
+
url: https://creativecommons.org/licenses/by-nc-nd/4.0/
|
84
|
+
short_title: CC BY-NC-ND 4.0
|
85
|
+
feature:
|
86
|
+
- cc-cc
|
87
|
+
- cc-by
|
88
|
+
- cc-nc
|
89
|
+
- cc-nd
|
90
|
+
reuse_text: Limited Re-Use
|
91
|
+
|
92
|
+
- title: Creative Commons Attribution-NonCommercial 4.0 International
|
93
|
+
url: https://creativecommons.org/licenses/by-nc/4.0/
|
94
|
+
short_title: CC BY-NC 4.0
|
95
|
+
feature:
|
96
|
+
- cc-cc
|
97
|
+
- cc-by
|
98
|
+
- cc-nc
|
99
|
+
reuse_text: Limited Re-Use
|
100
|
+
|
101
|
+
- title: Creative Commons Attribution 4.0 International
|
102
|
+
url: https://creativecommons.org/licenses/by/4.0/
|
103
|
+
short_title: CC BY 4.0
|
104
|
+
feature:
|
105
|
+
- cc-cc
|
106
|
+
- cc-by
|
107
|
+
reuse_text: Free Re-Use
|
@@ -4,8 +4,7 @@ module Ddr
|
|
4
4
|
|
5
5
|
# An object can't be published if it's already published or not publishable
|
6
6
|
# It can't be unpublished if it's already unpublished
|
7
|
-
# It can't be made nonpublishable if it's already
|
8
|
-
# first) or already nonpublishable
|
7
|
+
# It can't be made nonpublishable if it's already nonpublishable
|
9
8
|
def call
|
10
9
|
cannot :publish, Ddr::Resource do |obj|
|
11
10
|
obj.published? || !obj.publishable?
|
@@ -14,7 +13,7 @@ module Ddr
|
|
14
13
|
!obj.published? && !obj.nonpublishable?
|
15
14
|
end
|
16
15
|
cannot :make_nonpublishable, Ddr::Resource do |obj|
|
17
|
-
obj.
|
16
|
+
obj.nonpublishable?
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
@@ -59,9 +59,11 @@ module Ddr::Index
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def objects
|
62
|
+
resource_factory = Valkyrie::MetadataAdapter.find(:index_solr).resource_factory
|
63
|
+
|
62
64
|
Enumerator.new do |e|
|
63
|
-
|
64
|
-
e <<
|
65
|
+
each do |obj|
|
66
|
+
e << resource_factory.to_resource(object: obj)
|
65
67
|
end
|
66
68
|
end
|
67
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Coble
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-
|
14
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activeresource
|
@@ -338,6 +338,10 @@ files:
|
|
338
338
|
- app/models/ddr/resource.rb
|
339
339
|
- app/models/ddr/rights_statement.rb
|
340
340
|
- app/models/ddr/target.rb
|
341
|
+
- config/aux/admin_set.yml
|
342
|
+
- config/aux/contact.yml
|
343
|
+
- config/aux/language.yml
|
344
|
+
- config/aux/rights_statement.yml
|
341
345
|
- config/initializers/devise.rb
|
342
346
|
- config/locales/ddr-core.en.yml
|
343
347
|
- config/routes.rb
|
@@ -447,7 +451,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
447
451
|
- !ruby/object:Gem::Version
|
448
452
|
version: '0'
|
449
453
|
requirements: []
|
450
|
-
rubygems_version: 3.3.
|
454
|
+
rubygems_version: 3.3.12
|
451
455
|
signing_key:
|
452
456
|
specification_version: 4
|
453
457
|
summary: Models used in the Duke Digital Repository
|