metanorma-iso 2.1.9 → 2.2.1
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/i18n-en.yaml +2 -0
- data/lib/isodoc/iso/i18n-fr.yaml +1 -1
- data/lib/isodoc/iso/i18n-zh-Hans.yaml +0 -1
- data/lib/isodoc/iso/init.rb +15 -10
- data/lib/isodoc/iso/iso.amendment.xsl +110 -15
- data/lib/isodoc/iso/iso.international-standard.xsl +110 -15
- data/lib/isodoc/iso/metadata.rb +1 -1
- data/lib/isodoc/iso/presentation_xref.rb +1 -0
- data/lib/isodoc/iso/word_convert.rb +6 -0
- data/lib/isodoc/iso/xref.rb +43 -99
- data/lib/isodoc/iso/xref_section.rb +79 -0
- data/lib/metanorma/iso/biblio.rng +32 -1
- data/lib/metanorma/iso/front_id.rb +2 -2
- data/lib/metanorma/iso/isodoc.rng +9 -0
- data/lib/metanorma/iso/isostandard.rng +3 -0
- data/lib/metanorma/iso/validate.rb +1 -1
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/metanorma/iso.rb +0 -1
- data/lib/metanorma/requirements/modspec.rb +74 -8
- data/lib/metanorma-iso.rb +1 -0
- data/lib/relaton/render/config.yml +53 -1
- data/metanorma-iso.gemspec +1 -1
- data/spec/isodoc/i18n_spec.rb +2 -2
- data/spec/isodoc/ref_spec.rb +4 -4
- data/spec/metanorma/base_spec.rb +3 -3
- data/spec/metanorma/refs_spec.rb +7 -7
- data/spec/relaton/render_spec.rb +568 -0
- data/spec/requirements/requirement_components_spec.rb +622 -0
- data/spec/requirements/requirements_spec.rb +436 -54
- data/spec/requirements/xref_spec.rb +41 -35
- data/spec/vcr_cassettes/docrels.yml +33 -33
- data/spec/vcr_cassettes/withdrawn_iso.yml +29 -29
- metadata +7 -4
data/spec/isodoc/ref_spec.rb
CHANGED
@@ -209,12 +209,12 @@ RSpec.describe IsoDoc do
|
|
209
209
|
<references id="_bibliography" normative="false" obligation="informative" displayorder="3">
|
210
210
|
<title depth="1">Bibliography</title>
|
211
211
|
<bibitem id="ISBN" type="book">
|
212
|
-
<formattedref><em>Chemicals for analytical laboratory use</em>. n.p.: n.d.
|
212
|
+
<formattedref><em>Chemicals for analytical laboratory use</em>. n.p.: n.d. </formattedref>
|
213
213
|
<docidentifier type="metanorma-ordinal">[1]</docidentifier>
|
214
214
|
<docidentifier type="ISBN">ISBN</docidentifier>
|
215
215
|
</bibitem>
|
216
216
|
<bibitem id="ISSN" type="journal">
|
217
|
-
<formattedref><em>Instruments for analytical laboratory use</em>. n.d
|
217
|
+
<formattedref><em>Instruments for analytical laboratory use</em>. n.d.</formattedref>
|
218
218
|
<docidentifier type="metanorma-ordinal">[2]</docidentifier>
|
219
219
|
<docidentifier type="ISSN">ISSN</docidentifier>
|
220
220
|
</bibitem>
|
@@ -326,12 +326,12 @@ RSpec.describe IsoDoc do
|
|
326
326
|
<p id='ISBN' class='Biblio'>
|
327
327
|
[1]
|
328
328
|
<i>Chemicals for analytical laboratory use</i>
|
329
|
-
. n.p.: n.d.
|
329
|
+
. n.p.: n.d.
|
330
330
|
</p>
|
331
331
|
<p id='ISSN' class='Biblio'>
|
332
332
|
[2]
|
333
333
|
<i>Instruments for analytical laboratory use</i>
|
334
|
-
. n.d.
|
334
|
+
. n.d.
|
335
335
|
</p>
|
336
336
|
<div class='Note'>
|
337
337
|
<p>
|
data/spec/metanorma/base_spec.rb
CHANGED
@@ -1005,7 +1005,7 @@ RSpec.describe Metanorma::ISO do
|
|
1005
1005
|
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
1006
1006
|
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
1007
1007
|
<docidentifier type='ISO' primary="true">ISO 123:2001</docidentifier>
|
1008
|
-
<docidentifier type='URN'>urn:iso:std:iso:123:
|
1008
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:ed-3</docidentifier>
|
1009
1009
|
<docnumber>123</docnumber>
|
1010
1010
|
<date type='published'><on>2001-05</on></date>
|
1011
1011
|
<contributor>
|
@@ -1078,7 +1078,7 @@ RSpec.describe Metanorma::ISO do
|
|
1078
1078
|
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
|
1079
1079
|
<uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
|
1080
1080
|
<docidentifier type='ISO' primary="true">ISO 125</docidentifier>
|
1081
|
-
<docidentifier type='URN'>urn:iso:std:iso:125:
|
1081
|
+
<docidentifier type='URN'>urn:iso:std:iso:125:ed-7</docidentifier>
|
1082
1082
|
<docnumber>125</docnumber>
|
1083
1083
|
<contributor>
|
1084
1084
|
<role type='publisher'/>
|
@@ -1130,7 +1130,7 @@ RSpec.describe Metanorma::ISO do
|
|
1130
1130
|
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
|
1131
1131
|
<uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
|
1132
1132
|
<docidentifier type='ISO' primary="true">ISO 125:2020</docidentifier>
|
1133
|
-
<docidentifier type='URN'>urn:iso:std:iso:125:
|
1133
|
+
<docidentifier type='URN'>urn:iso:std:iso:125:ed-7</docidentifier>
|
1134
1134
|
<docnumber>125</docnumber>
|
1135
1135
|
<date type='published'>
|
1136
1136
|
<on>2020-02</on>
|
data/spec/metanorma/refs_spec.rb
CHANGED
@@ -78,7 +78,7 @@ RSpec.describe Metanorma::ISO do
|
|
78
78
|
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
79
79
|
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
80
80
|
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
81
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:
|
81
|
+
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
82
82
|
<docnumber>17664</docnumber>
|
83
83
|
<contributor>
|
84
84
|
<role type="publisher"/>
|
@@ -127,7 +127,7 @@ RSpec.describe Metanorma::ISO do
|
|
127
127
|
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
128
128
|
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
129
129
|
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
130
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:
|
130
|
+
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
131
131
|
<docnumber>17664</docnumber>
|
132
132
|
<contributor>
|
133
133
|
<role type="publisher"/>
|
@@ -410,7 +410,7 @@ RSpec.describe Metanorma::ISO do
|
|
410
410
|
<uri type='src'>https://www.iso.org/standard/2405.html</uri>
|
411
411
|
<uri type='rss'>https://www.iso.org/contents/data/standard/00/24/2405.detail.rss</uri>
|
412
412
|
<docidentifier type='ISO' primary='true'>ISO 31-0</docidentifier>
|
413
|
-
<docidentifier type='URN'>urn:iso:std:iso:31:-0:
|
413
|
+
<docidentifier type='URN'>urn:iso:std:iso:31:-0:ed-1</docidentifier>
|
414
414
|
<docnumber>31</docnumber>
|
415
415
|
<contributor>
|
416
416
|
<role type='publisher'/>
|
@@ -447,7 +447,7 @@ RSpec.describe Metanorma::ISO do
|
|
447
447
|
<uri type='src'>https://www.iso.org/standard/2405.html</uri>
|
448
448
|
<uri type='rss'>https://www.iso.org/contents/data/standard/00/24/2405.detail.rss</uri>
|
449
449
|
<docidentifier type='ISO' primary='true'>ISO 31-0:1974</docidentifier>
|
450
|
-
<docidentifier type='URN'>urn:iso:std:iso:31:-0:
|
450
|
+
<docidentifier type='URN'>urn:iso:std:iso:31:-0:ed-1</docidentifier>
|
451
451
|
<docnumber>31</docnumber>
|
452
452
|
<date type='published'>
|
453
453
|
<on>1974-01</on>
|
@@ -494,7 +494,7 @@ RSpec.describe Metanorma::ISO do
|
|
494
494
|
<uri type='src'>https://www.iso.org/standard/76389.html</uri>
|
495
495
|
<uri type='rss'>https://www.iso.org/contents/data/standard/07/63/76389.detail.rss</uri>
|
496
496
|
<docidentifier type='ISO' primary='true'>ISO 683-3:2019</docidentifier>
|
497
|
-
<docidentifier type='URN'>urn:iso:std:iso:683:-3:
|
497
|
+
<docidentifier type='URN'>urn:iso:std:iso:683:-3:ed-3</docidentifier>
|
498
498
|
<docnumber>683</docnumber>
|
499
499
|
<date type='published'>
|
500
500
|
<on>2019-01</on>
|
@@ -589,7 +589,7 @@ RSpec.describe Metanorma::ISO do
|
|
589
589
|
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
590
590
|
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
591
591
|
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
592
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:
|
592
|
+
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
593
593
|
<docnumber>17664</docnumber>
|
594
594
|
<contributor>
|
595
595
|
<role type="publisher"/>
|
@@ -630,7 +630,7 @@ RSpec.describe Metanorma::ISO do
|
|
630
630
|
<uri type="src">https://www.iso.org/standard/81720.html</uri>
|
631
631
|
<uri type="rss">https://www.iso.org/contents/data/standard/08/17/81720.detail.rss</uri>
|
632
632
|
<docidentifier type="ISO">ISO/FDIS 17664-1</docidentifier>
|
633
|
-
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:
|
633
|
+
<docidentifier type="URN">urn:iso:std:iso-fdis:17664:-1:ed-1:fr</docidentifier>
|
634
634
|
<docnumber>17664</docnumber>
|
635
635
|
<contributor>
|
636
636
|
<role type="publisher"/>
|