metanorma-iso 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/html/header-dis.html +111 -29
- data/lib/isodoc/iso/html/isodoc-dis.css +65 -64
- data/lib/isodoc/iso/html/isodoc-dis.scss +65 -64
- data/lib/isodoc/iso/html/style-human.css +1 -2
- data/lib/isodoc/iso/html/style-human.scss +0 -1
- data/lib/isodoc/iso/html/style-iso.css +1 -2
- data/lib/isodoc/iso/html/style-iso.scss +0 -1
- data/lib/isodoc/iso/html/wordstyle-dis.css +10 -4
- data/lib/isodoc/iso/html/wordstyle-dis.scss +10 -4
- data/lib/isodoc/iso/i18n-en.yaml +4 -4
- data/lib/isodoc/iso/iso.amendment.xsl +205 -37
- data/lib/isodoc/iso/iso.international-standard.xsl +205 -37
- data/lib/isodoc/iso/presentation_bibdata.rb +13 -9
- data/lib/isodoc/iso/presentation_xml_convert.rb +5 -3
- data/lib/isodoc/iso/word_convert.rb +6 -4
- data/lib/isodoc/iso/word_dis_cleanup.rb +24 -3
- data/lib/isodoc/iso/word_dis_convert.rb +4 -1
- data/lib/metanorma/iso/base.rb +2 -1
- data/lib/metanorma/iso/biblio.rng +5 -0
- data/lib/metanorma/iso/isodoc.rng +46 -12
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +5 -2
- metadata +4 -87
- data/.github/workflows/automerge.yml +0 -31
- data/.github/workflows/rake.yml +0 -15
- data/.github/workflows/release.yml +0 -24
- data/.github/workflows/ubuntu.yml +0 -41
- data/Rakefile +0 -8
- data/bin/rspec +0 -17
- data/spec/assets/header.html +0 -7
- data/spec/assets/html.css +0 -2
- data/spec/assets/htmlcover.html +0 -4
- data/spec/assets/htmlintro.html +0 -5
- data/spec/assets/i18n.yaml +0 -2
- data/spec/assets/iso.adoc +0 -10
- data/spec/assets/iso.headless.html +0 -33
- data/spec/assets/iso.xml +0 -71
- data/spec/assets/rice_image1.png +0 -0
- data/spec/assets/scripts.html +0 -3
- data/spec/assets/std.css +0 -2
- data/spec/assets/word.css +0 -2
- data/spec/assets/wordcover.html +0 -3
- data/spec/assets/wordintro.html +0 -4
- data/spec/examples/103_01_02.html +0 -247
- data/spec/examples/english.yaml +0 -69
- data/spec/examples/iso_123_.xml +0 -45
- data/spec/examples/iso_123_all_parts.xml +0 -45
- data/spec/examples/iso_123_no_year_note.xml +0 -46
- data/spec/examples/iso_124_.xml +0 -41
- data/spec/examples/iso_216_.xml +0 -47
- data/spec/examples/iso_iec_12382_.xml +0 -48
- data/spec/examples/rice.adoc +0 -714
- data/spec/examples/rice.preview.html +0 -1870
- data/spec/examples/rice.sh +0 -4
- data/spec/examples/rice_img/1000-1_ed2amd3fig1a.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3fig1b.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3fig2.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3fig3.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3fig4.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3fig5_f.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3figA.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3figA1.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3figA2.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3figTab1.png +0 -0
- data/spec/examples/rice_img/1000-1_ed2amd3figTab2.png +0 -0
- data/spec/examples/rice_img/1001_ed2amd3fig1.png +0 -0
- data/spec/examples/rice_img/ISO_1213_1.png +0 -0
- data/spec/examples/rice_img/SL1000-1_ed2amd3fig1.png +0 -0
- data/spec/examples/rice_img/rice_image1.png +0 -0
- data/spec/examples/rice_img/rice_image2.png +0 -0
- data/spec/examples/rice_img/rice_image3_1.png +0 -0
- data/spec/examples/rice_img/rice_image3_2.png +0 -0
- data/spec/examples/rice_img/rice_image3_3.png +0 -0
- data/spec/isodoc/amd_spec.rb +0 -986
- data/spec/isodoc/blocks_spec.rb +0 -1174
- data/spec/isodoc/i18n_spec.rb +0 -1579
- data/spec/isodoc/inline_spec.rb +0 -1060
- data/spec/isodoc/iso_spec.rb +0 -255
- data/spec/isodoc/metadata_spec.rb +0 -701
- data/spec/isodoc/postproc_spec.rb +0 -1089
- data/spec/isodoc/ref_spec.rb +0 -439
- data/spec/isodoc/section_spec.rb +0 -998
- data/spec/isodoc/table_spec.rb +0 -420
- data/spec/isodoc/terms_spec.rb +0 -314
- data/spec/isodoc/word_dis_spec.rb +0 -2064
- data/spec/isodoc/xref_spec.rb +0 -1747
- data/spec/metanorma/amd_spec.rb +0 -724
- data/spec/metanorma/base_spec.rb +0 -1384
- data/spec/metanorma/blank_spec.rb +0 -38
- data/spec/metanorma/blocks_spec.rb +0 -624
- data/spec/metanorma/cleanup_spec.rb +0 -1645
- data/spec/metanorma/inline_spec.rb +0 -203
- data/spec/metanorma/lists_spec.rb +0 -197
- data/spec/metanorma/macros_spec.rb +0 -99
- data/spec/metanorma/processor_spec.rb +0 -161
- data/spec/metanorma/refs_spec.rb +0 -672
- data/spec/metanorma/section_spec.rb +0 -492
- data/spec/metanorma/table_spec.rb +0 -329
- data/spec/metanorma/validate_spec.rb +0 -2153
- data/spec/relaton/render_spec.rb +0 -568
- data/spec/requirements/requirement_components_spec.rb +0 -610
- data/spec/requirements/requirements_spec.rb +0 -1596
- data/spec/requirements/xref_spec.rb +0 -1211
- data/spec/spec_helper.rb +0 -313
- data/spec/vcr_cassettes/docrels.yml +0 -385
- data/spec/vcr_cassettes/withdrawn_iso.yml +0 -295
data/spec/metanorma/refs_spec.rb
DELETED
@@ -1,672 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
require "relaton_iso"
|
3
|
-
require "relaton_ietf"
|
4
|
-
|
5
|
-
RSpec.describe Metanorma::ISO do
|
6
|
-
it "processes draft ISO reference" do
|
7
|
-
mock_fdis
|
8
|
-
input = <<~INPUT
|
9
|
-
#{ISOBIB_BLANK_HDR}
|
10
|
-
== Clause
|
11
|
-
<<iso123>>
|
12
|
-
<<iso123>>
|
13
|
-
A.footnote:[a footnote]
|
14
|
-
<<fdis>>
|
15
|
-
<<fdis>>
|
16
|
-
|
17
|
-
[bibliography]
|
18
|
-
== Normative References
|
19
|
-
|
20
|
-
* [[[iso123,ISO 123:--]]] footnote:[The standard is in press] _Standard_
|
21
|
-
* [[[fdis,ISO/FDIS 17664-1]]] Title
|
22
|
-
INPUT
|
23
|
-
output = <<~OUTPUT
|
24
|
-
#{BLANK_HDR}
|
25
|
-
<sections>
|
26
|
-
<clause id="_" inline-header="false" obligation="normative">
|
27
|
-
<title>Clause</title>
|
28
|
-
<p id="_">
|
29
|
-
<eref bibitemid="iso123" citeas="ISO 123:--" type="inline"/>
|
30
|
-
<fn reference="1"><p id="_">The standard is in press</p></fn>
|
31
|
-
<eref bibitemid="iso123" citeas="ISO 123:--" type="inline"/>A.
|
32
|
-
<fn reference="2">
|
33
|
-
<p id="_">a footnote</p></fn>
|
34
|
-
<eref bibitemid="fdis" citeas="ISO/FDIS 17664-1" type="inline"/>
|
35
|
-
<fn reference="3">
|
36
|
-
<p id="_">Under preparation. (Stage at the time of publication ISO/FDIS 17664-1).</p>
|
37
|
-
</fn>
|
38
|
-
<eref bibitemid="fdis" citeas="ISO/FDIS 17664-1" type="inline"/>
|
39
|
-
</p>
|
40
|
-
</clause>
|
41
|
-
</sections>
|
42
|
-
<bibliography>
|
43
|
-
<references id="_" normative="true" obligation="informative">
|
44
|
-
<title>Normative references</title>
|
45
|
-
<p id="_">The following documents are referred to in the text in such a way that
|
46
|
-
some or all of their content constitutes requirements of this document.
|
47
|
-
For dated references, only the edition cited applies. For undated
|
48
|
-
references, the latest edition of the referenced document (including any
|
49
|
-
amendments) applies.
|
50
|
-
</p>
|
51
|
-
<bibitem id="iso123" type="standard">
|
52
|
-
<title format="text/plain">Standard</title>
|
53
|
-
<docidentifier type="ISO">ISO 123:—</docidentifier>
|
54
|
-
<docnumber>123</docnumber>
|
55
|
-
<date type="published">
|
56
|
-
<on>–</on>
|
57
|
-
</date>
|
58
|
-
<contributor>
|
59
|
-
<role type="publisher"/>
|
60
|
-
<organization>
|
61
|
-
<name>International Organization for Standardization</name>
|
62
|
-
<abbreviation>ISO</abbreviation>
|
63
|
-
</organization>
|
64
|
-
</contributor>
|
65
|
-
<note format="text/plain" type="Unpublished-Status">The standard is in press</note>
|
66
|
-
</bibitem>
|
67
|
-
<bibitem id="fdis" type="standard">
|
68
|
-
<fetched>#{Date.today}</fetched>
|
69
|
-
<title format="text/plain" language="fr" script="Latn" type="title-intro">Traitement de produits de soins de santé</title>
|
70
|
-
<title format="text/plain" language="fr" script="Latn" type="title-main">Informations relatives au traitement des dispositifs médicaux à
|
71
|
-
fournir par le fabricant du dispositif
|
72
|
-
</title>
|
73
|
-
<title format="text/plain" language="fr" script="Latn" type="title-part">Partie 1: Titre manque</title>
|
74
|
-
<title format="text/plain" language="fr" script="Latn" type="main">Traitement de produits de soins de santé — Informations relatives au
|
75
|
-
traitement des dispositifs médicaux à fournir par le fabricant du
|
76
|
-
dispositif — Partie 1: Titre manque
|
77
|
-
</title>
|
78
|
-
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
79
|
-
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
80
|
-
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
81
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
82
|
-
<docnumber>17664</docnumber>
|
83
|
-
<contributor>
|
84
|
-
<role type="publisher"/>
|
85
|
-
<organization>
|
86
|
-
<name>International Organization for Standardization</name>
|
87
|
-
<abbreviation>ISO</abbreviation>
|
88
|
-
<uri>www.iso.org</uri>
|
89
|
-
</organization>
|
90
|
-
</contributor>
|
91
|
-
<edition>1</edition>
|
92
|
-
<note type="Unpublished-Status">
|
93
|
-
<p id="_">Under preparation. (Stage at the time of publication ISO/FDIS 17664-1).</p>
|
94
|
-
</note>
|
95
|
-
<language>en</language>
|
96
|
-
<language>fr</language>
|
97
|
-
<script>Latn</script>
|
98
|
-
<status>
|
99
|
-
<stage>50</stage>
|
100
|
-
<substage>00</substage>
|
101
|
-
</status>
|
102
|
-
<copyright>
|
103
|
-
<from>unknown</from>
|
104
|
-
<owner>
|
105
|
-
<organization>
|
106
|
-
<name>ISO/FDIS</name>
|
107
|
-
</organization>
|
108
|
-
</owner>
|
109
|
-
</copyright>
|
110
|
-
<relation type="obsoletes">
|
111
|
-
<bibitem type="standard">
|
112
|
-
<formattedref format="text/plain">ISO 17664:2017</formattedref>
|
113
|
-
</bibitem>
|
114
|
-
</relation>
|
115
|
-
<relation type="instance">
|
116
|
-
<bibitem type="standard">
|
117
|
-
<fetched>2020-11-03</fetched>
|
118
|
-
<title format="text/plain" language="fr" script="Latn" type="title-intro">Traitement de produits de soins de santé</title>
|
119
|
-
<title format="text/plain" language="fr" script="Latn" type="title-main">Informations relatives au traitement des dispositifs médicaux à
|
120
|
-
fournir par le fabricant du dispositif
|
121
|
-
</title>
|
122
|
-
<title format="text/plain" language="fr" script="Latn" type="title-part">Partie 1: Titre manque</title>
|
123
|
-
<title format="text/plain" language="fr" script="Latn" type="main">Traitement de produits de soins de santé — Informations relatives
|
124
|
-
au traitement des dispositifs médicaux à fournir par le fabricant
|
125
|
-
du dispositif — Partie 1: Titre manque
|
126
|
-
</title>
|
127
|
-
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
128
|
-
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
129
|
-
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
130
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
131
|
-
<docnumber>17664</docnumber>
|
132
|
-
<contributor>
|
133
|
-
<role type="publisher"/>
|
134
|
-
<organization>
|
135
|
-
<name>International Organization for Standardization</name>
|
136
|
-
<abbreviation>ISO</abbreviation>
|
137
|
-
<uri>www.iso.org</uri>
|
138
|
-
</organization>
|
139
|
-
</contributor>
|
140
|
-
<edition>1</edition>
|
141
|
-
<language>en</language>
|
142
|
-
<language>fr</language>
|
143
|
-
<script>Latn</script>
|
144
|
-
<status>
|
145
|
-
<stage>50</stage>
|
146
|
-
<substage>00</substage>
|
147
|
-
</status>
|
148
|
-
<copyright>
|
149
|
-
<from>unknown</from>
|
150
|
-
<owner>
|
151
|
-
<organization>
|
152
|
-
<name>ISO/FDIS</name>
|
153
|
-
</organization>
|
154
|
-
</owner>
|
155
|
-
</copyright>
|
156
|
-
<relation type="obsoletes">
|
157
|
-
<bibitem type="standard">
|
158
|
-
<formattedref format="text/plain">ISO 17664:2017</formattedref>
|
159
|
-
</bibitem>
|
160
|
-
</relation>
|
161
|
-
<place>Geneva</place>
|
162
|
-
</bibitem>
|
163
|
-
</relation>
|
164
|
-
<place>Geneva</place>
|
165
|
-
</bibitem>
|
166
|
-
</references>
|
167
|
-
</bibliography>
|
168
|
-
</iso-standard>
|
169
|
-
OUTPUT
|
170
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
171
|
-
.to be_equivalent_to xmlpp(output)
|
172
|
-
end
|
173
|
-
|
174
|
-
it "processes all-parts ISO reference" do
|
175
|
-
input = <<~INPUT
|
176
|
-
#{ASCIIDOC_BLANK_HDR}
|
177
|
-
|
178
|
-
== Clause
|
179
|
-
|
180
|
-
<<iso123>>
|
181
|
-
|
182
|
-
[bibliography]
|
183
|
-
== Normative References
|
184
|
-
|
185
|
-
* [[[iso123,ISO 123:1066 (all parts)]]] _Standard_
|
186
|
-
INPUT
|
187
|
-
output = <<~OUTPUT
|
188
|
-
#{BLANK_HDR}
|
189
|
-
<sections>
|
190
|
-
<clause id="_" inline-header="false" obligation="normative">
|
191
|
-
<title>Clause</title>
|
192
|
-
<p id="_">
|
193
|
-
<eref bibitemid="iso123" citeas="ISO 123:1066" type="inline"/>
|
194
|
-
</p>
|
195
|
-
</clause>
|
196
|
-
</sections>
|
197
|
-
<bibliography>
|
198
|
-
<references id="_" normative="true" obligation="informative">
|
199
|
-
<title>Normative references</title>
|
200
|
-
<p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
201
|
-
<bibitem id="iso123" type="standard">
|
202
|
-
<title format="text/plain">Standard</title>
|
203
|
-
<docidentifier>ISO 123:1066 (all parts)</docidentifier>
|
204
|
-
<docnumber>123</docnumber>
|
205
|
-
<date type="published">
|
206
|
-
<on>1066</on>
|
207
|
-
</date>
|
208
|
-
<contributor>
|
209
|
-
<role type="publisher"/>
|
210
|
-
<organization>
|
211
|
-
<name>International Organization for Standardization</name>
|
212
|
-
<abbreviation>ISO</abbreviation>
|
213
|
-
</organization>
|
214
|
-
</contributor>
|
215
|
-
<extent type="part">
|
216
|
-
<referenceFrom>all</referenceFrom>
|
217
|
-
</extent>
|
218
|
-
</bibitem>
|
219
|
-
</references>
|
220
|
-
</bibliography>
|
221
|
-
</iso-standard>
|
222
|
-
OUTPUT
|
223
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
224
|
-
.to be_equivalent_to xmlpp(output)
|
225
|
-
end
|
226
|
-
|
227
|
-
it "processes non-ISO reference in Normative References" do
|
228
|
-
input = <<~INPUT
|
229
|
-
#{ASCIIDOC_BLANK_HDR}
|
230
|
-
[bibliography]
|
231
|
-
== Normative References
|
232
|
-
|
233
|
-
* [[[iso123,XYZ 123:1066 (all parts)]]] _Standard_
|
234
|
-
INPUT
|
235
|
-
output = <<~OUTPUT
|
236
|
-
#{BLANK_HDR}
|
237
|
-
<sections>
|
238
|
-
|
239
|
-
</sections>
|
240
|
-
<bibliography>
|
241
|
-
<references id="_" normative="true" obligation="informative">
|
242
|
-
<title>Normative references</title>
|
243
|
-
<p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
244
|
-
<bibitem id="iso123">
|
245
|
-
<formattedref format="application/x-isodoc+xml">
|
246
|
-
<em>Standard</em>
|
247
|
-
</formattedref>
|
248
|
-
<docidentifier>XYZ 123:1066 (all parts)</docidentifier>
|
249
|
-
<docnumber>123:1066 (all parts)</docnumber>
|
250
|
-
</bibitem>
|
251
|
-
</references>
|
252
|
-
</bibliography>
|
253
|
-
</iso-standard>
|
254
|
-
OUTPUT
|
255
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
256
|
-
.to be_equivalent_to xmlpp(output)
|
257
|
-
end
|
258
|
-
|
259
|
-
it "processes non-ISO reference in Bibliography" do
|
260
|
-
input = <<~INPUT
|
261
|
-
#{ASCIIDOC_BLANK_HDR}
|
262
|
-
[bibliography]
|
263
|
-
== Bibliography
|
264
|
-
|
265
|
-
* [[[iso123,1]]] _Standard_
|
266
|
-
INPUT
|
267
|
-
output = <<~OUTPUT
|
268
|
-
#{BLANK_HDR}
|
269
|
-
<sections>
|
270
|
-
|
271
|
-
</sections>
|
272
|
-
<bibliography>
|
273
|
-
<references id="_" normative="false" obligation="informative">
|
274
|
-
<title>Bibliography</title>
|
275
|
-
<bibitem id="iso123">
|
276
|
-
<formattedref format="application/x-isodoc+xml">
|
277
|
-
<em>Standard</em>
|
278
|
-
</formattedref>
|
279
|
-
<docidentifier type="metanorma">[1]</docidentifier>
|
280
|
-
</bibitem>
|
281
|
-
</references>
|
282
|
-
</bibliography>
|
283
|
-
</iso-standard>
|
284
|
-
OUTPUT
|
285
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
286
|
-
.to be_equivalent_to xmlpp(output)
|
287
|
-
end
|
288
|
-
|
289
|
-
it "sort ISO references in Bibliography" do
|
290
|
-
input = <<~INPUT
|
291
|
-
#{ASCIIDOC_BLANK_HDR}
|
292
|
-
[bibliography]
|
293
|
-
== Bibliography
|
294
|
-
|
295
|
-
* [[[iso1,ISO 8000-110]]]
|
296
|
-
* [[[iso2,ISO 8000-61]]]
|
297
|
-
* [[[iso3,ISO 8000-8]]]
|
298
|
-
* [[[iso4,ISO 9]]]
|
299
|
-
INPUT
|
300
|
-
output = <<~OUTPUT
|
301
|
-
#{BLANK_HDR}
|
302
|
-
<sections> </sections>
|
303
|
-
<bibliography>
|
304
|
-
<references id='_' normative='false' obligation='informative'>
|
305
|
-
<title>Bibliography</title>
|
306
|
-
<bibitem id='iso4' type='standard'>
|
307
|
-
<docidentifier>ISO 9</docidentifier>
|
308
|
-
<docnumber>9</docnumber>
|
309
|
-
<contributor>
|
310
|
-
<role type='publisher'/>
|
311
|
-
<organization>
|
312
|
-
<name>International Organization for Standardization</name>
|
313
|
-
<abbreviation>ISO</abbreviation>
|
314
|
-
</organization>
|
315
|
-
</contributor>
|
316
|
-
</bibitem>
|
317
|
-
<bibitem id='iso3' type='standard'>
|
318
|
-
<docidentifier>ISO 8000-8</docidentifier>
|
319
|
-
<docnumber>8000-8</docnumber>
|
320
|
-
<contributor>
|
321
|
-
<role type='publisher'/>
|
322
|
-
<organization>
|
323
|
-
<name>International Organization for Standardization</name>
|
324
|
-
<abbreviation>ISO</abbreviation>
|
325
|
-
</organization>
|
326
|
-
</contributor>
|
327
|
-
</bibitem>
|
328
|
-
<bibitem id='iso2' type='standard'>
|
329
|
-
<docidentifier>ISO 8000-61</docidentifier>
|
330
|
-
<docnumber>8000-61</docnumber>
|
331
|
-
<contributor>
|
332
|
-
<role type='publisher'/>
|
333
|
-
<organization>
|
334
|
-
<name>International Organization for Standardization</name>
|
335
|
-
<abbreviation>ISO</abbreviation>
|
336
|
-
</organization>
|
337
|
-
</contributor>
|
338
|
-
</bibitem>
|
339
|
-
<bibitem id='iso1' type='standard'>
|
340
|
-
<docidentifier>ISO 8000-110</docidentifier>
|
341
|
-
<docnumber>8000-110</docnumber>
|
342
|
-
<contributor>
|
343
|
-
<role type='publisher'/>
|
344
|
-
<organization>
|
345
|
-
<name>International Organization for Standardization</name>
|
346
|
-
<abbreviation>ISO</abbreviation>
|
347
|
-
</organization>
|
348
|
-
</contributor>
|
349
|
-
</bibitem>
|
350
|
-
</references>
|
351
|
-
</bibliography>
|
352
|
-
</iso-standard>
|
353
|
-
OUTPUT
|
354
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
355
|
-
.to be_equivalent_to xmlpp(output)
|
356
|
-
end
|
357
|
-
|
358
|
-
it "renders withdrawn and cancelled ISO references" do
|
359
|
-
VCR.use_cassette "withdrawn_iso", match_requests_on: %i[method uri body] do
|
360
|
-
input = <<~INPUT
|
361
|
-
#{ISOBIB_BLANK_HDR}
|
362
|
-
|
363
|
-
<<iso1,clause=1>>
|
364
|
-
<<iso2,clause=1>>
|
365
|
-
|
366
|
-
[bibliography]
|
367
|
-
== Bibliography
|
368
|
-
|
369
|
-
* [[[iso1,ISO 683-3:2019]]]
|
370
|
-
* [[[iso2,ISO 31-0]]]
|
371
|
-
INPUT
|
372
|
-
output = <<~OUTPUT
|
373
|
-
#{BLANK_HDR}
|
374
|
-
<preface>
|
375
|
-
<foreword id='_' obligation='informative'>
|
376
|
-
<title>Foreword</title>
|
377
|
-
<p id='_'>
|
378
|
-
<eref type='inline' bibitemid='iso1' citeas='ISO 683-3:2019'>
|
379
|
-
<localityStack>
|
380
|
-
<locality type='clause'>
|
381
|
-
<referenceFrom>1</referenceFrom>
|
382
|
-
</locality>
|
383
|
-
</localityStack>
|
384
|
-
</eref>
|
385
|
-
<fn reference='1'>
|
386
|
-
<p id='_'>Cancelled and replaced by ISO 683-3:2022.</p>
|
387
|
-
</fn>
|
388
|
-
<eref type='inline' bibitemid='iso2' citeas='ISO 31-0'>
|
389
|
-
<localityStack>
|
390
|
-
<locality type='clause'>
|
391
|
-
<referenceFrom>1</referenceFrom>
|
392
|
-
</locality>
|
393
|
-
</localityStack>
|
394
|
-
</eref>
|
395
|
-
<fn reference='2'>
|
396
|
-
<p id='_'>Withdrawn.</p>
|
397
|
-
</fn>
|
398
|
-
</p>
|
399
|
-
</foreword>
|
400
|
-
</preface>
|
401
|
-
<sections> </sections>
|
402
|
-
<bibliography>
|
403
|
-
<references id='_' normative='false' obligation='informative'>
|
404
|
-
<title>Bibliography</title>
|
405
|
-
<bibitem id='iso2' type='standard'>
|
406
|
-
<fetched/>
|
407
|
-
<title type='title-intro' format='text/plain' language='en' script='Latn'>Title missing</title>
|
408
|
-
<title type='title-main' format='text/plain' language='en' script='Latn'>Legacy paper document</title>
|
409
|
-
<title type='main' format='text/plain' language='en' script='Latn'>Title missing — Legacy paper document</title>
|
410
|
-
<uri type='src'>https://www.iso.org/standard/2405.html</uri>
|
411
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/00/24/2405.detail.rss</uri>
|
412
|
-
<docidentifier type='ISO' primary='true'>ISO 31-0</docidentifier>
|
413
|
-
<docidentifier type='URN'>urn:iso:std:iso:31:-0:ed-1</docidentifier>
|
414
|
-
<docnumber>31</docnumber>
|
415
|
-
<contributor>
|
416
|
-
<role type='publisher'/>
|
417
|
-
<organization>
|
418
|
-
<name>International Organization for Standardization</name>
|
419
|
-
<abbreviation>ISO</abbreviation>
|
420
|
-
<uri>www.iso.org</uri>
|
421
|
-
</organization>
|
422
|
-
</contributor>
|
423
|
-
<edition>1</edition>
|
424
|
-
<note type='Unpublished-Status'>
|
425
|
-
<p id='_'>Withdrawn.</p>
|
426
|
-
</note>
|
427
|
-
<language>en</language>
|
428
|
-
<script>Latn</script>
|
429
|
-
<status>
|
430
|
-
<stage>95</stage>
|
431
|
-
<substage>99</substage>
|
432
|
-
</status>
|
433
|
-
<copyright>
|
434
|
-
<from>1974</from>
|
435
|
-
<owner>
|
436
|
-
<organization>
|
437
|
-
<name>ISO</name>
|
438
|
-
</organization>
|
439
|
-
</owner>
|
440
|
-
</copyright>
|
441
|
-
<relation type='instance'>
|
442
|
-
<bibitem type='standard'>
|
443
|
-
<fetched/>
|
444
|
-
<title type='title-intro' format='text/plain' language='en' script='Latn'>Title missing</title>
|
445
|
-
<title type='title-main' format='text/plain' language='en' script='Latn'>Legacy paper document</title>
|
446
|
-
<title type='main' format='text/plain' language='en' script='Latn'>Title missing — Legacy paper document</title>
|
447
|
-
<uri type='src'>https://www.iso.org/standard/2405.html</uri>
|
448
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/00/24/2405.detail.rss</uri>
|
449
|
-
<docidentifier type='ISO' primary='true'>ISO 31-0:1974</docidentifier>
|
450
|
-
<docidentifier type='URN'>urn:iso:std:iso:31:-0:ed-1</docidentifier>
|
451
|
-
<docnumber>31</docnumber>
|
452
|
-
<date type='published'>
|
453
|
-
<on>1974-01</on>
|
454
|
-
</date>
|
455
|
-
<contributor>
|
456
|
-
<role type='publisher'/>
|
457
|
-
<organization>
|
458
|
-
<name>International Organization for Standardization</name>
|
459
|
-
<abbreviation>ISO</abbreviation>
|
460
|
-
<uri>www.iso.org</uri>
|
461
|
-
</organization>
|
462
|
-
</contributor>
|
463
|
-
<edition>1</edition>
|
464
|
-
<note type='Unpublished-Status'>
|
465
|
-
<p id='_'>Withdrawn.</p>
|
466
|
-
</note>
|
467
|
-
<language>en</language>
|
468
|
-
<script>Latn</script>
|
469
|
-
<status>
|
470
|
-
<stage>95</stage>
|
471
|
-
<substage>99</substage>
|
472
|
-
</status>
|
473
|
-
<copyright>
|
474
|
-
<from>1974</from>
|
475
|
-
<owner>
|
476
|
-
<organization>
|
477
|
-
<name>ISO</name>
|
478
|
-
</organization>
|
479
|
-
</owner>
|
480
|
-
</copyright>
|
481
|
-
<place>Geneva</place>
|
482
|
-
</bibitem>
|
483
|
-
</relation>
|
484
|
-
<place>Geneva</place>
|
485
|
-
</bibitem>
|
486
|
-
<bibitem id='iso1' type='standard'>
|
487
|
-
<fetched/>
|
488
|
-
<title type='title-main' format='text/plain' language='en' script='Latn'>Heat-treatable steels, alloy steels and free-cutting steels</title>
|
489
|
-
<title type='title-part' format='text/plain' language='en' script='Latn'>Part 3: Case-hardening steels</title>
|
490
|
-
<title type='main' format='text/plain' language='en' script='Latn'>
|
491
|
-
Heat-treatable steels, alloy steels and free-cutting steels — Part 3:
|
492
|
-
Case-hardening steels
|
493
|
-
</title>
|
494
|
-
<uri type='src'>https://www.iso.org/standard/76389.html</uri>
|
495
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/07/63/76389.detail.rss</uri>
|
496
|
-
<docidentifier type='ISO' primary='true'>ISO 683-3:2019</docidentifier>
|
497
|
-
<docidentifier type='URN'>urn:iso:std:iso:683:-3:ed-3</docidentifier>
|
498
|
-
<docnumber>683</docnumber>
|
499
|
-
<date type='published'>
|
500
|
-
<on>2019-01</on>
|
501
|
-
</date>
|
502
|
-
<contributor>
|
503
|
-
<role type='publisher'/>
|
504
|
-
<organization>
|
505
|
-
<name>International Organization for Standardization</name>
|
506
|
-
<abbreviation>ISO</abbreviation>
|
507
|
-
<uri>www.iso.org</uri>
|
508
|
-
</organization>
|
509
|
-
</contributor>
|
510
|
-
<edition>3</edition>
|
511
|
-
<note type='Unpublished-Status'>
|
512
|
-
<p id='_'>Cancelled and replaced by ISO 683-3:2022.</p>
|
513
|
-
</note>
|
514
|
-
<language>en</language>
|
515
|
-
<script>Latn</script>
|
516
|
-
<abstract format='text/plain' language='en' script='Latn'>
|
517
|
-
This document specifies the technical delivery requirements for —
|
518
|
-
semi-finished products, hot formed, e.g. blooms, billets, slabs (see
|
519
|
-
NOTE 1), — bars (see NOTE 1), — wire rod, — finished flat products,
|
520
|
-
and — hammer or drop forgings (see NOTE 1) manufactured from the
|
521
|
-
case-hardening non-alloy or alloy steels listed in Table 3 and
|
522
|
-
supplied in one of the heat-treatment conditions given for the
|
523
|
-
different types of products in Table 1 and in one of the surface
|
524
|
-
conditions given in Table 2. The steels are, in general, intended for
|
525
|
-
the manufacture of case-hardened machine parts. NOTE 1 Hammer-forged
|
526
|
-
semi-finished products (blooms, billets, slabs, etc.), seamless rolled
|
527
|
-
rings and hammer-forged bars are covered under semi-finished products
|
528
|
-
or bars and not under the term “hammer and drop forgings”. NOTE 2 For
|
529
|
-
International Standards relating to steels complying with the
|
530
|
-
requirements for the chemical composition in Table 3, however,
|
531
|
-
supplied in other product forms or treatment conditions than given
|
532
|
-
above or intended for special applications, and for other related
|
533
|
-
International Standards, see the Bibliography. In special cases,
|
534
|
-
variations in these technical delivery requirements or additions to
|
535
|
-
them can form the subject of an agreement at the time of enquiry and
|
536
|
-
order (see 5.2 and Annex A). In addition to this document, the general
|
537
|
-
technical delivery requirements of ISO 404 are applicable.
|
538
|
-
</abstract>
|
539
|
-
<status>
|
540
|
-
<stage>95</stage>
|
541
|
-
<substage>99</substage>
|
542
|
-
</status>
|
543
|
-
<copyright>
|
544
|
-
<from>2019</from>
|
545
|
-
<owner>
|
546
|
-
<organization>
|
547
|
-
<name>ISO</name>
|
548
|
-
</organization>
|
549
|
-
</owner>
|
550
|
-
</copyright>
|
551
|
-
<relation type='obsoletes'>
|
552
|
-
<bibitem type='standard'>
|
553
|
-
<formattedref format='text/plain'>ISO 683-3:2016</formattedref>
|
554
|
-
<docidentifier type='ISO' primary='true'>ISO 683-3:2016</docidentifier>
|
555
|
-
</bibitem>
|
556
|
-
</relation>
|
557
|
-
<relation type='updates'>
|
558
|
-
<bibitem type='standard'>
|
559
|
-
<formattedref format='text/plain'>ISO 683-3:2022</formattedref>
|
560
|
-
<docidentifier type='ISO' primary='true'>ISO 683-3:2022</docidentifier>
|
561
|
-
<date type='circulated'>
|
562
|
-
<on>2022-01-21</on>
|
563
|
-
</date>
|
564
|
-
</bibitem>
|
565
|
-
</relation>
|
566
|
-
<place>Geneva</place>
|
567
|
-
</bibitem>
|
568
|
-
</references>
|
569
|
-
</bibliography>
|
570
|
-
</iso-standard>
|
571
|
-
OUTPUT
|
572
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
573
|
-
.to be_equivalent_to xmlpp(output)
|
574
|
-
end
|
575
|
-
end
|
576
|
-
|
577
|
-
private
|
578
|
-
|
579
|
-
def mock_fdis
|
580
|
-
expect(RelatonIso::IsoBibliography).to receive(:get)
|
581
|
-
.with("ISO/FDIS 17664-1", nil, anything) do
|
582
|
-
RelatonIsoBib::XMLParser.from_xml(<<~"OUTPUT")
|
583
|
-
<bibitem id="x" type="standard">
|
584
|
-
<fetched>#{Date.today}</fetched>
|
585
|
-
<title format="text/plain" language="fr" script="Latn" type="title-intro">Traitement de produits de soins de santé</title>
|
586
|
-
<title format="text/plain" language="fr" script="Latn" type="title-main">Informations relatives au traitement des dispositifs médicaux à fournir par le fabricant du dispositif</title>
|
587
|
-
<title format="text/plain" language="fr" script="Latn" type="title-part">Partie 1: Titre manque</title>
|
588
|
-
<title format="text/plain" language="fr" script="Latn" type="main">Traitement de produits de soins de santé — Informations relatives au traitement des dispositifs médicaux à fournir par le fabricant du dispositif — Partie 1: Titre manque</title>
|
589
|
-
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
590
|
-
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
591
|
-
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
592
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
593
|
-
<docnumber>17664</docnumber>
|
594
|
-
<contributor>
|
595
|
-
<role type="publisher"/>
|
596
|
-
<organization>
|
597
|
-
<name>International Organization for Standardization</name>
|
598
|
-
<abbreviation>ISO</abbreviation>
|
599
|
-
<uri>www.iso.org</uri>
|
600
|
-
</organization>
|
601
|
-
</contributor>
|
602
|
-
<edition>1</edition>
|
603
|
-
<language>en</language>
|
604
|
-
<language>fr</language>
|
605
|
-
<script>Latn</script>
|
606
|
-
<status>
|
607
|
-
<stage>50</stage>
|
608
|
-
<substage>00</substage>
|
609
|
-
</status>
|
610
|
-
<copyright>
|
611
|
-
<from>unknown</from>
|
612
|
-
<owner>
|
613
|
-
<organization>
|
614
|
-
<name>ISO/FDIS</name>
|
615
|
-
</organization>
|
616
|
-
</owner>
|
617
|
-
</copyright>
|
618
|
-
<relation type="obsoletes">
|
619
|
-
<bibitem type="standard">
|
620
|
-
<formattedref format="text/plain">ISO 17664:2017</formattedref>
|
621
|
-
</bibitem>
|
622
|
-
</relation>
|
623
|
-
<relation type="instance">
|
624
|
-
<bibitem type="standard">
|
625
|
-
<fetched>2020-11-03</fetched>
|
626
|
-
<title format="text/plain" language="fr" script="Latn" type="title-intro">Traitement de produits de soins de santé</title>
|
627
|
-
<title format="text/plain" language="fr" script="Latn" type="title-main">Informations relatives au traitement des dispositifs médicaux à fournir par le fabricant du dispositif</title>
|
628
|
-
<title format="text/plain" language="fr" script="Latn" type="title-part">Partie 1: Titre manque</title>
|
629
|
-
<title format="text/plain" language="fr" script="Latn" type="main">Traitement de produits de soins de santé — Informations relatives au traitement des dispositifs médicaux à fournir par le fabricant du dispositif — Partie 1: Titre manque</title>
|
630
|
-
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
631
|
-
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
632
|
-
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
633
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
634
|
-
<docnumber>17664</docnumber>
|
635
|
-
<contributor>
|
636
|
-
<role type="publisher"/>
|
637
|
-
<organization>
|
638
|
-
<name>International Organization for Standardization</name>
|
639
|
-
<abbreviation>ISO</abbreviation>
|
640
|
-
<uri>www.iso.org</uri>
|
641
|
-
</organization>
|
642
|
-
</contributor>
|
643
|
-
<edition>1</edition>
|
644
|
-
<language>en</language>
|
645
|
-
<language>fr</language>
|
646
|
-
<script>Latn</script>
|
647
|
-
<status>
|
648
|
-
<stage>50</stage>
|
649
|
-
<substage>00</substage>
|
650
|
-
</status>
|
651
|
-
<copyright>
|
652
|
-
<from>unknown</from>
|
653
|
-
<owner>
|
654
|
-
<organization>
|
655
|
-
<name>ISO/FDIS</name>
|
656
|
-
</organization>
|
657
|
-
</owner>
|
658
|
-
</copyright>
|
659
|
-
<relation type="obsoletes">
|
660
|
-
<bibitem type="standard">
|
661
|
-
<formattedref format="text/plain">ISO 17664:2017</formattedref>
|
662
|
-
</bibitem>
|
663
|
-
</relation>
|
664
|
-
<place>Geneva</place>
|
665
|
-
</bibitem>
|
666
|
-
</relation>
|
667
|
-
<place>Geneva</place>
|
668
|
-
</bibitem>
|
669
|
-
OUTPUT
|
670
|
-
end
|
671
|
-
end
|
672
|
-
end
|