cocina-models 0.73.2 → 0.73.3

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: 9d9daf76e1c730f4d90feb50aef11b7c07311c3de072e3aa3fda2a333bcaa9e3
4
- data.tar.gz: 4146a2ea5576342e551174c8a7bb6105dab17183891deb51ffdae8078c4e9376
3
+ metadata.gz: 57046023e6e82e42ba14eeaf854834fb7c58f1393f44cd8a45aef3830e2725fa
4
+ data.tar.gz: 5f756bf134c45dc0dd3bc0d1f27b7cb8bb1d1c69cb614160d8ee766ee442044e
5
5
  SHA512:
6
- metadata.gz: 67afdadc24eb7b51c372ce92e1acb421adb912049c6e602da6c5e7a0b681e49169e3c1bff00fed9fa819bc2a90a5c924c0a99f3a168e4bf5636be4623f75f389
7
- data.tar.gz: e6aae26f2c653b75a604fdda11ad6db9b41014e199f0d6cdc6fc6139544fc881a372830553e95250a0b96692854a32b829d3abd6ba54fe809304e6ae8e1d049e
6
+ metadata.gz: 5516df72a6cbfd795b460e19e8f3b54db34aadbf35a6b3c3da400da8751657782e37babadcf4c06f0ee02158ed0e4b82998f969a5a3b0d2b4b1f729683ee38fc
7
+ data.tar.gz: 50bf4417aaaa1e5190fe239c68f83b75666295d914ec6c829ef3f703586a47b22046da53effa40b44daeb03d123358d3ed6e7da4dbbcd68f74b4e7c22402c475
@@ -148,6 +148,7 @@ event.date:
148
148
  description: The addition of a resource to a set of other resources.
149
149
  - value: copyright
150
150
  description: The activity by which a resource may be considered subject to copyright law.
151
+ - value: coverage
151
152
  - value: creation
152
153
  description: The coming into being of a resource.
153
154
  - value: degree conferral
@@ -213,45 +214,6 @@ form:
213
214
  - value: resource type
214
215
  - value: technique
215
216
  - value: type
216
- form.note:
217
- - value: additions
218
- - value: arrangement
219
- - value: binding
220
- - value: codicology
221
- - value: collation
222
- - value: colophon
223
- - value: condition
224
- - value: decoNote
225
- status: deprecated
226
- use: decoration
227
- - value: decoration
228
- - value: dimensions
229
- - value: explicit
230
- - value: foliation
231
- - value: genre type
232
- - value: hand note
233
- - value: handNote
234
- status: deprecated
235
- use: hand note
236
- - value: incipit
237
- - value: instrumentation
238
- - value: layout
239
- - value: material
240
- - value: medium of performance
241
- - value: provenance
242
- - value: reassembly
243
- - value: reproduction
244
- - value: research
245
- - value: rubric
246
- - value: secfol
247
- status: deprecated
248
- use: second folio
249
- - value: second folio
250
- - value: secondFolio
251
- status: deprecated
252
- use: second folio
253
- - value: unit
254
- - value: writing
255
217
  form.structuredValue:
256
218
  - value: type
257
219
  - value: subtype
@@ -281,6 +243,8 @@ identifier:
281
243
  code: arxiv
282
244
  - value: case identifier
283
245
  - value: case number
246
+ - value: CSt
247
+ - value: CStRLIN
284
248
  - value: document number
285
249
  - value: DOI
286
250
  code: doi
@@ -314,6 +278,7 @@ identifier:
314
278
  - value: music publisher
315
279
  code: music-publisher
316
280
  - value: OCLC
281
+ - value: OCoLC
317
282
  - value: PMCID
318
283
  - value: PMID
319
284
  - value: record id
@@ -326,6 +291,7 @@ identifier:
326
291
  use: Source ID
327
292
  - value: stock number
328
293
  code: stock-number
294
+ - value: SUL catalog key
329
295
  - value: Swets (Netherlands) ID
330
296
  code: swets
331
297
  - value: UPC
@@ -351,8 +317,10 @@ note:
351
317
  - value: additions
352
318
  - value: admin
353
319
  - value: affiliation
320
+ - value: arrangement
354
321
  - value: bibliographic
355
322
  - value: bibliography
323
+ - value: binding
356
324
  - value: biographical/historical
357
325
  - value: biographical/historical note
358
326
  status: deprecated
@@ -360,6 +328,10 @@ note:
360
328
  - value: biography
361
329
  - value: boat note
362
330
  - value: citation/reference
331
+ - value: codicology
332
+ - value: collation
333
+ - value: colophon
334
+ - value: condition
363
335
  - value: contact
364
336
  - value: content
365
337
  - value: content note
@@ -373,19 +345,34 @@ note:
373
345
  - value: creation/production credits
374
346
  - value: date
375
347
  - value: date/sequential designation
348
+ - value: decoNote
349
+ status: deprecated
350
+ use: decoration
351
+ - value: decoration
376
352
  - value: description
377
353
  - value: digitization
354
+ - value: dimensions
378
355
  - value: duration
379
356
  - value: event
380
357
  - value: exhibitions
358
+ - value: explicit
359
+ - value: foliation
381
360
  - value: funding
382
361
  - value: general
383
362
  - value: genre type
384
363
  - value: geography
364
+ - value: hand note
365
+ - value: handNote
366
+ status: deprecated
367
+ use: hand note
385
368
  - value: host
369
+ - value: incipit
370
+ - value: instrumentation
386
371
  - value: language
372
+ - value: layout
387
373
  - value: local
388
374
  - value: location
375
+ - value: material
389
376
  - value: medium of performance
390
377
  - value: names
391
378
  - value: numbering
@@ -403,11 +390,20 @@ note:
403
390
  - value: reassembly
404
391
  - value: reference
405
392
  - value: references
393
+ - value: reformatting
406
394
  - value: related publication
407
395
  - value: reproduction
408
396
  - value: research
409
397
  - value: restriction
398
+ - value: rubric
410
399
  - value: scope and content
400
+ - value: secfol
401
+ status: deprecated
402
+ use: second folio
403
+ - value: second folio
404
+ - value: secondFolio
405
+ status: deprecated
406
+ use: second folio
411
407
  - value: source characteristics
412
408
  - value: source identifier
413
409
  - value: statement of responsibility
@@ -420,6 +416,7 @@ note:
420
416
  - value: thesis
421
417
  - value: transcript
422
418
  - value: translation
419
+ - value: unit
423
420
  - value: update
424
421
  - value: use and reproduction
425
422
  - value: venue
@@ -484,17 +481,22 @@ subject.note:
484
481
  - value: role
485
482
  subject.structuredValue:
486
483
  - value: activity dates
484
+ - value: area
487
485
  - value: city
486
+ - value: city section
488
487
  - value: conference
489
488
  - value: continent
490
489
  - value: country
490
+ - value: county
491
491
  - value: end
492
492
  - value: east
493
493
  - value: event
494
+ - value: extraterrestrial area
494
495
  - value: display
495
496
  - value: family
496
497
  - value: forename
497
498
  - value: genre
499
+ - value: island
498
500
  - value: latitude
499
501
  - value: life dates
500
502
  - value: longitude
@@ -505,17 +507,22 @@ subject.structuredValue:
505
507
  - value: ordinal
506
508
  - value: organization
507
509
  - value: part name
510
+ - value: part number
508
511
  - value: person
509
512
  - value: place
513
+ - value: region
510
514
  - value: south
511
515
  - value: start
516
+ - value: state
512
517
  - value: surname
513
518
  - value: term of address
519
+ - value: territory
514
520
  - value: time
515
521
  - value: title
516
522
  - value: topic
517
523
  - value: west
518
524
  subject.structuredValue.note:
525
+ - value: affiliation
519
526
  - value: role
520
527
  description: The relation of the subject entity to the resource.
521
528
  subject.groupedValue:
@@ -105,6 +105,7 @@ _Path: event.date_
105
105
  * capture: A record of the resource in a fixed form at a specific time.
106
106
  * collection: The addition of a resource to a set of other resources.
107
107
  * copyright: The activity by which a resource may be considered subject to copyright law.
108
+ * coverage
108
109
  * creation: The coming into being of a resource.
109
110
  * degree conferral: The institutional approval of a thesis or other resource leading to an academic degree.
110
111
  * developed: The creation of a print from a photographic negative or other source medium.
@@ -153,39 +154,6 @@ _Path: form_
153
154
  * technique
154
155
  * type
155
156
 
156
- ## Form note types
157
- _Path: form.note_
158
- * additions
159
- * arrangement
160
- * binding
161
- * codicology
162
- * collation
163
- * colophon
164
- * condition
165
- * decoNote
166
- * decoration
167
- * dimensions
168
- * explicit
169
- * foliation
170
- * genre type
171
- * hand note
172
- * handNote
173
- * incipit
174
- * instrumentation
175
- * layout
176
- * material
177
- * medium of performance
178
- * provenance
179
- * reassembly
180
- * reproduction
181
- * research
182
- * rubric
183
- * secfol
184
- * second folio
185
- * secondFolio
186
- * unit
187
- * writing
188
-
189
157
  ## Form part types for structured value
190
158
  _Path: form.structuredValue_
191
159
  * type
@@ -221,6 +189,8 @@ _Path: identifier_
221
189
  * arXiv
222
190
  * case identifier
223
191
  * case number
192
+ * CSt
193
+ * CStRLIN
224
194
  * document number
225
195
  * DOI
226
196
  * druid
@@ -240,6 +210,7 @@ _Path: identifier_
240
210
  * music plate
241
211
  * music publisher
242
212
  * OCLC
213
+ * OCoLC
243
214
  * PMCID
244
215
  * PMID
245
216
  * record id
@@ -249,6 +220,7 @@ _Path: identifier_
249
220
  * Source ID
250
221
  * sourceID
251
222
  * stock number
223
+ * SUL catalog key
252
224
  * Swets (Netherlands) ID
253
225
  * UPC
254
226
  * URI
@@ -268,13 +240,19 @@ _Path: note_
268
240
  * additions
269
241
  * admin
270
242
  * affiliation
243
+ * arrangement
271
244
  * bibliographic
272
245
  * bibliography
246
+ * binding
273
247
  * biographical/historical
274
248
  * biographical/historical note
275
249
  * biography
276
250
  * boat note
277
251
  * citation/reference
252
+ * codicology
253
+ * collation
254
+ * colophon
255
+ * condition
278
256
  * contact
279
257
  * content
280
258
  * content note
@@ -284,19 +262,30 @@ _Path: note_
284
262
  * creation/production credits
285
263
  * date
286
264
  * date/sequential designation
265
+ * decoNote
266
+ * decoration
287
267
  * description
288
268
  * digitization
269
+ * dimensions
289
270
  * duration
290
271
  * event
291
272
  * exhibitions
273
+ * explicit
274
+ * foliation
292
275
  * funding
293
276
  * general
294
277
  * genre type
295
278
  * geography
279
+ * hand note
280
+ * handNote
296
281
  * host
282
+ * incipit
283
+ * instrumentation
297
284
  * language
285
+ * layout
298
286
  * local
299
287
  * location
288
+ * material
300
289
  * medium of performance
301
290
  * names
302
291
  * numbering
@@ -314,11 +303,16 @@ _Path: note_
314
303
  * reassembly
315
304
  * reference
316
305
  * references
306
+ * reformatting
317
307
  * related publication
318
308
  * reproduction
319
309
  * research
320
310
  * restriction
311
+ * rubric
321
312
  * scope and content
313
+ * secfol
314
+ * second folio
315
+ * secondFolio
322
316
  * source characteristics
323
317
  * source identifier
324
318
  * statement of responsibility
@@ -331,6 +325,7 @@ _Path: note_
331
325
  * thesis
332
326
  * transcript
333
327
  * translation
328
+ * unit
334
329
  * update
335
330
  * use and reproduction
336
331
  * venue
@@ -392,17 +387,22 @@ _Path: subject.note_
392
387
  ## Subject part types for structured value
393
388
  _Path: subject.structuredValue_
394
389
  * activity dates
390
+ * area
395
391
  * city
392
+ * city section
396
393
  * conference
397
394
  * continent
398
395
  * country
396
+ * county
399
397
  * end
400
398
  * east
401
399
  * event
400
+ * extraterrestrial area
402
401
  * display
403
402
  * family
404
403
  * forename
405
404
  * genre
405
+ * island
406
406
  * latitude
407
407
  * life dates
408
408
  * longitude
@@ -413,12 +413,16 @@ _Path: subject.structuredValue_
413
413
  * ordinal
414
414
  * organization
415
415
  * part name
416
+ * part number
416
417
  * person
417
418
  * place
419
+ * region
418
420
  * south
419
421
  * start
422
+ * state
420
423
  * surname
421
424
  * term of address
425
+ * territory
422
426
  * time
423
427
  * title
424
428
  * topic
@@ -426,6 +430,7 @@ _Path: subject.structuredValue_
426
430
 
427
431
  ### Subject note types
428
432
  _Path: subject.structuredValue.note_
433
+ * affiliation
429
434
  * role: The relation of the subject entity to the resource.
430
435
 
431
436
  ## Subject types for grouped value (MODS legacy)
@@ -11,7 +11,7 @@ module Cocina
11
11
 
12
12
  def initialize(clazz, attributes)
13
13
  @clazz = clazz
14
- @attributes = attributes
14
+ @attributes = attributes.deep_symbolize_keys
15
15
  @error_paths = []
16
16
  end
17
17
 
@@ -60,7 +60,7 @@ module Cocina
60
60
  next unless match?(path, type_signature)
61
61
  break if types.include?(type.downcase)
62
62
 
63
- error_paths << path_to_s(path)
63
+ error_paths << "#{path_to_s(path)} (#{type})"
64
64
  break
65
65
  end
66
66
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.73.2'
5
+ VERSION = '0.73.3'
6
6
  end
7
7
  end
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.73.2
4
+ version: 0.73.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-13 00:00:00.000000000 Z
11
+ date: 2022-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport