cocina-models 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5009424cf5bd827da8766eb5e0ecee739931123bad8f233342280908b4dac436
4
- data.tar.gz: '084f2ed351b54e1c792df48116bb55e51fd3e9d27921167aa80f1768b595f9ac'
3
+ metadata.gz: 8389369c0fe410193de14e970c41f8caf0897529d9f137f12b402c69ae0dfe73
4
+ data.tar.gz: e1f670a2f769c2220d7c6e40afe5757fd269649594ed9e1743c715ccb501b24e
5
5
  SHA512:
6
- metadata.gz: 3097db674f1c8da72a88296cda09ca06fc8c1dc1cfecdfa5fcd0d94e4585f017433e77a3f8e38495371dfb4c3c1dec6955f5380de3e7e81b9318abe16a326972
7
- data.tar.gz: 571a4ca0471f75fe22d7f943f9c79f9db19a324f0aeef402d237aa8d5c00899ba4ff1407efe465b2470c3d9c382084058cb69d4093b3233470105fad2a1b530c
6
+ metadata.gz: a5e3eb27b903fd4050db36645f74427087a58dbfdaca9827400872977025fecb80797144a430b2b05ec06d426614fa7c81f9cc9bd4b17709bfb941f71b9ca403
7
+ data.tar.gz: a1b4edb10305328ee9dd232fd76ce2276f3a265b483be5e754f99f8723a15118c5da56ae25b10b5afa6672875ec25aaf2e54e078b037db8f1509c68006f162d2
data/README.md CHANGED
@@ -59,6 +59,7 @@ Once the above listed gems are updated all the following services that use cocin
59
59
  * sul-dlss/hydrus
60
60
  * sul-dlss/happy-heron
61
61
  * sul-dlss/infrastructure-integration-test
62
+ * sul-dlss/dor_indexing_app
62
63
 
63
64
  ## Using this gem
64
65
 
@@ -11,6 +11,8 @@ module Cocina
11
11
  attribute :role, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
12
12
  attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
13
13
  attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
14
+ # URL or other pointer to the location of the contributor information.
15
+ attribute :valueAt, Types::Strict::String.meta(omittable: true)
14
16
  end
15
17
  end
16
18
  end
@@ -18,6 +18,8 @@ module Cocina
18
18
  attribute :relatedResource, Types::Strict::Array.of(RelatedResource).meta(omittable: true)
19
19
  attribute :marcEncodedData, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
20
20
  attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
21
+ # URL or other pointer to the location of the resource description.
22
+ attribute :valueAt, Types::Strict::String.meta(omittable: true)
21
23
 
22
24
  def self.new(attributes = default_attributes, safe = false, validate = true, &block)
23
25
  Validator.validate(self, attributes.with_indifferent_access) if validate && name
@@ -25,6 +25,8 @@ module Cocina
25
25
  attribute :qualifier, Types::Strict::String.meta(omittable: true)
26
26
  attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
27
27
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
28
+ # URL or other pointer to the location of the value of the descriptive element.
29
+ attribute :valueAt, Types::Strict::String.meta(omittable: true)
28
30
  end
29
31
  end
30
32
  end
@@ -25,6 +25,8 @@ module Cocina
25
25
  attribute :qualifier, Types::Strict::String.meta(omittable: true)
26
26
  attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
27
27
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
28
+ # URL or other pointer to the location of the value of the descriptive element.
29
+ attribute :valueAt, Types::Strict::String.meta(omittable: true)
28
30
  attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).meta(omittable: true)
29
31
  end
30
32
  end
@@ -23,6 +23,8 @@ module Cocina
23
23
  attribute :uri, Types::Strict::String.meta(omittable: true)
24
24
  # Value of the descriptive element.
25
25
  attribute :value, Types::Strict::String.meta(omittable: true)
26
+ # URL or other pointer to the location of the language information.
27
+ attribute :valueAt, Types::Strict::String.meta(omittable: true)
26
28
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
27
29
  end
28
30
  end
@@ -25,6 +25,8 @@ module Cocina
25
25
  attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
26
26
  # The version of the related resource.
27
27
  attribute :version, Types::Strict::String.meta(omittable: true)
28
+ # URL or other pointer to the location of the related resource information.
29
+ attribute :valueAt, Types::Strict::String.meta(omittable: true)
28
30
  end
29
31
  end
30
32
  end
@@ -25,6 +25,8 @@ module Cocina
25
25
  attribute :qualifier, Types::Strict::String.meta(omittable: true)
26
26
  attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
27
27
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
28
+ # URL or other pointer to the location of the value of the descriptive element.
29
+ attribute :valueAt, Types::Strict::String.meta(omittable: true)
28
30
  attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).meta(omittable: true)
29
31
  end
30
32
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.45.0'
5
+ VERSION = '0.46.0'
6
6
  end
7
7
  end
data/openapi.yml CHANGED
@@ -277,6 +277,9 @@ components:
277
277
  type: array
278
278
  items:
279
279
  $ref: "#/components/schemas/DescriptiveValue"
280
+ valueAt:
281
+ description: URL or other pointer to the location of the contributor information.
282
+ type: string
280
283
  Description:
281
284
  type: object
282
285
  additionalProperties: false
@@ -348,6 +351,9 @@ components:
348
351
  $ref: "#/components/schemas/DescriptiveValue"
349
352
  adminMetadata:
350
353
  $ref: "#/components/schemas/DescriptiveAdminMetadata"
354
+ valueAt:
355
+ description: URL or other pointer to the location of the resource description.
356
+ type: string
351
357
  required:
352
358
  - title
353
359
  DescriptiveAccessMetadata:
@@ -480,6 +486,9 @@ components:
480
486
  $ref: "#/components/schemas/DescriptiveValue"
481
487
  valueLanguage:
482
488
  $ref: "#/components/schemas/DescriptiveValueLanguage"
489
+ valueAt:
490
+ description: URL or other pointer to the location of the value of the descriptive element.
491
+ type: string
483
492
  DescriptiveGeographicMetadata:
484
493
  description: Value model for mods geographic extension metadata
485
494
  type: object
@@ -957,6 +966,9 @@ components:
957
966
  value:
958
967
  description: Value of the descriptive element.
959
968
  type: string
969
+ valueAt:
970
+ description: URL or other pointer to the location of the language information.
971
+ type: string
960
972
  valueLanguage:
961
973
  # description: present for mapping to additional schemas in the future and for consistency but not otherwise used
962
974
  $ref: "#/components/schemas/DescriptiveValueLanguage"
@@ -1064,6 +1076,9 @@ components:
1064
1076
  version:
1065
1077
  description: The version of the related resource.
1066
1078
  type: string
1079
+ valueAt:
1080
+ description: URL or other pointer to the location of the related resource information.
1081
+ type: string
1067
1082
  ReleaseTag:
1068
1083
  description: A tag that indicates the item or collection should be released.
1069
1084
  type: object
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.45.0
4
+ version: 0.46.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-01-20 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport