cocina-models 0.85.0 → 0.86.0

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: f3e8bdc15327c32a4d90a32780285048b947d799816e30ce9c47feb328f7deaf
4
- data.tar.gz: d3a3b4e03410cad650555b2a085dd85e429029465d0ddf5e950a2c9231e27d73
3
+ metadata.gz: 15d31900b286fa2945fbbb10a957cdb71aadc1b7f3f4a0463a9ab04ac5d181d5
4
+ data.tar.gz: d1ee89eec766056327f8999bff0ae9c15d908b4d75338d98c6ab427c5a8c5ef8
5
5
  SHA512:
6
- metadata.gz: 18af72ea7b0ff5ce24800694b2a29d519d975c05e99d6124660fce6a78f66f274513914ee7763ef05d60bb1beac194aa6d77db610879f829b827dfccf88ef0cd
7
- data.tar.gz: cb1837cdb6f1b78640ef91c8efae91e0dbe9d872525bf87beb9a5b345e59fff3156f6c7d9fdb98e9e713964cfc98094ae373c897fffb2e4469faf6bde37e8a6b
6
+ metadata.gz: 7dafbf718bf85eecf60c896342e88b94381055b8b39f729eecfc3117d5e632c70763e4630d358e09e7477b235f3bc007321884fa0ac7930f663b9dbcc25ac112
7
+ data.tar.gz: b1c7a624ecdb052f1273b0aa1bc9267c046bab1b25b32e79ad4a9c7dc18da60b426cc334a1f2d36c64c9b45682589929343b9b6b872b02ba4b1538937bafd5b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocina-models (0.85.0)
4
+ cocina-models (0.86.0)
5
5
  activesupport
6
6
  deprecation
7
7
  dry-struct (~> 1.0)
@@ -14,6 +14,7 @@ module Cocina
14
14
  attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
15
15
  # URL or other pointer to the location of the contributor information.
16
16
  attribute? :valueAt, Types::Strict::String
17
+ attribute :parallelContributor, Types::Strict::Array.of(DescriptiveParallelContributor).default([].freeze)
17
18
  end
18
19
  end
19
20
  end
@@ -20,7 +20,7 @@ module Cocina
20
20
  attribute? :adminMetadata, DescriptiveAdminMetadata.optional
21
21
  # URL or other pointer to the location of the resource description.
22
22
  attribute? :valueAt, Types::Strict::String
23
- # Stanford persistent URL associated with the related resource.
23
+ # Stanford persistent URL associated with the related resource. Note this is http, not https.
24
24
  attribute :purl, Types::Strict::String
25
25
  end
26
26
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cocina
4
+ module Models
5
+ # DEPRECATED
6
+ # Value model for multiple representations of information about the same contributor (e.g. in different languages).
7
+ class DescriptiveParallelContributor < Struct
8
+ attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
9
+ # Entity type of the contributor (person, organization, etc.). See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md for valid types.
10
+ attribute? :type, Types::Strict::String
11
+ # Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).
12
+ attribute? :status, Types::Strict::String
13
+ attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
14
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
15
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
16
+ # URL or other pointer to the location of the contributor information.
17
+ attribute? :valueAt, Types::Strict::String
18
+ attribute? :valueLanguage, DescriptiveValueLanguage.optional
19
+ end
20
+ end
21
+ end
@@ -19,7 +19,7 @@ module Cocina
19
19
  attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
20
20
  attribute? :standard, Standard.optional
21
21
  attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
22
- # Stanford persistent URL associated with the related resource.
22
+ # Stanford persistent URL associated with the related resource. Note this is http, not https.
23
23
  attribute? :purl, Types::Strict::String
24
24
  attribute? :access, DescriptiveAccessMetadata.optional
25
25
  attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([].freeze)
@@ -71,7 +71,7 @@ module Cocina
71
71
  # Some part of the path are ignored for the purpose of matching.
72
72
  def clean_path(path)
73
73
  new_path = path.reject do |part|
74
- part.is_a?(Integer) || %i[parallelValue parallelEvent].include?(part)
74
+ part.is_a?(Integer) || %i[parallelValue parallelContributor parallelEvent].include?(part)
75
75
  end
76
76
  # This needs to happen after parallelValue is removed
77
77
  # to handle structuredValue > parallelValue > structuredValue
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.85.0'
5
+ VERSION = '0.86.0'
6
6
  end
7
7
  end
data/openapi.yml CHANGED
@@ -549,6 +549,11 @@ components:
549
549
  valueAt:
550
550
  description: URL or other pointer to the location of the contributor information.
551
551
  type: string
552
+ parallelContributor:
553
+ description: For multiple representations of information about the same contributor (e.g. in different languages).
554
+ type: array
555
+ items:
556
+ $ref: "#/components/schemas/DescriptiveParallelContributor"
552
557
  ControlledDigitalLendingAccess:
553
558
  type: object
554
559
  properties:
@@ -772,6 +777,44 @@ components:
772
777
  type: array
773
778
  items:
774
779
  $ref: "#/components/schemas/DescriptiveValue"
780
+ DescriptiveParallelContributor:
781
+ description: Value model for multiple representations of information about the same contributor (e.g. in different languages).
782
+ deprecated: true
783
+ type: object
784
+ additionalProperties: false
785
+ properties:
786
+ name:
787
+ description: Names associated with a contributor.
788
+ type: array
789
+ items:
790
+ $ref: "#/components/schemas/DescriptiveValue"
791
+ type:
792
+ description: Entity type of the contributor (person, organization, etc.). See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md for valid types.
793
+ type: string
794
+ status:
795
+ description: Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).
796
+ type: string
797
+ role:
798
+ description: Relationships of the contributor to the resource or to an event in its history.
799
+ type: array
800
+ items:
801
+ $ref: "#/components/schemas/DescriptiveValue"
802
+ identifier:
803
+ description: Identifiers and URIs associated with the contributor entity.
804
+ type: array
805
+ items:
806
+ $ref: "#/components/schemas/DescriptiveValue"
807
+ note:
808
+ description: Other information associated with the contributor.
809
+ type: array
810
+ items:
811
+ $ref: "#/components/schemas/DescriptiveValue"
812
+ valueAt:
813
+ description: URL or other pointer to the location of the contributor information.
814
+ type: string
815
+ valueLanguage:
816
+ # description: Language of the descriptive element value
817
+ $ref: "#/components/schemas/DescriptiveValueLanguage"
775
818
  DescriptiveParallelEvent:
776
819
  description: Value model for multiple representations of information about the same event (e.g. in different languages).
777
820
  type: object
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.85.0
4
+ version: 0.86.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -392,6 +392,7 @@ files:
392
392
  - lib/cocina/models/descriptive_basic_value.rb
393
393
  - lib/cocina/models/descriptive_geographic_metadata.rb
394
394
  - lib/cocina/models/descriptive_grouped_value.rb
395
+ - lib/cocina/models/descriptive_parallel_contributor.rb
395
396
  - lib/cocina/models/descriptive_parallel_event.rb
396
397
  - lib/cocina/models/descriptive_parallel_value.rb
397
398
  - lib/cocina/models/descriptive_structured_value.rb