cocina-models 0.34.0 → 0.34.1
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: 47e0e5c391575050da0d7ec099da98ced48dc06f5d7ba2a2df5f53f3e687e04d
|
4
|
+
data.tar.gz: cc63b9adc18d069b325ddedf8c019529fa10655168a34e12aa0114220793d372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f94eb4be540092d833435fec055b48a43d8c3d8b67ffa746dca94607810b23bce102cb0d20fe6eb6097ba721f83be403b2498c881b2dbf448f2c0f2341a5f4
|
7
|
+
data.tar.gz: cbae9dff9f1f89bfc9e7557086f63a3dae4941eb4785ba29e2f006fde18a6bdc51a4d747ea74af7d0211e19e20c1f53f2d949d1b233e9f394b6abb6aaf1fae7f
|
@@ -17,10 +17,13 @@ module Cocina
|
|
17
17
|
def generate
|
18
18
|
clean_output
|
19
19
|
|
20
|
-
|
20
|
+
# rubocop:disable Style/HashEachMethods
|
21
|
+
# This is not a Hash
|
22
|
+
schemas.keys.each do |schema_name|
|
21
23
|
schema = schema_for(schema_name)
|
22
24
|
generate_for(schema) if schema
|
23
25
|
end
|
26
|
+
# rubocop:enable Style/HashEachMethods
|
24
27
|
|
25
28
|
generate_vocab
|
26
29
|
end
|
@@ -3,6 +3,8 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class Identification < 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.
|
7
|
+
|
6
8
|
# example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
|
7
9
|
attribute :sourceId, Types::Strict::String.meta(omittable: true)
|
8
10
|
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
@@ -25,7 +25,7 @@ module Cocina
|
|
25
25
|
attribute :type, Types::Strict::String.enum(*RequestDRO::TYPES)
|
26
26
|
attribute :label, Types::Strict::String
|
27
27
|
attribute :version, Types::Strict::Integer
|
28
|
-
attribute
|
28
|
+
attribute :access, DROAccess.optional.meta(omittable: true)
|
29
29
|
attribute(:administrative, Administrative.default { Administrative.new })
|
30
30
|
attribute :description, Description.optional.meta(omittable: true)
|
31
31
|
attribute(:identification, RequestIdentification.default { RequestIdentification.new })
|
@@ -3,6 +3,8 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class RequestIdentification < 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.
|
7
|
+
|
6
8
|
# example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
|
7
9
|
attribute :sourceId, Types::Strict::String
|
8
10
|
attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
|
data/openapi.yml
CHANGED
@@ -716,11 +716,11 @@ components:
|
|
716
716
|
sourceId:
|
717
717
|
type: string
|
718
718
|
description: >
|
719
|
-
Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
|
720
|
-
historically and currently, are representations of objects that are also represented in other systems.
|
721
|
-
For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
|
722
|
-
in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
|
723
|
-
and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
|
719
|
+
Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
|
720
|
+
historically and currently, are representations of objects that are also represented in other systems.
|
721
|
+
For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
|
722
|
+
in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
|
723
|
+
and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
|
724
724
|
look for the original item if you're looking at its SDR representation.
|
725
725
|
example: 'sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026'
|
726
726
|
catalogLinks:
|
@@ -879,7 +879,6 @@ components:
|
|
879
879
|
geographic:
|
880
880
|
$ref: '#/components/schemas/Geographic'
|
881
881
|
required:
|
882
|
-
- access
|
883
882
|
- administrative
|
884
883
|
- identification
|
885
884
|
- label
|
@@ -978,11 +977,11 @@ components:
|
|
978
977
|
sourceId:
|
979
978
|
type: string
|
980
979
|
description: >
|
981
|
-
Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
|
982
|
-
historically and currently, are representations of objects that are also represented in other systems.
|
983
|
-
For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
|
984
|
-
in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
|
985
|
-
and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
|
980
|
+
Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
|
981
|
+
historically and currently, are representations of objects that are also represented in other systems.
|
982
|
+
For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
|
983
|
+
in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
|
984
|
+
and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
|
986
985
|
look for the original item if you're looking at its SDR representation.
|
987
986
|
example: 'sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026'
|
988
987
|
catalogLinks:
|