cocina-models 0.47.2 → 0.48.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fa9efc7d9b5938ce148a3c66bce454d5f6ff3f1de439907b8b50b9170349f94
|
4
|
+
data.tar.gz: 0a00359d3fca6c9672d814b95a5bd20b25411090f8274d64cab791e3c5c17546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7525f4ce056ef73d07a3d674abdf9bcdf0eabe0ce1368b24714e8f41bdf255474727729cafc82aa4d36eb52397a3bfefa15d97512473fa0fd9d21d752726fa80
|
7
|
+
data.tar.gz: af24b2e5e06828819a9f9a9a3cea9b091b19a250121d2f14c1e95027e8a1ad68bb5dee53ff235aeb7d6107bb8bf195617f9cbe604d06d9f18657bd012ee32dd5
|
@@ -5,6 +5,7 @@ module Cocina
|
|
5
5
|
class AdminPolicyAdministrative < Struct
|
6
6
|
attribute :defaultObjectRights, Types::Strict::String.default('<?xml version="1.0" encoding="UTF-8"?><rightsMetadata><access type="discover"><machine><world/></machine></access><access type="read"><machine><world/></machine></access><use><human type="useAndReproduction"/><human type="creativeCommons"/><machine type="creativeCommons" uri=""/><human type="openDataCommons"/><machine type="openDataCommons" uri=""/></use><copyright><human/></copyright></rightsMetadata>').meta(omittable: true)
|
7
7
|
attribute :registrationWorkflow, Types::Strict::String.meta(omittable: true)
|
8
|
+
attribute :collectionsForRegistration, Types::Strict::Array.of(Types::Strict::String).meta(omittable: true)
|
8
9
|
attribute :hasAdminPolicy, Types::Strict::String
|
9
10
|
end
|
10
11
|
end
|
@@ -3,6 +3,10 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class CollectionIdentification < Struct
|
6
|
+
# Unique identifier in some other system. This is because a large proportion of what is deposited in SDR, historically and currently, are representations of objects that are also represented in other systems. For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to look for the original item if you're looking at its SDR representation. The format is: "namespace:identifier"
|
7
|
+
|
8
|
+
# example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
|
9
|
+
attribute :sourceId, Types::Strict::String.meta(omittable: true)
|
6
10
|
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
7
11
|
end
|
8
12
|
end
|
data/openapi.yml
CHANGED
@@ -169,6 +169,11 @@ components:
|
|
169
169
|
default: <?xml version="1.0" encoding="UTF-8"?><rightsMetadata><access type="discover"><machine><world/></machine></access><access type="read"><machine><world/></machine></access><use><human type="useAndReproduction"/><human type="creativeCommons"/><machine type="creativeCommons" uri=""/><human type="openDataCommons"/><machine type="openDataCommons" uri=""/></use><copyright><human/></copyright></rightsMetadata>
|
170
170
|
registrationWorkflow:
|
171
171
|
type: string
|
172
|
+
collectionsForRegistration:
|
173
|
+
description: When you register an item with this admin policy, these are the collections that are available.
|
174
|
+
type: array
|
175
|
+
items:
|
176
|
+
type: string
|
172
177
|
hasAdminPolicy:
|
173
178
|
type: string
|
174
179
|
required:
|
@@ -239,6 +244,8 @@ components:
|
|
239
244
|
type: object
|
240
245
|
additionalProperties: false
|
241
246
|
properties:
|
247
|
+
sourceId:
|
248
|
+
$ref: '#/components/schemas/SourceId'
|
242
249
|
catalogLinks:
|
243
250
|
type: array
|
244
251
|
items:
|
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.48.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: 2021-02-
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
326
326
|
- !ruby/object:Gem::Version
|
327
327
|
version: '0'
|
328
328
|
requirements: []
|
329
|
-
rubygems_version: 3.
|
329
|
+
rubygems_version: 3.1.4
|
330
330
|
signing_key:
|
331
331
|
specification_version: 4
|
332
332
|
summary: Data models for the SDR
|