cocina-models 0.115.0 → 0.116.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: 4d9e710c098333b0b95f15f1f624a365b7067e3ef638d48e7f04bcbc72f2b038
4
- data.tar.gz: 2bcb210b1f563ddc1916fe8a718f326184c75eb077f3c931372083ad1bf8c179
3
+ metadata.gz: cfe265fcb4aa056742a278f0f49cdaec73de7cab666ef011217c98918441d2d7
4
+ data.tar.gz: 407191578301b2dabb6db984f3e039a76a3a81e6d8bc305df705526154bcd5ca
5
5
  SHA512:
6
- metadata.gz: ec2b6a2e5a92c4cc712e09e2edc23a6975c37eb71f13133e1400d21d999880f1a79a8962624bdd339cffaa08e88a0fffd4395c716b1ed49360c5045a43edf666
7
- data.tar.gz: 69f0f8869d2536477765b033c39387ef4693f648e50747fa49e15d1cb1cd27be7bc830dec49bf5beb06a1a04472ddf78750201c60c31d002f47006ed72c99751
6
+ metadata.gz: 3517ded3340511228c488a66a19885bce82c20dfbddcea85ab43dcceb8a92b17accb2124bb87381f671bbbaa3955089d6e8e47f499677b77021acf33108fc2a6
7
+ data.tar.gz: 28598c41ae1c8ffef3e698c462983e05438ef6bc0f8f1f7ed27da03c5f09a8c10a99896e51568793f8578f553ee5907052737144769226097384dc2439fb14da
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocina-models (0.115.0)
4
+ cocina-models (0.116.0)
5
5
  activesupport
6
6
  deprecation
7
7
  dry-struct (~> 1.0)
@@ -86,7 +86,7 @@ GEM
86
86
  prism (>= 1.3.0)
87
87
  rdoc (>= 4.0.0)
88
88
  reline (>= 0.4.2)
89
- json (2.19.1)
89
+ json (2.19.2)
90
90
  json-schema (6.2.0)
91
91
  addressable (~> 2.8)
92
92
  bigdecimal (>= 3.1, < 5)
@@ -219,7 +219,7 @@ CHECKSUMS
219
219
  attr_extras (7.1.0) sha256=d96fc9a9dd5d85ba2d37762440a816f840093959ae26bb90da994c2d9f1fc827
220
220
  base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
221
221
  bigdecimal (4.0.1) sha256=8b07d3d065a9f921c80ceaea7c9d4ae596697295b584c296fe599dd0ad01c4a7
222
- cocina-models (0.115.0)
222
+ cocina-models (0.116.0)
223
223
  concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab
224
224
  connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
225
225
  date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
@@ -241,7 +241,7 @@ CHECKSUMS
241
241
  ice_nine (0.11.2) sha256=5d506a7d2723d5592dc121b9928e4931742730131f22a1a37649df1c1e2e63db
242
242
  io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
243
243
  irb (1.17.0) sha256=168c4ddb93d8a361a045c41d92b2952c7a118fa73f23fe14e55609eb7a863aae
244
- json (2.19.1) sha256=dd94fdc59e48bff85913829a32350b3148156bc4fd2a95a2568a78b11344082d
244
+ json (2.19.2) sha256=e7e1bd318b2c37c4ceee2444841c86539bc462e81f40d134cf97826cb14e83cf
245
245
  json-schema (6.2.0) sha256=e8bff46ed845a22c1ab2bd0d7eccf831c01fe23bb3920caa4c74db4306813666
246
246
  json_schemer (2.5.0) sha256=2f01fb4cce721a4e08dd068fc2030cffd0702a7f333f1ea2be6e8991f00ae396
247
247
  jsonpath (1.1.5) sha256=29f70467193a2dc93ab864ec3d3326d54267961acc623f487340eb9c34931dbe
@@ -23,6 +23,9 @@ module Cocina
23
23
  attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
24
24
  # URL or other pointer to the location of the contributor information.
25
25
  attribute? :valueAt, Types::Strict::String
26
+ # For multiple representations of information about the same contributor (e.g. in different
27
+ # languages).
28
+ attribute :parallelContributor, Types::Strict::Array.of(DescriptiveParallelContributor).default([].freeze)
26
29
  end
27
30
  end
28
31
  end
@@ -0,0 +1,29 @@
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
7
+ # (e.g. in different languages).
8
+ class DescriptiveParallelContributor < Struct
9
+ # Names associated with a contributor.
10
+ attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
11
+ # Entity type of the contributor (person, organization, etc.). See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md
12
+ # for valid types.
13
+ attribute? :type, Types::Strict::String
14
+ # Status of the contributor relative to other parallel contributors (e.g. the primary
15
+ # author among a group of contributors).
16
+ attribute? :status, Types::Strict::String
17
+ # Relationships of the contributor to the resource or to an event in its history.
18
+ attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
19
+ # Identifiers and URIs associated with the contributor entity.
20
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
21
+ # Other information associated with the contributor.
22
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
23
+ # URL or other pointer to the location of the contributor information.
24
+ attribute? :valueAt, Types::Strict::String
25
+ # Language of the descriptive element value
26
+ attribute? :valueLanguage, DescriptiveValueLanguage.optional
27
+ end
28
+ end
29
+ end
@@ -73,7 +73,7 @@ module Cocina
73
73
  # Some part of the path are ignored for the purpose of matching.
74
74
  def clean_path(path)
75
75
  new_path = path.reject do |part|
76
- part.is_a?(Integer) || %i[parallelValue parallelEvent].include?(part.to_sym)
76
+ part.is_a?(Integer) || %i[parallelValue parallelContributor parallelEvent].include?(part.to_sym)
77
77
  end.map(&:to_sym)
78
78
  # This needs to happen after parallelValue is removed
79
79
  # to handle structuredValue > parallelValue > structuredValue
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.115.0'
5
+ VERSION = '0.116.0'
6
6
  end
7
7
  end
data/schema.json CHANGED
@@ -444,6 +444,13 @@
444
444
  "valueAt": {
445
445
  "description": "URL or other pointer to the location of the contributor information.",
446
446
  "type": "string"
447
+ },
448
+ "parallelContributor": {
449
+ "description": "For multiple representations of information about the same contributor (e.g. in different languages).",
450
+ "type": "array",
451
+ "items": {
452
+ "$ref": "#/$defs/DescriptiveParallelContributor"
453
+ }
447
454
  }
448
455
  }
449
456
  },
@@ -896,6 +903,56 @@
896
903
  }
897
904
  }
898
905
  },
906
+ "DescriptiveParallelContributor": {
907
+ "description": "Value model for multiple representations of information about the same contributor (e.g. in different languages).",
908
+ "deprecated": true,
909
+ "type": "object",
910
+ "properties": {
911
+ "name": {
912
+ "description": "Names associated with a contributor.",
913
+ "type": "array",
914
+ "items": {
915
+ "$ref": "#/$defs/DescriptiveValue"
916
+ }
917
+ },
918
+ "type": {
919
+ "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.",
920
+ "type": "string"
921
+ },
922
+ "status": {
923
+ "description": "Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).",
924
+ "type": "string"
925
+ },
926
+ "role": {
927
+ "description": "Relationships of the contributor to the resource or to an event in its history.",
928
+ "type": "array",
929
+ "items": {
930
+ "$ref": "#/$defs/DescriptiveValue"
931
+ }
932
+ },
933
+ "identifier": {
934
+ "description": "Identifiers and URIs associated with the contributor entity.",
935
+ "type": "array",
936
+ "items": {
937
+ "$ref": "#/$defs/DescriptiveValue"
938
+ }
939
+ },
940
+ "note": {
941
+ "description": "Other information associated with the contributor.",
942
+ "type": "array",
943
+ "items": {
944
+ "$ref": "#/$defs/DescriptiveValue"
945
+ }
946
+ },
947
+ "valueAt": {
948
+ "description": "URL or other pointer to the location of the contributor information.",
949
+ "type": "string"
950
+ },
951
+ "valueLanguage": {
952
+ "$ref": "#/$defs/DescriptiveValueLanguage"
953
+ }
954
+ }
955
+ },
899
956
  "DescriptiveParallelEvent": {
900
957
  "description": "Value model for multiple representations of information about the same event (e.g. in different languages).",
901
958
  "type": "object",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.115.0
4
+ version: 0.116.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-03-19 00:00:00.000000000 Z
10
+ date: 2026-03-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -372,6 +372,7 @@ files:
372
372
  - lib/cocina/models/descriptive_basic_value.rb
373
373
  - lib/cocina/models/descriptive_geographic_metadata.rb
374
374
  - lib/cocina/models/descriptive_grouped_value.rb
375
+ - lib/cocina/models/descriptive_parallel_contributor.rb
375
376
  - lib/cocina/models/descriptive_parallel_event.rb
376
377
  - lib/cocina/models/descriptive_parallel_value.rb
377
378
  - lib/cocina/models/descriptive_structured_value.rb