relaton-iso-bib 1.19.1 → 1.19.2

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: a3f14f5b8cc3dbe724c93588ad9eada6d4e41c1c0824dc64894d0a2945b7367d
4
- data.tar.gz: 9de276830894f49558ff8143286f85db9db98ed8ca4df89802c910110da51245
3
+ metadata.gz: 860f3d81266f83e7f0a1d83d9f2e6a46ace0756beb111b220cf594396d0dc279
4
+ data.tar.gz: 7d0370c90d4b736d2639c50ac4911de82979ee1030e8ae195ea365af6d85d372
5
5
  SHA512:
6
- metadata.gz: 2c20d5936a5a5cb9a85224b7061928b3bdaf0dceea36b355766f51fbd4662f283f5c5784ed717a7e4ebe9648572b28cb68bbed5c98d7323eea7bf3a3fb2d27b5
7
- data.tar.gz: 4820479fa71ddd05f01e6d7dd426aae3c4b7054d608699f31985641058573af5ce6e119c5ca289dec670081f1877085e5f159136707c5c2f5a80298dc5f97482
6
+ metadata.gz: bd2746def404ebe7c6f9048567f1f27a48ddb133f4e02b3092a7e5fec809ebc9c1e006c7a6a1a49df5820dde94faf72d334356932d1e948bc38bc514860adafd
7
+ data.tar.gz: 49d5bfe5dd54eee4cb279cd3a200b3efa4efefb7b77a6c8198dd2802f6e2507478f82c95c82911db439830cb25a458edd6b7b8810116ea54b369ffee114888ac
@@ -15,7 +15,7 @@ module RelatonIsoBib
15
15
  attr_reader :structuredidentifier
16
16
 
17
17
  # @return [String, nil]
18
- attr_reader :stagename
18
+ attr_reader :stagename, :price_code
19
19
 
20
20
  # @!attribute [r] subdoctype
21
21
  # @return [RelatonIsoBib::DocumentType]
@@ -56,6 +56,7 @@ module RelatonIsoBib
56
56
  # @param stagename [String, nil]
57
57
  # @param fast_track [Boolean, nil]
58
58
  # @param title [Array<Hash, RelatonBib::TypedTitleString>, RelatonBib::TypedTitleStringCollection]
59
+ # @param price_code [String, nil]
59
60
  #
60
61
  # @param editorialgroup [Hash, RelatonIsoBib::EditorialGroup]
61
62
  # @option workgrpup [String] :name
@@ -135,6 +136,7 @@ module RelatonIsoBib
135
136
  @stagename = args[:stagename]
136
137
  @id_attribute = true
137
138
  @fast_track = args[:fast_track]
139
+ @price_code = args[:price_code] if args.key? :price_code # @TODO: remove `if` when all users update relaton-iec
138
140
  end
139
141
 
140
142
  #
@@ -170,6 +172,7 @@ module RelatonIsoBib
170
172
  structuredidentifier&.to_xml b
171
173
  b.stagename stagename if stagename
172
174
  b.send("fast-track", fast_track) unless fast_track.nil?
175
+ b.send("price-code", price_code) if price_code
173
176
  end
174
177
  ext["schema-version"] = ext_schema unless opts[:embedded]
175
178
  end
@@ -191,6 +194,7 @@ module RelatonIsoBib
191
194
  hash["horizontal"] = horizontal unless horizontal.nil?
192
195
  hash["stagename"] = stagename if stagename
193
196
  hash["fast_track"] = fast_track unless fast_track.nil?
197
+ hash["price_code"] = price_code if price_code
194
198
  hash
195
199
  end
196
200
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "1.19.1".freeze
2
+ VERSION = "1.19.2".freeze
3
3
  end
@@ -17,6 +17,7 @@ module RelatonIsoBib
17
17
  data[:horizontal] = hrzt.text == "true" if hrzt
18
18
  data[:stagename] = ext.at("./stagename")&.text
19
19
  data[:fast_track] = ext.at("./fast-track")&.text
20
+ data[:price_code] = ext.at("./price-code")&.text
20
21
  data
21
22
  end
22
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.1
4
+ version: 1.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-01 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: isoics