cocina-models 0.91.0 → 0.91.1
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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/cocina/models/mapping/to_mods/form.rb +7 -10
- data/lib/cocina/models/mapping/to_mods/subject.rb +1 -1
- data/lib/cocina/models/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1ec01db7a1ce34eb6949d50b95ee99f61ff9a9ebcfaa07627c8e848810193fa
|
4
|
+
data.tar.gz: 6f8ea9812e67a755994ed991bb6e97f322f37b18fa488c582dec025928b81772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6374e20bdbaf8a7c05549e85575c25edf177ddd1f99d2d000a36c91b7627dc38c81ec16e662fd068bd51899fca72f5de623ce42642c12a72da0504f575f7c5ca
|
7
|
+
data.tar.gz: 79a090fccb9a0005b6f80148170e0f4fadf8895a6e70fd33e42af4a26a43c364e209426128bfc88eeb41923ab5aa55e02e8ec9391168db55517fb482e250db35
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocina-models (0.91.
|
4
|
+
cocina-models (0.91.1)
|
5
5
|
activesupport
|
6
6
|
deprecation
|
7
7
|
dry-struct (~> 1.0)
|
@@ -125,7 +125,7 @@ GEM
|
|
125
125
|
parser (>= 3.2.1.0)
|
126
126
|
rubocop-capybara (2.18.0)
|
127
127
|
rubocop (~> 1.41)
|
128
|
-
rubocop-factory_bot (2.
|
128
|
+
rubocop-factory_bot (2.24.0)
|
129
129
|
rubocop (~> 1.33)
|
130
130
|
rubocop-rake (0.6.0)
|
131
131
|
rubocop (~> 1.0)
|
@@ -9,14 +9,14 @@ module Cocina
|
|
9
9
|
# NOTE: H2 is the first case of structured form values we're implementing
|
10
10
|
H2_SOURCE_LABEL = 'Stanford self-deposit resource types'
|
11
11
|
PHYSICAL_DESCRIPTION_TAG = {
|
12
|
-
'reformatting quality' => :reformattingQuality,
|
13
|
-
'form' => :form,
|
14
|
-
'media type' => :internetMediaType,
|
15
|
-
'extent' => :extent,
|
16
|
-
'digital origin' => :digitalOrigin,
|
17
|
-
'media' => :form,
|
18
12
|
'carrier' => :form,
|
13
|
+
'digital origin' => :digitalOrigin,
|
14
|
+
'extent' => :extent,
|
15
|
+
'form' => :form,
|
19
16
|
'material' => :form,
|
17
|
+
'media' => :form,
|
18
|
+
'media type' => :internetMediaType,
|
19
|
+
'reformatting quality' => :reformattingQuality,
|
20
20
|
'technique' => :form
|
21
21
|
}.freeze
|
22
22
|
|
@@ -183,10 +183,7 @@ module Cocina
|
|
183
183
|
attributes = {
|
184
184
|
unit: unit_for(form_value)
|
185
185
|
}.tap do |attrs|
|
186
|
-
if PHYSICAL_DESCRIPTION_TAG.fetch(form_type) == :form && form_type != 'form'
|
187
|
-
attrs[:type] =
|
188
|
-
form_type
|
189
|
-
end
|
186
|
+
attrs[:type] = form_type if PHYSICAL_DESCRIPTION_TAG.fetch(form_type) == :form && form_type != 'form'
|
190
187
|
end.compact
|
191
188
|
|
192
189
|
xml.public_send PHYSICAL_DESCRIPTION_TAG.fetch(form_type), form_value.value,
|
@@ -298,7 +298,7 @@ module Cocina
|
|
298
298
|
|
299
299
|
def time_range(subject)
|
300
300
|
subject.structuredValue.each do |point|
|
301
|
-
xml.temporal point.value, point: point.type, encoding: subject.encoding
|
301
|
+
xml.temporal point.value, point: point.type, encoding: subject.encoding&.code
|
302
302
|
end
|
303
303
|
end
|
304
304
|
|
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.91.
|
4
|
+
version: 0.91.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -545,7 +545,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
545
545
|
- !ruby/object:Gem::Version
|
546
546
|
version: '0'
|
547
547
|
requirements: []
|
548
|
-
rubygems_version: 3.
|
548
|
+
rubygems_version: 3.4.13
|
549
549
|
signing_key:
|
550
550
|
specification_version: 4
|
551
551
|
summary: Data models for the SDR
|