cocina-models 0.61.2 → 0.61.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocina/models/doi.rb +1 -1
- data/lib/cocina/models/request_identification.rb +0 -3
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +5 -4
- 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: 4303e7447ac07d23ba4075ed7a9ff66a098cf95f2b397fffee3cdd1a6f86a9b1
|
4
|
+
data.tar.gz: 5535dc06f87a9fd75490c71eae76a5db211a5a055e84956a2775c14703a9033e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccb5589caceaea881e141bb1c152fffa638b23c095a38cf8d3c767b063cc963727f91dc6f55dbf501f1df5e05e41f6ee501e71ea823bd7858fbbfedc85449e56
|
7
|
+
data.tar.gz: 7352328c35d6c5bb1e479545712b5d5d5355cfa73e06fe6961b7fdf3e47b620641cf0dc265b51c37915758117d86eee8ddf9fae42b7aeaf1287ae694e9a550c1
|
data/lib/cocina/models/doi.rb
CHANGED
@@ -6,9 +6,6 @@ module Cocina
|
|
6
6
|
# A barcode
|
7
7
|
attribute :barcode, Types::Nominal::Any.meta(omittable: true)
|
8
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)
|
12
9
|
# 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"
|
13
10
|
|
14
11
|
# example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
|
data/openapi.yml
CHANGED
@@ -878,7 +878,8 @@ components:
|
|
878
878
|
DOI:
|
879
879
|
type: string
|
880
880
|
description: Digital Object Identifier (https://www.doi.org)
|
881
|
-
|
881
|
+
# The prod and test prefixes are permitted
|
882
|
+
pattern: '^10\.(25740|80343)\/[b-df-hjkmnp-tv-z]{2}[0-9]{3}[b-df-hjkmnp-tv-z]{2}[0-9]{4}$'
|
882
883
|
example: '10.25740/bc123df4567'
|
883
884
|
DRO:
|
884
885
|
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.
|
@@ -1704,7 +1705,9 @@ components:
|
|
1704
1705
|
items:
|
1705
1706
|
$ref: '#/components/schemas/RequestFile'
|
1706
1707
|
RequestIdentification:
|
1707
|
-
|
1708
|
+
# Doesn't permit a DOI because our DOIs all use the DRUID as part of the DOI.
|
1709
|
+
# You have to register the object in order to get the DRUID before you can mint a DOI
|
1710
|
+
description: Same as a Identification, but requires a sourceId and doesn't permit a DOI.
|
1708
1711
|
type: object
|
1709
1712
|
additionalProperties: false
|
1710
1713
|
properties:
|
@@ -1714,8 +1717,6 @@ components:
|
|
1714
1717
|
type: array
|
1715
1718
|
items:
|
1716
1719
|
$ref: '#/components/schemas/CatalogLink'
|
1717
|
-
doi:
|
1718
|
-
$ref: '#/components/schemas/DOI'
|
1719
1720
|
sourceId:
|
1720
1721
|
$ref: '#/components/schemas/SourceId'
|
1721
1722
|
required:
|
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.61.
|
4
|
+
version: 0.61.3
|
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-07-
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|