cocina-models 0.41.0 → 0.42.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 +3 -0
- data/lib/cocina/models/classification.rb +11 -0
- data/lib/cocina/models/description.rb +2 -0
- data/lib/cocina/models/descriptive_geographic_metadata.rb +10 -0
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +35 -2
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13cec8b638e93f9234d11fa1012dba6fb280a983a66be8cf7ff585bf7cf8433c
|
4
|
+
data.tar.gz: 07f01dcdc668b3295839280199346edbed52871f636c95d41ddd582745e1c866
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a26feb1a275ac624356732cbf4f5bd01cc43a80599818d2012f74a838006aa6b4d67a40a531a6a01c74013b9200a36ecb36d003eb9e5d6d0d959837806112609
|
7
|
+
data.tar.gz: a9c315698eccb96fa6e7694ed9f40b2925994cacb856f0f89ec26f6d1179f5cfd606ccfc4938d3db8bc0bb249e3792df4601c9cf17704e0dc72277cff7ec7291
|
data/README.md
CHANGED
@@ -52,6 +52,9 @@ Once the above listed gems are updated all the following services that use cocin
|
|
52
52
|
* sul-dlss/common-accessioning
|
53
53
|
* sul-dlss/argo
|
54
54
|
* sul-dlss/pre-assembly
|
55
|
+
* sul-dlss/hydrus
|
56
|
+
* sul-dlss/happy-heron
|
57
|
+
* sul-dlss/infrastructure-integration-test
|
55
58
|
|
56
59
|
## Using this gem
|
57
60
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Cocina
|
4
|
+
module Models
|
5
|
+
class Classification < Struct
|
6
|
+
attribute :authority, Types::Strict::String.meta(omittable: true)
|
7
|
+
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
8
|
+
attribute :edition, Types::Strict::String.meta(omittable: true)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -7,6 +7,7 @@ module Cocina
|
|
7
7
|
attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
|
8
8
|
attribute :event, Types::Strict::Array.of(Event).meta(omittable: true)
|
9
9
|
attribute :form, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
10
|
+
attribute :geographic, Types::Strict::Array.of(DescriptiveGeographicMetadata).meta(omittable: true)
|
10
11
|
attribute :language, Types::Strict::Array.of(Language).meta(omittable: true)
|
11
12
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
12
13
|
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
@@ -17,6 +18,7 @@ module Cocina
|
|
17
18
|
attribute :relatedResource, Types::Strict::Array.of(RelatedResource).meta(omittable: true)
|
18
19
|
attribute :marcEncodedData, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
19
20
|
attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
|
21
|
+
attribute :classification, Types::Strict::Array.of(Classification).meta(omittable: true)
|
20
22
|
|
21
23
|
def self.new(attributes = default_attributes, safe = false, validate = true, &block)
|
22
24
|
Validator.validate(self, attributes.with_indifferent_access) if validate && name
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Cocina
|
4
|
+
module Models
|
5
|
+
class DescriptiveGeographicMetadata < Struct
|
6
|
+
attribute :form, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
|
+
attribute :subject, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
data/openapi.yml
CHANGED
@@ -198,6 +198,16 @@ components:
|
|
198
198
|
description: Record identifier that is unique within the context of the linked record's catalog.
|
199
199
|
type: string
|
200
200
|
example: 11403803
|
201
|
+
Classification:
|
202
|
+
type: object
|
203
|
+
additionalProperties: false
|
204
|
+
properties:
|
205
|
+
authority:
|
206
|
+
type: string
|
207
|
+
displayLabel:
|
208
|
+
type: string
|
209
|
+
edition:
|
210
|
+
type: string
|
201
211
|
Collection:
|
202
212
|
description: A group of Digital Repository Objects that indicate some type of conceptual grouping within the domain that is worth reusing across the system.
|
203
213
|
type: object
|
@@ -261,7 +271,7 @@ components:
|
|
261
271
|
description: Status of the contributor relative to other parallel contributors
|
262
272
|
(e.g. the primary author among a group of contributors).
|
263
273
|
type: string
|
264
|
-
# type: integer
|
274
|
+
# type: integer (uncomment when issue #154 resolved)
|
265
275
|
role:
|
266
276
|
description: Relationships of the contributor to the resource or to an event
|
267
277
|
in its history.
|
@@ -288,6 +298,10 @@ components:
|
|
288
298
|
minItems: 1
|
289
299
|
items:
|
290
300
|
$ref: "#/components/schemas/Title"
|
301
|
+
classification:
|
302
|
+
type: array
|
303
|
+
items:
|
304
|
+
$ref: "#/components/schemas/Classification"
|
291
305
|
contributor:
|
292
306
|
description: Agents contributing in some way to the creation and history of the
|
293
307
|
resource.
|
@@ -305,6 +319,11 @@ components:
|
|
305
319
|
type: array
|
306
320
|
items:
|
307
321
|
$ref: "#/components/schemas/DescriptiveValue"
|
322
|
+
geographic:
|
323
|
+
description: Geographic description for items with coordinates or bounding boxes.
|
324
|
+
type: array
|
325
|
+
items:
|
326
|
+
$ref: "#/components/schemas/DescriptiveGeographicMetadata"
|
308
327
|
language:
|
309
328
|
description: Languages, scripts, symbolic systems, and notations used in all or
|
310
329
|
part of a resource.
|
@@ -470,6 +489,20 @@ components:
|
|
470
489
|
$ref: "#/components/schemas/DescriptiveValue"
|
471
490
|
valueLanguage:
|
472
491
|
$ref: "#/components/schemas/DescriptiveValueLanguage"
|
492
|
+
DescriptiveGeographicMetadata:
|
493
|
+
description: Value model for mods geographic extension metadata
|
494
|
+
type: object
|
495
|
+
additionalProperties: false
|
496
|
+
properties:
|
497
|
+
form:
|
498
|
+
type: array
|
499
|
+
items:
|
500
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
501
|
+
subject:
|
502
|
+
description: Terms associated with the intellectual content of the related resource.
|
503
|
+
type: array
|
504
|
+
items:
|
505
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
473
506
|
DescriptiveParallelValue:
|
474
507
|
description: Value model for multiple representations of the same information (e.g. in different languages).
|
475
508
|
type: object
|
@@ -976,7 +1009,7 @@ components:
|
|
976
1009
|
status:
|
977
1010
|
description: Status of the related resource relative to other related resources.
|
978
1011
|
type: string
|
979
|
-
# type: integer
|
1012
|
+
# type: integer (uncomment when issue #154 resolved)
|
980
1013
|
displayLabel:
|
981
1014
|
description: The preferred display label to use for the related resource in access systems.
|
982
1015
|
type: string
|
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.42.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -260,6 +260,7 @@ files:
|
|
260
260
|
- lib/cocina/models/applies_to.rb
|
261
261
|
- lib/cocina/models/catalog_link.rb
|
262
262
|
- lib/cocina/models/checkable.rb
|
263
|
+
- lib/cocina/models/classification.rb
|
263
264
|
- lib/cocina/models/collection.rb
|
264
265
|
- lib/cocina/models/collection_identification.rb
|
265
266
|
- lib/cocina/models/contributor.rb
|
@@ -267,6 +268,7 @@ files:
|
|
267
268
|
- lib/cocina/models/descriptive_access_metadata.rb
|
268
269
|
- lib/cocina/models/descriptive_admin_metadata.rb
|
269
270
|
- lib/cocina/models/descriptive_basic_value.rb
|
271
|
+
- lib/cocina/models/descriptive_geographic_metadata.rb
|
270
272
|
- lib/cocina/models/descriptive_parallel_value.rb
|
271
273
|
- lib/cocina/models/descriptive_structured_value.rb
|
272
274
|
- lib/cocina/models/descriptive_value.rb
|
@@ -309,7 +311,7 @@ files:
|
|
309
311
|
homepage: https://github.com/sul-dlss/cocina-models
|
310
312
|
licenses: []
|
311
313
|
metadata: {}
|
312
|
-
post_install_message:
|
314
|
+
post_install_message:
|
313
315
|
rdoc_options: []
|
314
316
|
require_paths:
|
315
317
|
- lib
|
@@ -324,8 +326,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
326
|
- !ruby/object:Gem::Version
|
325
327
|
version: '0'
|
326
328
|
requirements: []
|
327
|
-
rubygems_version: 3.
|
328
|
-
signing_key:
|
329
|
+
rubygems_version: 3.1.2
|
330
|
+
signing_key:
|
329
331
|
specification_version: 4
|
330
332
|
summary: Data models for the SDR
|
331
333
|
test_files: []
|