cocina-models 0.60.0 → 0.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/cocina/models/admin_policy.rb +0 -1
- data/lib/cocina/models/collection.rb +0 -1
- data/lib/cocina/models/collection_identification.rb +1 -1
- data/lib/cocina/models/description.rb +1 -1
- data/lib/cocina/models/doi.rb +9 -0
- data/lib/cocina/models/dro.rb +0 -1
- data/lib/cocina/models/identification.rb +6 -3
- data/lib/cocina/models/purl.rb +9 -0
- data/lib/cocina/models/related_resource.rb +1 -1
- data/lib/cocina/models/request_admin_policy.rb +0 -1
- data/lib/cocina/models/request_collection.rb +0 -1
- data/lib/cocina/models/request_dro.rb +0 -1
- data/lib/cocina/models/request_identification.rb +6 -3
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +62 -57
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83f1515b4aa8389d471458c9c58f499fddbfe0f2cbf01b4be56c70f50ec77cd3
|
4
|
+
data.tar.gz: 0a6de21eadb30b5efb2512cb2786ec290815314181c054d9012a29518d2f4021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab9f26de5fb14d9e036034acec1c056cf5a067d426d0547e93cd05d5573b53617c97afa77c00417adbd270278edcf1edbcc40bb3db56512cf702a568fca6a808
|
7
|
+
data.tar.gz: 8c368c49dd7581348a98898229c7bae57eab65fc31f0bdcced427d31e65294594b57ce76b36a2489cc263720d992bee4c1b0201e503e0ba8680e9848de4d9dcc
|
data/README.md
CHANGED
@@ -72,6 +72,7 @@ Once the above listed steps have been completed, all the following applications
|
|
72
72
|
* [sul-dlss/google-books](https://github.com/sul-dlss/google-books/)
|
73
73
|
* [sul-dlss/argo](https://github.com/sul-dlss/argo/)
|
74
74
|
* [sul-dlss/pre-assembly](https://github.com/sul-dlss/pre-assembly/)
|
75
|
+
* [sul-dlss/hydrus](https://github.com/sul-dlss/hydra_etd/)
|
75
76
|
* [sul-dlss/hydrus](https://github.com/sul-dlss/hydrus/)
|
76
77
|
* [sul-dlss/happy-heron](https://github.com/sul-dlss/happy-heron/)
|
77
78
|
* [sul-dlss/infrastructure-integration-test](https://github.com/sul-dlss/infrastructure-integration-test/)
|
@@ -7,7 +7,6 @@ module Cocina
|
|
7
7
|
|
8
8
|
TYPES = ['http://cocina.sul.stanford.edu/models/admin_policy.jsonld'].freeze
|
9
9
|
|
10
|
-
# example: item
|
11
10
|
attribute :type, Types::Strict::String.enum(*AdminPolicy::TYPES)
|
12
11
|
# example: druid:bc123df4567
|
13
12
|
attribute :externalIdentifier, Types::Strict::String
|
@@ -12,7 +12,6 @@ module Cocina
|
|
12
12
|
'http://cocina.sul.stanford.edu/models/series.jsonld'].freeze
|
13
13
|
|
14
14
|
# The content type of the Collection. Selected from an established set of values.
|
15
|
-
# example: item
|
16
15
|
attribute :type, Types::Strict::String.enum(*Collection::TYPES)
|
17
16
|
# example: druid:bc123df4567
|
18
17
|
attribute :externalIdentifier, Types::Strict::String
|
@@ -3,11 +3,11 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class CollectionIdentification < Struct
|
6
|
+
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
6
7
|
# 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
|
|
8
9
|
# example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
|
9
10
|
attribute :sourceId, Types::Strict::String.meta(omittable: true)
|
10
|
-
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -12,7 +12,7 @@ module Cocina
|
|
12
12
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
13
13
|
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
14
14
|
attribute :subject, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
15
|
-
# Stanford persistent URL associated with the resource.
|
15
|
+
# Stanford persistent URL associated with the related resource. Note this is http, not https.
|
16
16
|
attribute :purl, Types::Strict::String.meta(omittable: true)
|
17
17
|
attribute :access, DescriptiveAccessMetadata.optional.meta(omittable: true)
|
18
18
|
attribute :relatedResource, Types::Strict::Array.of(RelatedResource).meta(omittable: true)
|
data/lib/cocina/models/dro.rb
CHANGED
@@ -22,7 +22,6 @@ module Cocina
|
|
22
22
|
'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'].freeze
|
23
23
|
|
24
24
|
# The content type of the DRO. Selected from an established set of values.
|
25
|
-
# example: item
|
26
25
|
attribute :type, Types::Strict::String.enum(*DRO::TYPES)
|
27
26
|
# example: druid:bc123df4567
|
28
27
|
attribute :externalIdentifier, Types::Strict::String
|
@@ -3,13 +3,16 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class Identification < Struct
|
6
|
+
# A barcode
|
7
|
+
attribute :barcode, Types::Nominal::Any.meta(omittable: true)
|
8
|
+
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
9
|
+
# Digital Object Identifier (https://www.doi.org)
|
10
|
+
# example: 10.25740/druid:bc123df4567
|
11
|
+
attribute :doi, Types::Strict::String.meta(omittable: true)
|
6
12
|
# 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
13
|
|
8
14
|
# example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
|
9
15
|
attribute :sourceId, Types::Strict::String.meta(omittable: true)
|
10
|
-
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
11
|
-
# A barcode
|
12
|
-
attribute :barcode, Types::Nominal::Any.meta(omittable: true)
|
13
16
|
end
|
14
17
|
end
|
15
18
|
end
|
@@ -18,7 +18,7 @@ module Cocina
|
|
18
18
|
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
19
19
|
attribute :standard, Standard.optional.meta(omittable: true)
|
20
20
|
attribute :subject, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
21
|
-
# Stanford persistent URL associated with the related resource.
|
21
|
+
# Stanford persistent URL associated with the related resource. Note this is http, not https.
|
22
22
|
attribute :purl, Types::Strict::String.meta(omittable: true)
|
23
23
|
attribute :access, DescriptiveAccessMetadata.optional.meta(omittable: true)
|
24
24
|
attribute :relatedResource, Types::Strict::Array.of(RelatedResource).meta(omittable: true)
|
@@ -7,7 +7,6 @@ module Cocina
|
|
7
7
|
|
8
8
|
TYPES = ['http://cocina.sul.stanford.edu/models/admin_policy.jsonld'].freeze
|
9
9
|
|
10
|
-
# example: item
|
11
10
|
attribute :type, Types::Strict::String.enum(*RequestAdminPolicy::TYPES)
|
12
11
|
attribute :label, Types::Strict::String
|
13
12
|
attribute :version, Types::Strict::Integer
|
@@ -11,7 +11,6 @@ module Cocina
|
|
11
11
|
'http://cocina.sul.stanford.edu/models/exhibit.jsonld',
|
12
12
|
'http://cocina.sul.stanford.edu/models/series.jsonld'].freeze
|
13
13
|
|
14
|
-
# example: item
|
15
14
|
attribute :type, Types::Strict::String.enum(*RequestCollection::TYPES)
|
16
15
|
attribute :label, Types::Strict::String
|
17
16
|
attribute :version, Types::Strict::Integer
|
@@ -21,7 +21,6 @@ module Cocina
|
|
21
21
|
'http://cocina.sul.stanford.edu/models/webarchive-binary.jsonld',
|
22
22
|
'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'].freeze
|
23
23
|
|
24
|
-
# example: item
|
25
24
|
attribute :type, Types::Strict::String.enum(*RequestDRO::TYPES)
|
26
25
|
attribute :label, Types::Strict::String
|
27
26
|
attribute :version, Types::Strict::Integer
|
@@ -3,13 +3,16 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class RequestIdentification < Struct
|
6
|
+
# A barcode
|
7
|
+
attribute :barcode, Types::Nominal::Any.meta(omittable: true)
|
8
|
+
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
9
|
+
# Digital Object Identifier (https://www.doi.org)
|
10
|
+
# example: 10.25740/druid:bc123df4567
|
11
|
+
attribute :doi, Types::Strict::String.meta(omittable: true)
|
6
12
|
# 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
13
|
|
8
14
|
# example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
|
9
15
|
attribute :sourceId, Types::Strict::String
|
10
|
-
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
11
|
-
# A barcode
|
12
|
-
attribute :barcode, Types::Nominal::Any.meta(omittable: true)
|
13
16
|
end
|
14
17
|
end
|
15
18
|
end
|
data/openapi.yml
CHANGED
@@ -176,7 +176,6 @@ components:
|
|
176
176
|
type: string
|
177
177
|
enum:
|
178
178
|
- 'http://cocina.sul.stanford.edu/models/admin_policy.jsonld'
|
179
|
-
example: item
|
180
179
|
externalIdentifier:
|
181
180
|
$ref: '#/components/schemas/Druid'
|
182
181
|
label:
|
@@ -308,12 +307,12 @@ components:
|
|
308
307
|
description: The barcode associated with a business library DRO object, prefixed with 2050
|
309
308
|
type: string
|
310
309
|
pattern: '^2050[0-9]{7}$'
|
311
|
-
example: 20503740296
|
310
|
+
example: '20503740296'
|
312
311
|
LaneMedicalBarcode:
|
313
312
|
description: The barcode associated with a Lane Medical Library DRO object, prefixed with 245
|
314
313
|
type: string
|
315
314
|
pattern: '^245[0-9]{8}$'
|
316
|
-
example: 24503259768
|
315
|
+
example: '24503259768'
|
317
316
|
CatalogLink:
|
318
317
|
type: object
|
319
318
|
additionalProperties: false
|
@@ -328,12 +327,12 @@ components:
|
|
328
327
|
catalogRecordId:
|
329
328
|
description: Record identifier that is unique within the context of the linked record's catalog.
|
330
329
|
type: string
|
331
|
-
example: 11403803
|
330
|
+
example: '11403803'
|
332
331
|
CatkeyBarcode:
|
333
332
|
description: The barcode associated with a DRO object based on catkey, prefixed with 36105
|
334
333
|
type: string
|
335
334
|
pattern: '^[0-9]+-[0-9]+$'
|
336
|
-
example: 6772719-1001
|
335
|
+
example: '6772719-1001'
|
337
336
|
CitationOnlyAccess:
|
338
337
|
type: object
|
339
338
|
properties:
|
@@ -375,7 +374,6 @@ components:
|
|
375
374
|
- 'http://cocina.sul.stanford.edu/models/user-collection.jsonld'
|
376
375
|
- 'http://cocina.sul.stanford.edu/models/exhibit.jsonld'
|
377
376
|
- 'http://cocina.sul.stanford.edu/models/series.jsonld'
|
378
|
-
example: item
|
379
377
|
externalIdentifier:
|
380
378
|
$ref: '#/components/schemas/Druid'
|
381
379
|
label:
|
@@ -426,12 +424,12 @@ components:
|
|
426
424
|
type: object
|
427
425
|
additionalProperties: false
|
428
426
|
properties:
|
429
|
-
sourceId:
|
430
|
-
$ref: '#/components/schemas/SourceId'
|
431
427
|
catalogLinks:
|
432
428
|
type: array
|
433
429
|
items:
|
434
430
|
$ref: '#/components/schemas/CatalogLink'
|
431
|
+
sourceId:
|
432
|
+
$ref: '#/components/schemas/SourceId'
|
435
433
|
Contributor:
|
436
434
|
description: Property model for describing agents contributing in some way to
|
437
435
|
the creation and history of the resource.
|
@@ -582,9 +580,7 @@ components:
|
|
582
580
|
items:
|
583
581
|
$ref: "#/components/schemas/DescriptiveValue"
|
584
582
|
purl:
|
585
|
-
|
586
|
-
type: string
|
587
|
-
format: uri
|
583
|
+
$ref: "#/components/schemas/Purl"
|
588
584
|
access:
|
589
585
|
$ref: "#/components/schemas/DescriptiveAccessMetadata"
|
590
586
|
relatedResource:
|
@@ -879,6 +875,11 @@ components:
|
|
879
875
|
$ref: '#/components/schemas/Standard'
|
880
876
|
# description: An alphabet or other notation used to represent a
|
881
877
|
# language or other symbolic system of the descriptive element value.
|
878
|
+
DOI:
|
879
|
+
type: string
|
880
|
+
description: Digital Object Identifier (https://www.doi.org)
|
881
|
+
pattern: '^10\.25740\/druid:[b-df-hjkmnp-tv-z]{2}[0-9]{3}[b-df-hjkmnp-tv-z]{2}[0-9]{4}$'
|
882
|
+
example: '10.25740/druid:bc123df4567'
|
882
883
|
DRO:
|
883
884
|
description: Domain-defined abstraction of a 'work'. Digital Repository Objects' abstraction is describable for our domain’s purposes, i.e. for management needs within our system.
|
884
885
|
type: object
|
@@ -903,7 +904,6 @@ components:
|
|
903
904
|
- 'http://cocina.sul.stanford.edu/models/track.jsonld'
|
904
905
|
- 'http://cocina.sul.stanford.edu/models/webarchive-binary.jsonld'
|
905
906
|
- 'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'
|
906
|
-
example: item
|
907
907
|
externalIdentifier:
|
908
908
|
$ref: '#/components/schemas/Druid'
|
909
909
|
label:
|
@@ -953,36 +953,36 @@ components:
|
|
953
953
|
description: The license governing reuse of the DRO. Should be an IRI for known licenses (i.e. CC, RightsStatement.org URI, etc.).
|
954
954
|
type: string
|
955
955
|
enum:
|
956
|
-
- https://www.gnu.org/licenses/agpl.txt
|
957
|
-
- https://www.apache.org/licenses/LICENSE-2.0
|
958
|
-
- https://opensource.org/licenses/BSD-2-Clause
|
959
|
-
- https://opensource.org/licenses/BSD-3-Clause
|
960
|
-
- https://creativecommons.org/licenses/by/4.0/legalcode
|
961
|
-
- https://creativecommons.org/licenses/by-nc/4.0/legalcode
|
962
|
-
- https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
|
963
|
-
- https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
|
964
|
-
- https://creativecommons.org/licenses/by-nd/4.0/legalcode
|
965
|
-
- https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
966
|
-
- https://creativecommons.org/publicdomain/zero/1.0/legalcode
|
967
|
-
- https://opensource.org/licenses/cddl1
|
968
|
-
- https://www.eclipse.org/legal/epl-2.0
|
969
|
-
- https://www.gnu.org/licenses/gpl-3.0-standalone.html
|
970
|
-
- https://www.isc.org/downloads/software-support-policy/isc-license/
|
971
|
-
- https://www.gnu.org/licenses/lgpl-3.0-standalone.html
|
972
|
-
- https://opensource.org/licenses/MIT
|
973
|
-
- https://www.mozilla.org/MPL/2.0/
|
974
|
-
- https://opendatacommons.org/licenses/by/1-0/
|
975
|
-
- http://opendatacommons.org/licenses/odbl/1.0/ # Non cannonical, but in some of our data
|
976
|
-
- https://opendatacommons.org/licenses/odbl/1-0/
|
977
|
-
- https://creativecommons.org/publicdomain/mark/1.0/
|
978
|
-
- https://opendatacommons.org/licenses/pddl/1-0/
|
979
|
-
- https://creativecommons.org/licenses/by/3.0/legalcode
|
980
|
-
- https://creativecommons.org/licenses/by-sa/3.0/legalcode
|
981
|
-
- https://creativecommons.org/licenses/by-nd/3.0/legalcode
|
982
|
-
- https://creativecommons.org/licenses/by-nc/3.0/legalcode
|
983
|
-
- https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode
|
984
|
-
- https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode
|
985
|
-
- http://cocina.sul.stanford.edu/licenses/none # Only used in some legacy ETDs and not actually permitted per the Project Chimera docs.
|
956
|
+
- 'https://www.gnu.org/licenses/agpl.txt'
|
957
|
+
- 'https://www.apache.org/licenses/LICENSE-2.0'
|
958
|
+
- 'https://opensource.org/licenses/BSD-2-Clause'
|
959
|
+
- 'https://opensource.org/licenses/BSD-3-Clause'
|
960
|
+
- 'https://creativecommons.org/licenses/by/4.0/legalcode'
|
961
|
+
- 'https://creativecommons.org/licenses/by-nc/4.0/legalcode'
|
962
|
+
- 'https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode'
|
963
|
+
- 'https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode'
|
964
|
+
- 'https://creativecommons.org/licenses/by-nd/4.0/legalcode'
|
965
|
+
- 'https://creativecommons.org/licenses/by-sa/4.0/legalcode'
|
966
|
+
- 'https://creativecommons.org/publicdomain/zero/1.0/legalcode'
|
967
|
+
- 'https://opensource.org/licenses/cddl1'
|
968
|
+
- 'https://www.eclipse.org/legal/epl-2.0'
|
969
|
+
- 'https://www.gnu.org/licenses/gpl-3.0-standalone.html'
|
970
|
+
- 'https://www.isc.org/downloads/software-support-policy/isc-license/'
|
971
|
+
- 'https://www.gnu.org/licenses/lgpl-3.0-standalone.html'
|
972
|
+
- 'https://opensource.org/licenses/MIT'
|
973
|
+
- 'https://www.mozilla.org/MPL/2.0/'
|
974
|
+
- 'https://opendatacommons.org/licenses/by/1-0/'
|
975
|
+
- 'http://opendatacommons.org/licenses/odbl/1.0/' # Non cannonical, but in some of our data
|
976
|
+
- 'https://opendatacommons.org/licenses/odbl/1-0/'
|
977
|
+
- 'https://creativecommons.org/publicdomain/mark/1.0/'
|
978
|
+
- 'https://opendatacommons.org/licenses/pddl/1-0/'
|
979
|
+
- 'https://creativecommons.org/licenses/by/3.0/legalcode'
|
980
|
+
- 'https://creativecommons.org/licenses/by-sa/3.0/legalcode'
|
981
|
+
- 'https://creativecommons.org/licenses/by-nd/3.0/legalcode'
|
982
|
+
- 'https://creativecommons.org/licenses/by-nc/3.0/legalcode'
|
983
|
+
- 'https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode'
|
984
|
+
- 'https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode'
|
985
|
+
- 'http://cocina.sul.stanford.edu/licenses/none' # Only used in some legacy ETDs and not actually permitted per the Project Chimera docs.
|
986
986
|
DROStructural:
|
987
987
|
description: Structural metadata
|
988
988
|
type: object
|
@@ -1218,14 +1218,16 @@ components:
|
|
1218
1218
|
type: object
|
1219
1219
|
additionalProperties: false
|
1220
1220
|
properties:
|
1221
|
-
|
1222
|
-
$ref: '#/components/schemas/
|
1221
|
+
barcode:
|
1222
|
+
$ref: '#/components/schemas/Barcode'
|
1223
1223
|
catalogLinks:
|
1224
1224
|
type: array
|
1225
1225
|
items:
|
1226
1226
|
$ref: '#/components/schemas/CatalogLink'
|
1227
|
-
|
1228
|
-
$ref: '#/components/schemas/
|
1227
|
+
doi:
|
1228
|
+
$ref: '#/components/schemas/DOI'
|
1229
|
+
sourceId:
|
1230
|
+
$ref: '#/components/schemas/SourceId'
|
1229
1231
|
Language:
|
1230
1232
|
description: Languages, scripts, symbolic systems, and notations used in all
|
1231
1233
|
or part of a resource or its descriptive metadata.
|
@@ -1389,6 +1391,12 @@ components:
|
|
1389
1391
|
width:
|
1390
1392
|
description: Width in pixels
|
1391
1393
|
type: integer
|
1394
|
+
Purl:
|
1395
|
+
description: Stanford persistent URL associated with the related resource. Note this is http, not https.
|
1396
|
+
type: string
|
1397
|
+
format: uri
|
1398
|
+
# Canonical URI is http, even though this redirects to https.
|
1399
|
+
pattern: '^http:\/\/'
|
1392
1400
|
RelatedResource:
|
1393
1401
|
description: Other resource associated with the described resource.
|
1394
1402
|
type: object
|
@@ -1450,9 +1458,7 @@ components:
|
|
1450
1458
|
items:
|
1451
1459
|
$ref: "#/components/schemas/DescriptiveValue"
|
1452
1460
|
purl:
|
1453
|
-
|
1454
|
-
type: string
|
1455
|
-
format: uri
|
1461
|
+
$ref: "#/components/schemas/Purl"
|
1456
1462
|
access:
|
1457
1463
|
$ref: "#/components/schemas/DescriptiveAccessMetadata"
|
1458
1464
|
relatedResource:
|
@@ -1505,7 +1511,6 @@ components:
|
|
1505
1511
|
type: string
|
1506
1512
|
enum:
|
1507
1513
|
- 'http://cocina.sul.stanford.edu/models/admin_policy.jsonld'
|
1508
|
-
example: item
|
1509
1514
|
label:
|
1510
1515
|
type: string
|
1511
1516
|
version:
|
@@ -1532,7 +1537,6 @@ components:
|
|
1532
1537
|
- 'http://cocina.sul.stanford.edu/models/user-collection.jsonld'
|
1533
1538
|
- 'http://cocina.sul.stanford.edu/models/exhibit.jsonld'
|
1534
1539
|
- 'http://cocina.sul.stanford.edu/models/series.jsonld'
|
1535
|
-
example: item
|
1536
1540
|
label:
|
1537
1541
|
type: string
|
1538
1542
|
version:
|
@@ -1574,7 +1578,6 @@ components:
|
|
1574
1578
|
- 'http://cocina.sul.stanford.edu/models/track.jsonld'
|
1575
1579
|
- 'http://cocina.sul.stanford.edu/models/webarchive-binary.jsonld'
|
1576
1580
|
- 'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'
|
1577
|
-
example: item
|
1578
1581
|
label:
|
1579
1582
|
type: string
|
1580
1583
|
version:
|
@@ -1705,14 +1708,16 @@ components:
|
|
1705
1708
|
type: object
|
1706
1709
|
additionalProperties: false
|
1707
1710
|
properties:
|
1708
|
-
|
1709
|
-
$ref: '#/components/schemas/
|
1711
|
+
barcode:
|
1712
|
+
$ref: '#/components/schemas/Barcode'
|
1710
1713
|
catalogLinks:
|
1711
1714
|
type: array
|
1712
1715
|
items:
|
1713
1716
|
$ref: '#/components/schemas/CatalogLink'
|
1714
|
-
|
1715
|
-
$ref: '#/components/schemas/
|
1717
|
+
doi:
|
1718
|
+
$ref: '#/components/schemas/DOI'
|
1719
|
+
sourceId:
|
1720
|
+
$ref: '#/components/schemas/SourceId'
|
1716
1721
|
required:
|
1717
1722
|
- sourceId
|
1718
1723
|
Sequence:
|
@@ -1796,7 +1801,7 @@ components:
|
|
1796
1801
|
description: The standard barcode associated with a DRO object, prefixed with 36105
|
1797
1802
|
type: string
|
1798
1803
|
pattern: '^36105[0-9]{9}$'
|
1799
|
-
example: 36105010362304
|
1804
|
+
example: '36105010362304'
|
1800
1805
|
Title:
|
1801
1806
|
type: object
|
1802
1807
|
additionalProperties: false
|
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.61.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-06
|
11
|
+
date: 2021-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -284,6 +284,7 @@ files:
|
|
284
284
|
- lib/cocina/models/descriptive_structured_value.rb
|
285
285
|
- lib/cocina/models/descriptive_value.rb
|
286
286
|
- lib/cocina/models/descriptive_value_language.rb
|
287
|
+
- lib/cocina/models/doi.rb
|
287
288
|
- lib/cocina/models/dro.rb
|
288
289
|
- lib/cocina/models/dro_access.rb
|
289
290
|
- lib/cocina/models/dro_structural.rb
|
@@ -303,6 +304,7 @@ files:
|
|
303
304
|
- lib/cocina/models/location_based_download_access.rb
|
304
305
|
- lib/cocina/models/message_digest.rb
|
305
306
|
- lib/cocina/models/presentation.rb
|
307
|
+
- lib/cocina/models/purl.rb
|
306
308
|
- lib/cocina/models/related_resource.rb
|
307
309
|
- lib/cocina/models/release_tag.rb
|
308
310
|
- lib/cocina/models/request_admin_policy.rb
|