relaton-bsi 2.0.0.pre.alpha.1 → 2.0.0.pre.alpha.2

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: c15513bebf78f48b3913c1dcce3aa13c47b4cec303c27e994039a58ca7d16506
4
- data.tar.gz: 4359596af621593b0066db9627f211d853f89be48e38706e901b789122032ced
3
+ metadata.gz: a3761eac8aaa29d16884a70b45081caa0c1142a6c3b4f58d92c544caddc22743
4
+ data.tar.gz: 8d5d18a33dcfa75b2672352d23e09b9f0bc4e9d94465419470406371900281b8
5
5
  SHA512:
6
- metadata.gz: '077893dcf0d85d7cceb96de2e162f652b6a306b8072ce923c83ec7d4cb67b8f87748f15ecba6a05152758279ffd25a155d0109a7a150f5e529347952b9209091'
7
- data.tar.gz: ad14896e08710a685cc3499e5940b89a89ddf1fa9d470661704190235249e7f7e1c0cdfdd0e87c9a71bd01dd1b0da0f492b1abb245b755029c3f32a66cef388b
6
+ metadata.gz: d005c8d9aade1936f2b1da7656684de2c1dc51630fde10a91efcf8f331f6a2ca76d7244fe5a50068302ad18547202194623e88205701c4ebc0d6d0c9c31e3234
7
+ data.tar.gz: 4cd613faff93db8bc1779dd3e62a6677874dc9277e1701e117395148c570e480c5616a2042ee0cf0706d22000808bb6746c1fa263fb68485e8442b36cfd39778
data/README.adoc CHANGED
@@ -46,7 +46,7 @@ item = hit_collection[1].item
46
46
  [source,ruby]
47
47
  ----
48
48
  item.to_xml
49
- => "<bibitem id="BSENISO88482021" type="standard" schema-version="v1.4.1">
49
+ => "<bibitem id="BSENISO88482021" type="standard" schema-version="v1.5.6">
50
50
  <fetched>2025-10-18</fetched>
51
51
  <title language="en" script="Latn" type="title-main">Small craft. Remote mechanical steering systems</title>
52
52
  <title language="en" script="Latn" type="main">Small craft. Remote mechanical steering systems</title>
@@ -73,11 +73,11 @@ With `bibdata: true` option XML output wrapped with `bibdata` element and `ext`
73
73
  [source,ruby]
74
74
  ----
75
75
  item.to_xml bibdata: true
76
- => "<bibdata type="standard" schema-version="v1.4.1">
76
+ => "<bibdata type="standard" schema-version="v1.5.6">
77
77
  <fetched>2025-10-18</fetched>
78
78
  <title language="en" script="Latn" type="title-main">Small craft. Remote mechanical steering systems</title>
79
79
  ...
80
- <ext schema-version="v1.0.3">
80
+ <ext schema-version="v1.1.3">
81
81
  <doctype>standard</doctype>
82
82
  ...
83
83
  </ext>
@@ -187,6 +187,15 @@ Applicable to modify and delete</a:documentation>
187
187
  <a:documentation>Optional caption of this block</a:documentation>
188
188
  </attribute>
189
189
  </optional>
190
+ <optional>
191
+ <attribute name="position">
192
+ <a:documentation>For an "add" change, whether the change is added before or after the location</a:documentation>
193
+ <choice>
194
+ <value>before</value>
195
+ <value>after</value>
196
+ </choice>
197
+ </attribute>
198
+ </optional>
190
199
  <optional>
191
200
  <element name="location">
192
201
  <a:documentation>The location(s) in the original document which have undergone the change described in this block</a:documentation>
@@ -208,11 +217,15 @@ Applicable to modify and delete</a:documentation>
208
217
  </zeroOrMore>
209
218
  <optional>
210
219
  <element name="newcontent">
211
- <a:documentation>New content to be added to the document; applicable to add and modify</a:documentation>
220
+ <a:documentation>New content to be added to the document; applicable to add and modify.
221
+ Can be blocks and/or sections</a:documentation>
212
222
  <ref name="OptionalId"/>
213
223
  <zeroOrMore>
214
224
  <ref name="BasicBlock"/>
215
225
  </zeroOrMore>
226
+ <zeroOrMore>
227
+ <ref name="section"/>
228
+ </zeroOrMore>
216
229
  </element>
217
230
  </optional>
218
231
  <zeroOrMore>
data/grammars/biblio.rng CHANGED
@@ -1142,11 +1142,11 @@ NOTE: This should preferably be encoded as a URI or short identifier, rather th
1142
1142
  <a:documentation>Information about how long the current description of the bibliographic item is valid for</a:documentation>
1143
1143
  </ref>
1144
1144
  </optional>
1145
- <optional>
1145
+ <zeroOrMore>
1146
1146
  <ref name="depiction">
1147
1147
  <a:documentation>Depiction of the bibliographic item, typically an image</a:documentation>
1148
1148
  </ref>
1149
- </optional>
1149
+ </zeroOrMore>
1150
1150
  </define>
1151
1151
  <define name="ReducedBibliographicItem">
1152
1152
  <a:documentation>Reduced description of a bibliographic resource, without mandatory title and docidentifier, used for document relations
@@ -1939,10 +1939,10 @@ Detailed in https://www.relaton.org/model/relations/</a:documentation>
1939
1939
  <value>hasAnnotation</value>
1940
1940
  <value>draftOf</value>
1941
1941
  <value>hasDraft</value>
1942
- <value>preliminaryDraftOf</value>
1943
- <value>hasPreliminaryDraft</value>
1944
- <value>revisionDraftOf</value>
1945
- <value>hasRevisionDraft</value>
1942
+ <value>predecessorDraftOf</value>
1943
+ <value>hasPredecessorDraft</value>
1944
+ <value>successorDraftOf</value>
1945
+ <value>hasSuccessorDraft</value>
1946
1946
  <value>editionOf</value>
1947
1947
  <value>hasEdition</value>
1948
1948
  <value>updates</value>
@@ -2063,13 +2063,13 @@ provided that it is not the entire bibliographic item that is so related</a:docu
2063
2063
  <ref name="LocalizedString"/>
2064
2064
  </element>
2065
2065
  </optional>
2066
- <oneOrMore>
2066
+ <zeroOrMore>
2067
2067
  <element name="taxon">
2068
2068
  <a:documentation>The keywords as a hierarchical taxonomy. For example, the sequence of `taxon` elements
2069
2069
  `pump`, `centrifugal pump`, `line shaft pump` represents a taxonomic classification</a:documentation>
2070
2070
  <ref name="LocalizedString"/>
2071
2071
  </element>
2072
- </oneOrMore>
2072
+ </zeroOrMore>
2073
2073
  <zeroOrMore>
2074
2074
  <ref name="vocabid">
2075
2075
  <a:documentation>Identifiers for the keyword as a controlled vocabulary</a:documentation>
@@ -116,11 +116,11 @@ module Relaton::Bsi
116
116
 
117
117
  # Fetch abstracts.
118
118
  # @param data [Hash]
119
- # @return [Array<Relaton::Bib::LocalizedMarkedUpString>]
119
+ # @return [Array<Relaton::Bib::Abstract>]
120
120
  def fetch_abstract(data)
121
121
  return [] unless data["description"]
122
122
 
123
- [Relaton::Bib::LocalizedMarkedUpString.new(content: data["description"], language: "en", script: "Latn")]
123
+ [Relaton::Bib::Abstract.new(content: data["description"], language: "en", script: "Latn")]
124
124
  end
125
125
 
126
126
  # Fetch docid.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Relaton
4
4
  module Bsi
5
- VERSION = "2.0.0-alpha.1".freeze
5
+ VERSION = "2.0.0-alpha.2".freeze
6
6
  end
7
7
  end
data/relaton_bsi.gemspec CHANGED
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency "graphql", "~> 2.3"
35
35
  spec.add_dependency "graphql-client", "~> 0.23"
36
36
  spec.add_dependency "relaton-core", "~> 0.0.9"
37
- spec.add_dependency "relaton-iso", "~> 2.0.0-alpha.2"
37
+ spec.add_dependency "relaton-iso", "~> 2.0.0-alpha.7"
38
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bsi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha.1
4
+ version: 2.0.0.pre.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -85,14 +85,14 @@ dependencies:
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 2.0.0.pre.alpha.2
88
+ version: 2.0.0.pre.alpha.7
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 2.0.0.pre.alpha.2
95
+ version: 2.0.0.pre.alpha.7
96
96
  description: 'Relaton::Bsi: retrieve BSI Standards for bibliographic use using the
97
97
  BibliographicItem model'
98
98
  email: