cocina-models 0.25.0 → 0.26.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/docs/maps/Collection.json +1 -1
- data/docs/maps/DRO.json +1 -1
- data/docs/schema.json +2 -2
- data/docs/schema.md +2 -2
- data/lib/cocina/models/dro.rb +2 -0
- data/lib/cocina/models/file.rb +3 -3
- data/lib/cocina/models/request_file.rb +3 -3
- data/lib/cocina/models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d4ec4084e83d22e7d56aa26eb4f04f60c27b6e1835853d97f73f564fd69e386
|
|
4
|
+
data.tar.gz: c9b103a96e3b3136fa18faebc2ab1e16c8283f49023ed1198254b94a93905bb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95123c04b49be5d4f30398b00668a4df1333e80380a5e37e38b08517a1a5eb5b96f0e282d9f0b4f708c9f3ee5b5f38b40491bce9796a8eee8fa8b14c0faafed4
|
|
7
|
+
data.tar.gz: 4fef296ad265d59852dd78d32d87bda354c44be1da78a9923f67093b5819695517095a5fe864e6ac35a5db9a57a6de5eb46314720ef580c0afb79033146bbbc8
|
data/docs/maps/Collection.json
CHANGED
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"description": "The license governing reuse of the Collection. Should be an IRI for known licenses (i.e. CC, RightsStatement.org URI, etc.).",
|
|
90
90
|
"type": "string"
|
|
91
91
|
},
|
|
92
|
-
"
|
|
92
|
+
"useAndReproductionStatement": {
|
|
93
93
|
"description": "The human readable reuse and reproduction statement that applies to the Collection.",
|
|
94
94
|
"type": "string"
|
|
95
95
|
},
|
data/docs/maps/DRO.json
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"description": "The license governing reuse of the DRO. Should be an IRI for known licenses (i.e. CC, RightsStatement.org URI, etc.).",
|
|
108
108
|
"type": "string"
|
|
109
109
|
},
|
|
110
|
-
"
|
|
110
|
+
"useAndReproductionStatement": {
|
|
111
111
|
"description": "The human readable reuse and reproduction statement that applies to the DRO.",
|
|
112
112
|
"type": "string"
|
|
113
113
|
},
|
data/docs/schema.json
CHANGED
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"string"
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
|
-
"
|
|
183
|
+
"useAndReproductionStatement": {
|
|
184
184
|
"description": "The human readable reuse and reproduction statement that applies to the Collection.",
|
|
185
185
|
"type": [
|
|
186
186
|
"string"
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
"string"
|
|
596
596
|
]
|
|
597
597
|
},
|
|
598
|
-
"
|
|
598
|
+
"useAndReproductionStatement": {
|
|
599
599
|
"description": "The human readable reuse and reproduction statement that applies to the DRO.",
|
|
600
600
|
"type": [
|
|
601
601
|
"string"
|
data/docs/schema.md
CHANGED
|
@@ -28,7 +28,7 @@ A group of Digital Repository Objects that indicate some type of conceptual grou
|
|
|
28
28
|
| **access:download** | *string* | Download level for the Collection metadata.<br/> **one of:**`"world"` or `"stanford"` or `"location-based"` or `"citation-only"` or `"dark"` | `"world"` |
|
|
29
29
|
| **access:embargoReleaseDate** | *date-time* | Date when the Collection is released from an embargo, if an embargo exists. | `"2015-01-01T12:00:00Z"` |
|
|
30
30
|
| **access:license** | *string* | The license governing reuse of the Collection. Should be an IRI for known licenses (i.e. CC, RightsStatement.org URI, etc.). | `"example"` |
|
|
31
|
-
| **access:
|
|
31
|
+
| **access:useAndReproductionStatement** | *string* | The human readable reuse and reproduction statement that applies to the Collection. | `"example"` |
|
|
32
32
|
| **access:termsOfUse** | *string* | License or terms of use governing reuse of the Collection. Should be a text statement. | `"example"` |
|
|
33
33
|
| **administrative:created** | *date-time* | When the resource in SDR was created. | `"2015-01-01T12:00:00Z"` |
|
|
34
34
|
| **administrative:deleted** | *boolean* | If the resource has been deleted (but not purged). | `true` |
|
|
@@ -84,7 +84,7 @@ Domain-defined abstraction of a 'work'. Digital Repository Objects' abstraction
|
|
|
84
84
|
| **access:embargo:access** | *string* | Access level for the DRO when released from embargo.<br/> **one of:**`"world"` or `"stanford"` or `"location-based"` or `"citation-only"` or `"dark"` | `"world"` |
|
|
85
85
|
| **access:embargo:releaseDate** | *date-time* | Date when the DRO is released from an embargo. | `"2015-01-01T12:00:00Z"` |
|
|
86
86
|
| **access:license** | *string* | The license governing reuse of the DRO. Should be an IRI for known licenses (i.e. CC, RightsStatement.org URI, etc.). | `"example"` |
|
|
87
|
-
| **access:
|
|
87
|
+
| **access:useAndReproductionStatement** | *string* | The human readable reuse and reproduction statement that applies to the DRO. | `"example"` |
|
|
88
88
|
| **access:termsOfUse** | *string* | License or terms of use governing reuse of the DRO. Should be a text statement. | `"example"` |
|
|
89
89
|
| **access:visibility** | *integer* | Percentage of the DRO that is visibility during an embargo period | `42` |
|
|
90
90
|
| **administrative:created** | *date-time* | When the resource in SDR was created. | `"2015-01-01T12:00:00Z"` |
|
data/lib/cocina/models/dro.rb
CHANGED
|
@@ -36,6 +36,8 @@ module Cocina
|
|
|
36
36
|
attribute :embargo, Embargo.optional.meta(omittable: true)
|
|
37
37
|
attribute :access, Types::String.default('dark')
|
|
38
38
|
.enum('world', 'stanford', 'location-based', 'citation-only', 'dark')
|
|
39
|
+
attribute :copyright, Types::Strict::String.meta(omittable: true)
|
|
40
|
+
attribute :useAndReproductionStatement, Types::Strict::String.meta(omittable: true)
|
|
39
41
|
end
|
|
40
42
|
|
|
41
43
|
# Subschema for administrative concerns
|
data/lib/cocina/models/file.rb
CHANGED
|
@@ -50,10 +50,10 @@ module Cocina
|
|
|
50
50
|
attribute :size, Types::Coercible::Integer.optional.default(nil)
|
|
51
51
|
attribute :hasMessageDigests, Types::Strict::Array.of(Fixity).default([].freeze)
|
|
52
52
|
attribute :hasMimeType, Types::String.optional.meta(omittable: true)
|
|
53
|
-
attribute
|
|
53
|
+
attribute :presentation, Presentation.optional.meta(omittable: true)
|
|
54
54
|
attribute :version, Types::Coercible::Integer
|
|
55
|
-
attribute
|
|
56
|
-
attribute
|
|
55
|
+
attribute :identification, Identification.optional.meta(omittable: true)
|
|
56
|
+
attribute :structural, Structural.optional.meta(omittable: true)
|
|
57
57
|
|
|
58
58
|
def self.from_dynamic(dyn)
|
|
59
59
|
File.new(dyn)
|
|
@@ -15,10 +15,10 @@ module Cocina
|
|
|
15
15
|
attribute :size, Types::Coercible::Integer.optional.default(nil)
|
|
16
16
|
attribute :hasMessageDigests, Types::Strict::Array.of(File::Fixity).default([].freeze)
|
|
17
17
|
attribute :hasMimeType, Types::String.optional.meta(omittable: true)
|
|
18
|
-
attribute
|
|
18
|
+
attribute :presentation, File::Presentation.optional.meta(omittable: true)
|
|
19
19
|
attribute :version, Types::Coercible::Integer
|
|
20
|
-
attribute
|
|
21
|
-
attribute
|
|
20
|
+
attribute :identification, File::Identification.optional.meta(omittable: true)
|
|
21
|
+
attribute :structural, File::Structural.optional.meta(omittable: true)
|
|
22
22
|
|
|
23
23
|
def self.from_dynamic(dyn)
|
|
24
24
|
new(dyn)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocina-models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-02
|
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-struct
|