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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d708001422da936708202eecd16f2d770f39051f47147fd9f299fa56454d732f
4
- data.tar.gz: c947b43256c57dc68c488acf4ed10c61717a6bf77bd4c29e545dc2a827f937c9
3
+ metadata.gz: 4303e7447ac07d23ba4075ed7a9ff66a098cf95f2b397fffee3cdd1a6f86a9b1
4
+ data.tar.gz: 5535dc06f87a9fd75490c71eae76a5db211a5a055e84956a2775c14703a9033e
5
5
  SHA512:
6
- metadata.gz: 92f0b298b3e473e5cbc8668de4cda29133190dd6993d8dcca639c76d36f2f127b325e3c56a5e8fdfd31bfa1b8c68202b55ed4c1986d1779b7b9930d145e359c7
7
- data.tar.gz: 8d71f24d4ce20e8409152702de34dc189dc9834718a1e178749770c735a7f11e67eda748868242be6cb498f7e3032141987342604ddd3e1ad11859a994852c28
6
+ metadata.gz: ccb5589caceaea881e141bb1c152fffa638b23c095a38cf8d3c767b063cc963727f91dc6f55dbf501f1df5e05e41f6ee501e71ea823bd7858fbbfedc85449e56
7
+ data.tar.gz: 7352328c35d6c5bb1e479545712b5d5d5355cfa73e06fe6961b7fdf3e47b620641cf0dc265b51c37915758117d86eee8ddf9fae42b7aeaf1287ae694e9a550c1
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  DOI = Types::String.constrained(
6
- format: %r{^10\.25740/[b-df-hjkmnp-tv-z]{2}[0-9]{3}[b-df-hjkmnp-tv-z]{2}[0-9]{4}$}i
6
+ format: %r{^10\.(25740|80343)/[b-df-hjkmnp-tv-z]{2}[0-9]{3}[b-df-hjkmnp-tv-z]{2}[0-9]{4}$}i
7
7
  )
8
8
  end
9
9
  end
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.61.2'
5
+ VERSION = '0.61.3'
6
6
  end
7
7
  end
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
- pattern: '^10\.25740\/[b-df-hjkmnp-tv-z]{2}[0-9]{3}[b-df-hjkmnp-tv-z]{2}[0-9]{4}$'
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
- description: Same as a Identification, but requires a sourceId.
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.2
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-09 00:00:00.000000000 Z
11
+ date: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport