relaton-bsi 1.12.0 → 1.13.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: 2f36394d77e5e7fd6b6747c31a2ecdbb1b63f7e58a395cf0ed358fe8f42a108c
4
- data.tar.gz: cd1cbd0f9c4e127543642879c48efd20aaa1b57e49a1b320287555e2a145c67e
3
+ metadata.gz: 7c8385792442a0ff58466ad73208254df767e7f92943965a109df5b77a8c247f
4
+ data.tar.gz: fecf1179508ec2c81e7eb061724fb35900a6153c1556240165b2a26b5abf6d8d
5
5
  SHA512:
6
- metadata.gz: 6aeae1cb08f3c6e01345226ce22af9f6787a9f9cfcdbac95087333e60e30b5b9f9678ba58272ed5e88bae20aafaf7ecf7eebb4f5b44ebd98980ce15391b4d8b7
7
- data.tar.gz: 4acc7a5b2a872bf9ff13559ecc23045cbc17691892827441877d486374767d3793a332a32f083274b957f267ad8940b0b6761d1548566773c7f135ec8d9e5eac
6
+ metadata.gz: e812c7ae713cd9be63f21efbb8f00f5c54fe981a1dd05732a823266b12d9c0dc8cb0d8690d27b1716942d275d06fa94f4b196861d5c00e548201bb246d2692fb
7
+ data.tar.gz: fd959ac8c3292c9d8c018f885a1d374b30f0a8bcdd05628231453644c61db6f1302068614d0d20fc0bf077ade631d11196ee2021026ba49a98527ea1b3f5827e
data/grammars/biblio.rng CHANGED
@@ -225,9 +225,9 @@
225
225
  <zeroOrMore>
226
226
  <ref name="forename"/>
227
227
  </zeroOrMore>
228
- <zeroOrMore>
229
- <ref name="initial"/>
230
- </zeroOrMore>
228
+ <optional>
229
+ <ref name="formatted-initials"/>
230
+ </optional>
231
231
  <ref name="surname"/>
232
232
  <zeroOrMore>
233
233
  <ref name="addition"/>
@@ -247,8 +247,8 @@
247
247
  <ref name="LocalizedString"/>
248
248
  </element>
249
249
  </define>
250
- <define name="initial">
251
- <element name="initial">
250
+ <define name="formatted-initials">
251
+ <element name="formatted-initials">
252
252
  <ref name="LocalizedString"/>
253
253
  </element>
254
254
  </define>
@@ -264,6 +264,9 @@
264
264
  </define>
265
265
  <define name="forename">
266
266
  <element name="forename">
267
+ <optional>
268
+ <attribute name="initial"/>
269
+ </optional>
267
270
  <ref name="LocalizedString"/>
268
271
  </element>
269
272
  </define>
data/grammars/isodoc.rng CHANGED
@@ -69,6 +69,17 @@
69
69
  </zeroOrMore>
70
70
  </element>
71
71
  </define>
72
+ <define name="AdmonitionType">
73
+ <choice>
74
+ <value>warning</value>
75
+ <value>note</value>
76
+ <value>tip</value>
77
+ <value>important</value>
78
+ <value>caution</value>
79
+ <value>statement</value>
80
+ <value>editorial</value>
81
+ </choice>
82
+ </define>
72
83
  <define name="index">
73
84
  <element name="index">
74
85
  <optional>
@@ -1274,7 +1285,12 @@
1274
1285
  </define>
1275
1286
  <define name="span">
1276
1287
  <element name="span">
1277
- <attribute name="class"/>
1288
+ <optional>
1289
+ <attribute name="class"/>
1290
+ </optional>
1291
+ <optional>
1292
+ <attribute name="style"/>
1293
+ </optional>
1278
1294
  <oneOrMore>
1279
1295
  <ref name="TextElement"/>
1280
1296
  </oneOrMore>
@@ -2493,6 +2509,16 @@
2493
2509
  <text/>
2494
2510
  </element>
2495
2511
  </optional>
2512
+ <optional>
2513
+ <element name="amendment">
2514
+ <text/>
2515
+ </element>
2516
+ </optional>
2517
+ <optional>
2518
+ <element name="corrigendum">
2519
+ <text/>
2520
+ </element>
2521
+ </optional>
2496
2522
  <optional>
2497
2523
  <element name="language">
2498
2524
  <text/>
@@ -55,7 +55,8 @@ module RelatonBsi
55
55
  next unless h[:meta][:global][:publishedDate]
56
56
 
57
57
  code = h[:meta][:global][:primaryDesignator]
58
- .sub(/\s?(?:LOOSELEAF|\(A5 LAMINATED\)|-\s?TC$)/, "")
58
+ code = code.is_a?(Array) ? code.first : code
59
+ code.sub!(/\s?(?:LOOSELEAF|\(A5 LAMINATED\)|-\s?TC$)/, "")
59
60
  obj << Hit.new(
60
61
  {
61
62
  code: code,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonBsi
4
- VERSION = "1.12.0"
4
+ VERSION = "1.13.0"
5
5
  end
data/relaton_bsi.gemspec CHANGED
@@ -40,5 +40,5 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency "graphql", "1.13.6"
41
41
  spec.add_dependency "graphql-client", "~> 0.16.0"
42
42
  # spec.add_dependency "mechanize", "~> 2.8.0"
43
- spec.add_dependency "relaton-iso-bib", "~> 1.12.0"
43
+ spec.add_dependency "relaton-iso-bib", "~> 1.13.0"
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bsi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-25 00:00:00.000000000 Z
11
+ date: 2022-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.12.0
145
+ version: 1.13.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.12.0
152
+ version: 1.13.0
153
153
  description: 'RelatonBsi: retrieve BSI Standards for bibliographic use using the BibliographicItem
154
154
  model'
155
155
  email: