metanorma-standoc 1.5.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +66 -0
  3. data/README.adoc +1 -3
  4. data/lib/asciidoctor/standoc/base.rb +6 -1
  5. data/lib/asciidoctor/standoc/basicdoc.rng +4 -11
  6. data/lib/asciidoctor/standoc/cleanup.rb +78 -12
  7. data/lib/asciidoctor/standoc/cleanup_block.rb +41 -4
  8. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +14 -0
  9. data/lib/asciidoctor/standoc/cleanup_footnotes.rb +25 -0
  10. data/lib/asciidoctor/standoc/cleanup_inline.rb +6 -2
  11. data/lib/asciidoctor/standoc/cleanup_ref.rb +3 -4
  12. data/lib/asciidoctor/standoc/converter.rb +58 -3
  13. data/lib/asciidoctor/standoc/front.rb +9 -3
  14. data/lib/asciidoctor/standoc/front_contributor.rb +43 -11
  15. data/lib/asciidoctor/standoc/inline.rb +18 -40
  16. data/lib/asciidoctor/standoc/isodoc.rng +27 -50
  17. data/lib/asciidoctor/standoc/lists.rb +4 -2
  18. data/lib/asciidoctor/standoc/macros.rb +28 -2
  19. data/lib/asciidoctor/standoc/ref.rb +46 -48
  20. data/lib/asciidoctor/standoc/ref_sect.rb +16 -8
  21. data/lib/asciidoctor/standoc/section.rb +5 -9
  22. data/lib/liquid/custom_blocks/with_json_nested_context.rb +18 -0
  23. data/lib/liquid/custom_blocks/with_yaml_nested_context.rb +19 -0
  24. data/lib/metanorma/standoc.rb +0 -5
  25. data/lib/metanorma/standoc/version.rb +20 -1
  26. data/metanorma-standoc.gemspec +7 -3
  27. data/spec/asciidoctor-standoc/base_spec.rb +246 -9
  28. data/spec/asciidoctor-standoc/blocks_spec.rb +1 -1
  29. data/spec/asciidoctor-standoc/cleanup_sections_spec.rb +1514 -0
  30. data/spec/asciidoctor-standoc/cleanup_spec.rb +384 -1547
  31. data/spec/asciidoctor-standoc/inline_spec.rb +128 -4
  32. data/spec/asciidoctor-standoc/isobib_cache_spec.rb +15 -22
  33. data/spec/asciidoctor-standoc/lists_spec.rb +10 -1
  34. data/spec/asciidoctor-standoc/macros_json2text_spec.rb +1 -1
  35. data/spec/asciidoctor-standoc/macros_lutaml_spec.rb +80 -0
  36. data/spec/asciidoctor-standoc/macros_spec.rb +258 -0
  37. data/spec/asciidoctor-standoc/macros_yaml2text_spec.rb +1 -1
  38. data/spec/asciidoctor-standoc/refs_dl_spec.rb +8 -8
  39. data/spec/asciidoctor-standoc/refs_spec.rb +362 -104
  40. data/spec/asciidoctor-standoc/validate_spec.rb +26 -0
  41. data/spec/fixtures/diagram_definitions.lutaml +22 -0
  42. data/spec/fixtures/test.exp +121 -0
  43. data/spec/spec_helper.rb +34 -1
  44. data/spec/support/shared_examples/structured_data_2_text_preprocessor.rb +201 -3
  45. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +47 -231
  46. data/spec/vcr_cassettes/isobib_get_123.yml +14 -60
  47. data/spec/vcr_cassettes/isobib_get_123_1.yml +24 -116
  48. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +361 -0
  49. data/spec/vcr_cassettes/isobib_get_123_2001.yml +14 -60
  50. data/spec/vcr_cassettes/isobib_get_124.yml +12 -58
  51. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +8 -8
  52. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +292 -162
  53. metadata +59 -17
  54. data/.github/workflows/macos.yml +0 -46
  55. data/.github/workflows/ubuntu.yml +0 -49
  56. data/.github/workflows/windows.yml +0 -53
  57. data/lib/asciidoctor/standoc/base_structured_text_preprocessor.rb +0 -123
  58. data/lib/asciidoctor/standoc/json2_text_preprocessor.rb +0 -43
  59. data/lib/asciidoctor/standoc/yaml2_text_preprocessor.rb +0 -43
  60. data/lib/metanorma/standoc/latexml_requirement.rb +0 -62
  61. data/lib/metanorma/standoc/requirement.rb +0 -13
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::Standoc::Yaml2TextPreprocessor do
3
+ RSpec.describe 'Yaml2Text macros' do
4
4
  it_behaves_like "structured data 2 text preprocessor" do
5
5
  let(:extention) { "yaml" }
6
6
  def transform_to_type(data)
@@ -291,7 +291,7 @@ formattedref::
291
291
  </sections><bibliography><references id="_" obligation="informative" normative="true">
292
292
  <title>Normative references</title>
293
293
  #{NORM_REF_BOILERPLATE}
294
- <bibitem id="TC211" type="standard">
294
+ <bibitem id="ISOTC211" type="standard">
295
295
  <fetched>2019-06-30</fetched>
296
296
  <title type="main" format="text/plain">Geographic information</title>
297
297
  <title type="subtitle" format="text/plain" language="en" script="Latn">Geographic information subtitle</title>
@@ -306,11 +306,11 @@ formattedref::
306
306
  <on>2014</on>
307
307
  </date>
308
308
  <date type="published">
309
- <from>2014</from>
310
- <to>2014</to>
309
+ <from>2014-04</from>
310
+ <to>2014-05</to>
311
311
  </date>
312
312
  <date type="accessed">
313
- <on>2015</on>
313
+ <on>2015-05-20</on>
314
314
  </date>
315
315
  <contributor>
316
316
  <role type="publisher"><description>Publisher role</description></role>
@@ -611,7 +611,7 @@ series.formattedref.script:: Latn
611
611
  </sections><bibliography><references id="_" obligation="informative" normative="true">
612
612
  <title>Normative references</title>
613
613
  #{NORM_REF_BOILERPLATE}
614
- <bibitem id="TC211" type="standard">
614
+ <bibitem id="ISOTC211" type="standard">
615
615
  <fetched>2019-06-30</fetched>
616
616
  <title type="main" format="text/plain">Geographic information</title>
617
617
  <title type="subtitle" format="text/plain" language="en" script="Latn">Geographic information subtitle</title>
@@ -624,11 +624,11 @@ series.formattedref.script:: Latn
624
624
  <on>2014</on>
625
625
  </date>
626
626
  <date type="published">
627
- <from>2014</from>
628
- <to>2014</to>
627
+ <from>2014-04</from>
628
+ <to>2014-05</to>
629
629
  </date>
630
630
  <date type="accessed">
631
- <on>2015</on>
631
+ <on>2015-05-20</on>
632
632
  </date>
633
633
  <contributor>
634
634
  <role type="publisher"><description>Publisher role</description></role>
@@ -30,7 +30,7 @@ RSpec.describe Asciidoctor::Standoc do
30
30
  </bibitem>
31
31
  <bibitem id='iso124' type='standard'>
32
32
  <title format='text/plain'>Standard</title>
33
- <docidentifier type='metanorma'>[1]</docidentifier>
33
+ <docidentifier type='metanorma'>[2]</docidentifier>
34
34
  <docidentifier>ISO 123</docidentifier>
35
35
  <docnumber>123</docnumber>
36
36
  <contributor>
@@ -77,7 +77,7 @@ RSpec.describe Asciidoctor::Standoc do
77
77
  </bibitem>
78
78
  <bibitem id="iso124" type="standard">
79
79
  <title format="text/plain">Standard</title>
80
- <docidentifier type='metanorma'>[1]</docidentifier>
80
+ <docidentifier type='metanorma'>[2]</docidentifier>
81
81
  <docidentifier>ISO 123:1066-1067</docidentifier>
82
82
  <docnumber>123</docnumber>
83
83
  <date type="published">
@@ -120,7 +120,7 @@ RSpec.describe Asciidoctor::Standoc do
120
120
  <title>Foreword</title>
121
121
  <p id='_'>
122
122
  <eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
123
- <eref type='inline' bibitemid='iso124' citeas='[1]'/>
123
+ <eref type='inline' bibitemid='iso124' citeas='[2]'/>
124
124
  </p>
125
125
  </foreword>
126
126
  </preface>
@@ -213,7 +213,7 @@ RSpec.describe Asciidoctor::Standoc do
213
213
  </bibitem>
214
214
  </relation>
215
215
  <docidentifier>ISO 123</docidentifier>
216
- <docidentifier type='metanorma'>[1]</docidentifier>
216
+ <docidentifier type='metanorma'>[2]</docidentifier>
217
217
  <title><em>Standard</em></title>
218
218
  </bibitem>
219
219
  </references></bibliography>
@@ -223,7 +223,6 @@ RSpec.describe Asciidoctor::Standoc do
223
223
  end
224
224
 
225
225
  it "fetches simple ISO reference" do
226
- # mock_isobib_get_123
227
226
  VCR.use_cassette "isobib_get_123_1" do
228
227
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
229
228
  #{ISOBIB_BLANK_HDR}
@@ -243,6 +242,255 @@ RSpec.describe Asciidoctor::Standoc do
243
242
  <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
244
243
  <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
245
244
  <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
245
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
246
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
247
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
248
+ <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
249
+ <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
250
+ <docnumber>123</docnumber>
251
+ <date type='published'>
252
+ <on>2001-05</on>
253
+ </date>
254
+ <contributor>
255
+ <role type='publisher'/>
256
+ <organization>
257
+ <name>International Organization for Standardization</name>
258
+ <abbreviation>ISO</abbreviation>
259
+ <uri>www.iso.org</uri>
260
+ </organization>
261
+ </contributor>
262
+ <edition>3</edition>
263
+ <language>en</language>
264
+ <script>Latn</script>
265
+ <status>
266
+ <stage>90</stage>
267
+ <substage>93</substage>
268
+ </status>
269
+ <copyright>
270
+ <from>2001</from>
271
+ <owner>
272
+ <organization>
273
+ <name>ISO</name>
274
+ </organization>
275
+ </owner>
276
+ </copyright>
277
+ <relation type='obsoletes'>
278
+ <bibitem type='standard'>
279
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
280
+ </bibitem>
281
+ </relation>
282
+ <relation type='instance'>
283
+ <bibitem type='standard'>
284
+ <fetched>#{Date.today}</fetched>
285
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
286
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
287
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
288
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
289
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
290
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
291
+ <docidentifier type='ISO'>ISO 123:2001</docidentifier>
292
+ <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en</docidentifier>
293
+ <docnumber>123</docnumber>
294
+ <date type='published'>
295
+ <on>2001-05</on>
296
+ </date>
297
+ <contributor>
298
+ <role type='publisher'/>
299
+ <organization>
300
+ <name>International Organization for Standardization</name>
301
+ <abbreviation>ISO</abbreviation>
302
+ <uri>www.iso.org</uri>
303
+ </organization>
304
+ </contributor>
305
+ <edition>3</edition>
306
+ <language>en</language>
307
+ <script>Latn</script>
308
+ <abstract format='text/plain' language='en' script='Latn'>
309
+ This International Standard specifies procedures for sampling
310
+ natural rubber latex concentrate and for sampling syntheticrubber
311
+ latices and artificial latices. It is also suitable for sampling
312
+ rubber latex contained in drums, tank cars ortanks. The procedures
313
+ may also be used for sampling plastics dispersions.
314
+ </abstract>
315
+ <status>
316
+ <stage>90</stage>
317
+ <substage>93</substage>
318
+ </status>
319
+ <copyright>
320
+ <from>2001</from>
321
+ <owner>
322
+ <organization>
323
+ <name>ISO</name>
324
+ </organization>
325
+ </owner>
326
+ </copyright>
327
+ <relation type='obsoletes'>
328
+ <bibitem type='standard'>
329
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
330
+ </bibitem>
331
+ </relation>
332
+ <place>Geneva</place>
333
+ </bibitem>
334
+ </relation>
335
+ <relation type='instance'>
336
+ <bibitem type='standard'>
337
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
338
+ </bibitem>
339
+ </relation>
340
+ <relation type='instance'>
341
+ <bibitem type='standard'>
342
+ <formattedref format='text/plain'>ISO 123:1974</formattedref>
343
+ </bibitem>
344
+ </relation>
345
+ <place>Geneva</place>
346
+ </bibitem>
347
+ <bibitem id='iso124' type='standard'>
348
+ <fetched>#{Date.today}</fetched>
349
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
350
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
351
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
352
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
353
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
354
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
355
+ <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
356
+ <docidentifier type='metanorma'>[2]</docidentifier>
357
+ <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
358
+ <docnumber>123</docnumber>
359
+ <date type='published'>
360
+ <on>2001-05</on>
361
+ </date>
362
+ <contributor>
363
+ <role type='publisher'/>
364
+ <organization>
365
+ <name>International Organization for Standardization</name>
366
+ <abbreviation>ISO</abbreviation>
367
+ <uri>www.iso.org</uri>
368
+ </organization>
369
+ </contributor>
370
+ <edition>3</edition>
371
+ <language>en</language>
372
+ <script>Latn</script>
373
+ <status>
374
+ <stage>90</stage>
375
+ <substage>93</substage>
376
+ </status>
377
+ <copyright>
378
+ <from>2001</from>
379
+ <owner>
380
+ <organization>
381
+ <name>ISO</name>
382
+ </organization>
383
+ </owner>
384
+ </copyright>
385
+ <relation type='obsoletes'>
386
+ <bibitem type='standard'>
387
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
388
+ </bibitem>
389
+ </relation>
390
+ <relation type='instance'>
391
+ <bibitem type='standard'>
392
+ <fetched>#{Date.today}</fetched>
393
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
394
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
395
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
396
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
397
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
398
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
399
+ <docidentifier type='ISO'>ISO 123:2001</docidentifier>
400
+ <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en</docidentifier>
401
+ <docnumber>123</docnumber>
402
+ <date type='published'>
403
+ <on>2001-05</on>
404
+ </date>
405
+ <contributor>
406
+ <role type='publisher'/>
407
+ <organization>
408
+ <name>International Organization for Standardization</name>
409
+ <abbreviation>ISO</abbreviation>
410
+ <uri>www.iso.org</uri>
411
+ </organization>
412
+ </contributor>
413
+ <edition>3</edition>
414
+ <language>en</language>
415
+ <script>Latn</script>
416
+ <abstract format='text/plain' language='en' script='Latn'>
417
+ This International Standard specifies procedures for sampling
418
+ natural rubber latex concentrate and for sampling syntheticrubber
419
+ latices and artificial latices. It is also suitable for sampling
420
+ rubber latex contained in drums, tank cars ortanks. The procedures
421
+ may also be used for sampling plastics dispersions.
422
+ </abstract>
423
+ <status>
424
+ <stage>90</stage>
425
+ <substage>93</substage>
426
+ </status>
427
+ <copyright>
428
+ <from>2001</from>
429
+ <owner>
430
+ <organization>
431
+ <name>ISO</name>
432
+ </organization>
433
+ </owner>
434
+ </copyright>
435
+ <relation type='obsoletes'>
436
+ <bibitem type='standard'>
437
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
438
+ </bibitem>
439
+ </relation>
440
+ <place>Geneva</place>
441
+ </bibitem>
442
+ </relation>
443
+ <relation type='instance'>
444
+ <bibitem type='standard'>
445
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
446
+ </bibitem>
447
+ </relation>
448
+ <relation type='instance'>
449
+ <bibitem type='standard'>
450
+ <formattedref format='text/plain'>ISO 123:1974</formattedref>
451
+ </bibitem>
452
+ </relation>
453
+ <place>Geneva</place>
454
+ </bibitem>
455
+ </references>
456
+ </bibliography>
457
+ </standard-document>
458
+ OUTPUT
459
+ end
460
+ end
461
+
462
+ it "fetches simple ISO reference in French" do
463
+ VCR.use_cassette "isobib_get_123_1_fr" do
464
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
465
+ = Document title
466
+ Author
467
+ :docfile: test.adoc
468
+ :nodoc:
469
+ :novalid:
470
+ :no-isobib-cache:
471
+ :language: fr
472
+
473
+ [bibliography]
474
+ == Normative References
475
+
476
+ * [[[iso123,ISO 123]]] _Standard_
477
+ * [[[iso124,(1)ISO 123]]] _Standard_
478
+ INPUT
479
+ #{BLANK_HDR.sub(%r{<language>en</language>}, "<language>fr</language>")}
480
+ <sections>
481
+
482
+ </sections><bibliography>
483
+ <references id='_' normative='true' obligation='informative'>
484
+ <title>Références normatives</title>
485
+ <p id='_'>
486
+ Les documents suivants cités dans le texte constituent, pour tout ou
487
+ partie de leur contenu, des exigences du présent document. Pour les
488
+ références datées, seule l’édition citée s’applique. Pour les références
489
+ non datées, la dernière édition du document de référence s’applique (y
490
+ compris les éventuels amendements).
491
+ </p>
492
+ <bibitem id='iso123' type='standard'>
493
+ <fetched>#{Date.today}</fetched>
246
494
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
247
495
  <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
248
496
  <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
@@ -250,9 +498,10 @@ RSpec.describe Asciidoctor::Standoc do
250
498
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
251
499
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
252
500
  <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
501
+ <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
253
502
  <docnumber>123</docnumber>
254
503
  <date type='published'>
255
- <on>2001</on>
504
+ <on>2001-05</on>
256
505
  </date>
257
506
  <contributor>
258
507
  <role type='publisher'/>
@@ -286,9 +535,6 @@ RSpec.describe Asciidoctor::Standoc do
286
535
  <relation type='instance'>
287
536
  <bibitem type='standard'>
288
537
  <fetched>#{Date.today}</fetched>
289
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
290
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
291
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
292
538
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
293
539
  <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
294
540
  <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
@@ -296,9 +542,10 @@ RSpec.describe Asciidoctor::Standoc do
296
542
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
297
543
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
298
544
  <docidentifier type='ISO'>ISO 123:2001</docidentifier>
545
+ <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
299
546
  <docnumber>123</docnumber>
300
547
  <date type='published'>
301
- <on>2001</on>
548
+ <on>2001-05</on>
302
549
  </date>
303
550
  <contributor>
304
551
  <role type='publisher'/>
@@ -312,6 +559,15 @@ RSpec.describe Asciidoctor::Standoc do
312
559
  <language>en</language>
313
560
  <language>fr</language>
314
561
  <script>Latn</script>
562
+ <abstract format='text/plain' language='fr' script='Latn'>
563
+ La présente Norme internationale spécifie des méthodes
564
+ d’échantillonnage pour des concentrés de latex de
565
+ caoutchoucnaturel et pour échantillonner des latex de caoutchouc
566
+ synthétique et des latex artificiels. Elle s’applique égalementà
567
+ l’échantillonnage de latex de caoutchouc contenus dans des fûts,
568
+ citernes routières ou de stockage. Lemode opératoire peut aussi
569
+ être utilisé pour l’échantillonnage de dispersions de plastiques.
570
+ </abstract>
315
571
  <status>
316
572
  <stage>90</stage>
317
573
  <substage>93</substage>
@@ -346,9 +602,6 @@ RSpec.describe Asciidoctor::Standoc do
346
602
  </bibitem>
347
603
  <bibitem id='iso124' type='standard'>
348
604
  <fetched>#{Date.today}</fetched>
349
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
350
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
351
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
352
605
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
353
606
  <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
354
607
  <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
@@ -356,10 +609,11 @@ RSpec.describe Asciidoctor::Standoc do
356
609
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
357
610
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
358
611
  <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
359
- <docidentifier type='metanorma'>[1]</docidentifier>
612
+ <docidentifier type='metanorma'>[2]</docidentifier>
613
+ <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
360
614
  <docnumber>123</docnumber>
361
615
  <date type='published'>
362
- <on>2001</on>
616
+ <on>2001-05</on>
363
617
  </date>
364
618
  <contributor>
365
619
  <role type='publisher'/>
@@ -393,9 +647,6 @@ RSpec.describe Asciidoctor::Standoc do
393
647
  <relation type='instance'>
394
648
  <bibitem type='standard'>
395
649
  <fetched>#{Date.today}</fetched>
396
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
397
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
398
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
399
650
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
400
651
  <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
401
652
  <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
@@ -403,9 +654,10 @@ RSpec.describe Asciidoctor::Standoc do
403
654
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
404
655
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
405
656
  <docidentifier type='ISO'>ISO 123:2001</docidentifier>
657
+ <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
406
658
  <docnumber>123</docnumber>
407
659
  <date type='published'>
408
- <on>2001</on>
660
+ <on>2001-05</on>
409
661
  </date>
410
662
  <contributor>
411
663
  <role type='publisher'/>
@@ -419,6 +671,15 @@ RSpec.describe Asciidoctor::Standoc do
419
671
  <language>en</language>
420
672
  <language>fr</language>
421
673
  <script>Latn</script>
674
+ <abstract format='text/plain' language='fr' script='Latn'>
675
+ La présente Norme internationale spécifie des méthodes
676
+ d’échantillonnage pour des concentrés de latex de
677
+ caoutchoucnaturel et pour échantillonner des latex de caoutchouc
678
+ synthétique et des latex artificiels. Elle s’applique égalementà
679
+ l’échantillonnage de latex de caoutchouc contenus dans des fûts,
680
+ citernes routières ou de stockage. Lemode opératoire peut aussi
681
+ être utilisé pour l’échantillonnage de dispersions de plastiques.
682
+ </abstract>
422
683
  <status>
423
684
  <stage>90</stage>
424
685
  <substage>93</substage>
@@ -485,7 +746,7 @@ RSpec.describe Asciidoctor::Standoc do
485
746
  </bibitem>
486
747
  <bibitem id='iso124' type='standard'>
487
748
  <title format='text/plain'>Standard</title>
488
- <docidentifier type='metanorma'>[1]</docidentifier>
749
+ <docidentifier type='metanorma'>[2]</docidentifier>
489
750
  <docidentifier>IEC 123</docidentifier>
490
751
  <docnumber>123</docnumber>
491
752
  <contributor>
@@ -525,15 +786,14 @@ RSpec.describe Asciidoctor::Standoc do
525
786
  <fetched>#{Date.today}</fetched>
526
787
  <title type="title-main" format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
527
788
  <title type="main" format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
528
- <title type="title-main" format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l’information</title>
529
- <title type="main" format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l’information</title>
530
789
  <uri type="src">https://www.iso.org/standard/21071.html</uri>
531
790
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
532
791
  <uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
533
792
  <docidentifier type="ISO">ISO/IEC TR 12382:1992</docidentifier>
793
+ <docidentifier type='URN'>urn:iso:std:iso-iec:tr:12382:stage-90.93:ed-2:en</docidentifier>
534
794
  <docnumber>12382</docnumber>
535
795
  <date type="published">
536
- <on>1992</on>
796
+ <on>1992-12</on>
537
797
  </date>
538
798
  <contributor>
539
799
  <role type="publisher"/>
@@ -553,10 +813,8 @@ RSpec.describe Asciidoctor::Standoc do
553
813
  </contributor>
554
814
  <edition>2</edition>
555
815
  <language>en</language>
556
- <language>fr</language>
557
816
  <script>Latn</script>
558
817
  <abstract format="text/plain" language="en" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
559
- <abstract format="text/plain" language="fr" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
560
818
  <status>
561
819
  <stage>90</stage>
562
820
  <substage>93</substage>
@@ -576,16 +834,14 @@ RSpec.describe Asciidoctor::Standoc do
576
834
  <title type="title-intro" format="text/plain" language="en" script="Latn">Latex, rubber</title>
577
835
  <title type="title-main" format="text/plain" language="en" script="Latn">Determination of total solids content</title>
578
836
  <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber — Determination of total solids content</title>
579
- <title type="title-intro" format="text/plain" language="fr" script="Latn">Latex de caoutchouc</title>
580
- <title type="title-main" format="text/plain" language="fr" script="Latn">Détermination des matières solides totales</title>
581
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Détermination des matières solides totales</title>
582
837
  <uri type="src">https://www.iso.org/standard/61884.html</uri>
583
838
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
584
839
  <uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
585
840
  <docidentifier type="ISO">ISO 124:2014</docidentifier>
841
+ <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en</docidentifier>
586
842
  <docnumber>124</docnumber>
587
843
  <date type="published">
588
- <on>2014</on>
844
+ <on>2014-03</on>
589
845
  </date>
590
846
  <contributor>
591
847
  <role type="publisher"/>
@@ -597,10 +853,8 @@ RSpec.describe Asciidoctor::Standoc do
597
853
  </contributor>
598
854
  <edition>7</edition>
599
855
  <language>en</language>
600
- <language>fr</language>
601
856
  <script>Latn</script>
602
857
  <abstract format="text/plain" language="en" script="Latn">ISO 124:2014 specifies methods for the determination of the total solids content of natural rubber field and concentrated latices and synthetic rubber latex. These methods are not necessarily suitable for latex from natural sources other than the Hevea brasiliensis, for vulcanized latex, for compounded latex, or for artificial dispersions of rubber.</abstract>
603
- <abstract format="text/plain" language="fr" script="Latn">L’ISO 124:2014 spécifie des méthodes pour la détermination des matières solides totales dans le latex de plantation, le latex de concentré de caoutchouc naturel et le latex de caoutchouc synthétique. Ces méthodes ne conviennent pas nécessairement au latex d’origine naturelle autre que celui de l’Hevea brasiliensis, au latex vulcanisé, aux mélanges de latex, ou aux dispersions artificielles de caoutchouc.</abstract>
604
858
  <status>
605
859
  <stage>90</stage>
606
860
  <substage>93</substage>
@@ -624,16 +878,15 @@ RSpec.describe Asciidoctor::Standoc do
624
878
  <fetched>#{Date.today}</fetched>
625
879
  <title type="title-main" format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
626
880
  <title type='main' format='text/plain' language='en' script='Latn'>Permuted index of the vocabulary of information technology</title>
627
- <title type="title-main" format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l’information</title>
628
- <title type='main' format='text/plain' language='fr' script='Latn'>Index permuté du vocabulaire des technologies de l’information</title>
629
881
  <uri type="src">https://www.iso.org/standard/21071.html</uri>
630
882
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
631
883
  <uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
632
884
  <docidentifier type="ISO">ISO/IEC TR 12382:1992</docidentifier>
633
- <docidentifier type='metanorma'>[1]</docidentifier>
885
+ <docidentifier type='metanorma'>[3]</docidentifier>
886
+ <docidentifier type='URN'>urn:iso:std:iso-iec:tr:12382:stage-90.93:ed-2:en</docidentifier>
634
887
  <docnumber>12382</docnumber>
635
888
  <date type="published">
636
- <on>1992</on>
889
+ <on>1992-12</on>
637
890
  </date>
638
891
  <contributor>
639
892
  <role type="publisher"/>
@@ -653,10 +906,8 @@ RSpec.describe Asciidoctor::Standoc do
653
906
  </contributor>
654
907
  <edition>2</edition>
655
908
  <language>en</language>
656
- <language>fr</language>
657
909
  <script>Latn</script>
658
910
  <abstract format="text/plain" language="en" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
659
- <abstract format="text/plain" language="fr" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
660
911
  <status>
661
912
  <stage>90</stage>
662
913
  <substage>93</substage>
@@ -676,17 +927,15 @@ RSpec.describe Asciidoctor::Standoc do
676
927
  <title type="title-intro" format="text/plain" language="en" script="Latn">Latex, rubber</title>
677
928
  <title type="title-main" format="text/plain" language="en" script="Latn">Determination of total solids content</title>
678
929
  <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber — Determination of total solids content</title>
679
- <title type="title-intro" format="text/plain" language="fr" script="Latn">Latex de caoutchouc</title>
680
- <title type="title-main" format="text/plain" language="fr" script="Latn">Détermination des matières solides totales</title>
681
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Détermination des matières solides totales</title>
682
930
  <uri type="src">https://www.iso.org/standard/61884.html</uri>
683
931
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
684
932
  <uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
685
933
  <docidentifier type="ISO">ISO 124:2014</docidentifier>
686
- <docidentifier type='metanorma'>[1]</docidentifier>
934
+ <docidentifier type='metanorma'>[4]</docidentifier>
935
+ <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en</docidentifier>
687
936
  <docnumber>124</docnumber>
688
937
  <date type="published">
689
- <on>2014</on>
938
+ <on>2014-03</on>
690
939
  </date>
691
940
  <contributor>
692
941
  <role type="publisher"/>
@@ -698,10 +947,8 @@ RSpec.describe Asciidoctor::Standoc do
698
947
  </contributor>
699
948
  <edition>7</edition>
700
949
  <language>en</language>
701
- <language>fr</language>
702
950
  <script>Latn</script>
703
951
  <abstract format="text/plain" language="en" script="Latn">ISO 124:2014 specifies methods for the determination of the total solids content of natural rubber field and concentrated latices and synthetic rubber latex. These methods are not necessarily suitable for latex from natural sources other than the Hevea brasiliensis, for vulcanized latex, for compounded latex, or for artificial dispersions of rubber.</abstract>
704
- <abstract format="text/plain" language="fr" script="Latn">L’ISO 124:2014 spécifie des méthodes pour la détermination des matières solides totales dans le latex de plantation, le latex de concentré de caoutchouc naturel et le latex de caoutchouc synthétique. Ces méthodes ne conviennent pas nécessairement au latex d’origine naturelle autre que celui de l’Hevea brasiliensis, au latex vulcanisé, aux mélanges de latex, ou aux dispersions artificielles de caoutchouc.</abstract>
705
952
  <status>
706
953
  <stage>90</stage>
707
954
  <substage>93</substage>
@@ -756,16 +1003,14 @@ RSpec.describe Asciidoctor::Standoc do
756
1003
  <title type='title-intro' format='text/plain' language='en' script='Latn'>Latex, rubber</title>
757
1004
  <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of total solids content</title>
758
1005
  <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber — Determination of total solids content</title>
759
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
760
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Détermination des matières solides totales</title>
761
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Détermination des matières solides totales</title>
762
1006
  <uri type='src'>https://www.iso.org/standard/61884.html</uri>
763
1007
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
764
1008
  <uri type='rss'>https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
765
1009
  <docidentifier type='ISO'>ISO 124:2014</docidentifier>
1010
+ <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en</docidentifier>
766
1011
  <docnumber>124</docnumber>
767
1012
  <date type='published'>
768
- <on>2014</on>
1013
+ <on>2014-03</on>
769
1014
  </date>
770
1015
  <contributor>
771
1016
  <role type='publisher'/>
@@ -777,10 +1022,8 @@ RSpec.describe Asciidoctor::Standoc do
777
1022
  </contributor>
778
1023
  <edition>7</edition>
779
1024
  <language>en</language>
780
- <language>fr</language>
781
1025
  <script>Latn</script>
782
1026
  <abstract format='text/plain' language='en' script='Latn'>ISO 124:2014 specifies methods for the determination of the total solids content of natural rubber field and concentrated latices and synthetic rubber latex. These methods are not necessarily suitable for latex from natural sources other than the Hevea brasiliensis, for vulcanized latex, for compounded latex, or for artificial dispersions of rubber.</abstract>
783
- <abstract format='text/plain' language='fr' script='Latn'>L’ISO 124:2014 spécifie des méthodes pour la détermination des matières solides totales dans le latex de plantation, le latex de concentré de caoutchouc naturel et le latex de caoutchouc synthétique. Ces méthodes ne conviennent pas nécessairement au latex d’origine naturelle autre que celui de l’Hevea brasiliensis, au latex vulcanisé, aux mélanges de latex, ou aux dispersions artificielles de caoutchouc.</abstract>
784
1027
  <status>
785
1028
  <stage>90</stage>
786
1029
  <substage>93</substage>
@@ -850,7 +1093,7 @@ OUTPUT
850
1093
  <name>ISO</name>
851
1094
  </organization>
852
1095
  </contributor>
853
- <note format="text/plain" type="ISO DATE">The standard is in press</note>
1096
+ <note format="text/plain" type="Unpublished-Status">The standard is in press</note>
854
1097
  </bibitem>
855
1098
  <bibitem id="iso125" type="standard">
856
1099
  <title format="text/plain">Standard</title>
@@ -865,11 +1108,11 @@ OUTPUT
865
1108
  <name>ISO</name>
866
1109
  </organization>
867
1110
  </contributor>
868
- <note format="text/plain" type="ISO DATE">The standard is in press</note>
1111
+ <note format="text/plain" type="Unpublished-Status">The standard is in press</note>
869
1112
  </bibitem>
870
1113
  <bibitem id='iso126' type='standard'>
871
1114
  <title format='text/plain'>Standard</title>
872
- <docidentifier type='metanorma'>[1]</docidentifier>
1115
+ <docidentifier type='metanorma'>[4]</docidentifier>
873
1116
  <docidentifier>ISO 123:—</docidentifier>
874
1117
  <docnumber>123</docnumber>
875
1118
  <date type='published'>
@@ -923,7 +1166,7 @@ OUTPUT
923
1166
  </bibitem>
924
1167
  <bibitem id='iso124' type='standard'>
925
1168
  <title format='text/plain'>Standard</title>
926
- <docidentifier type='metanorma'>[1]</docidentifier>
1169
+ <docidentifier type='metanorma'>[2]</docidentifier>
927
1170
  <docidentifier>ISO 123:1066 (all parts)</docidentifier>
928
1171
  <docnumber>123</docnumber>
929
1172
  <date type='published'>
@@ -1036,7 +1279,7 @@ OUTPUT
1036
1279
  <uri type='xml'>https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8341.xml</uri>
1037
1280
  <uri type="src">https://www.rfc-editor.org/info/rfc8341</uri>
1038
1281
  <docidentifier type="IETF">RFC 8341</docidentifier>
1039
- <docidentifier type='metanorma'>[1]</docidentifier>
1282
+ <docidentifier type='metanorma'>[2]</docidentifier>
1040
1283
  <docidentifier type='rfc-anchor'>RFC8341</docidentifier>
1041
1284
  <docidentifier type="DOI">10.17487/RFC8341</docidentifier>
1042
1285
  <date type="published">
@@ -1123,7 +1366,7 @@ OUTPUT
1123
1366
  <formattedref format='application/x-isodoc+xml'>
1124
1367
  <em>Standard</em>
1125
1368
  </formattedref>
1126
- <docidentifier type='metanorma'>[1]</docidentifier>
1369
+ <docidentifier type='metanorma'>[2]</docidentifier>
1127
1370
  <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1128
1371
  <docnumber>123:1066 (all parts)</docnumber>
1129
1372
  </bibitem>
@@ -1198,7 +1441,7 @@ OUTPUT
1198
1441
  * [[[iso124,(1)ISO 123]]] _Standard_
1199
1442
  INPUT
1200
1443
  <?xml version="1.0" encoding="UTF-8"?>
1201
- <standard-document xmlns="https://www.metanorma.org/ns/standoc">
1444
+ <standard-document xmlns="https://www.metanorma.org/ns/standoc" type="semantic" version="#{Metanorma::Standoc::VERSION}">
1202
1445
  <bibdata type="standard">
1203
1446
  <title language="en" format="text/plain">Document title</title>
1204
1447
  <language>en</language>
@@ -1229,7 +1472,7 @@ OUTPUT
1229
1472
  </bibitem>
1230
1473
  <bibitem id='iso124' type='standard'>
1231
1474
  <title format='text/plain'>Standard</title>
1232
- <docidentifier type='metanorma'>[1]</docidentifier>
1475
+ <docidentifier type='metanorma'>[2]</docidentifier>
1233
1476
  <docidentifier type='ISO'>ISO 123</docidentifier>
1234
1477
  <docnumber>123</docnumber>
1235
1478
  <contributor>
@@ -1250,53 +1493,68 @@ OUTPUT
1250
1493
  == Scope
1251
1494
 
1252
1495
  <<iso123>>
1253
-
1254
1496
  <<iso123,clause=1>>
1497
+ <<iso124>>
1498
+ <<iso124,clause=1>>
1255
1499
 
1256
1500
  [bibliography]
1257
1501
  == Normative References
1258
1502
 
1259
- * [[[iso123,repo:(a/b,ISO 123)]]] _Standard_
1503
+ * [[[iso123,repo:(ab/ISO 123)]]] _Standard_
1504
+ * [[[iso124,repo:(ab/ISO 124,id)]]] _Standard_
1260
1505
  INPUT
1261
1506
  #{BLANK_HDR}
1262
- <sections>
1263
- <clause id='_' inline-header='false' obligation='normative' type="scope">
1264
- <title>Scope</title>
1265
- <p id='_'>
1266
- <eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
1267
- </p>
1268
- <p id='_'>
1269
- <eref type='inline' bibitemid='iso123' citeas='ISO 123'>
1270
- <localityStack>
1271
- <locality type='clause'>
1272
- <referenceFrom>1</referenceFrom>
1273
- </locality>
1274
- </localityStack>
1275
- </eref>
1276
- </p>
1277
- </clause>
1278
- </sections>
1279
- <bibliography>
1280
- <references id='_' normative='true' obligation='informative'>
1281
- <title>Normative references</title>
1282
- <p id='_'>
1283
- The following documents are referred to in the text in such a way that
1284
- some or all of their content constitutes requirements of this document.
1285
- For dated references, only the edition cited applies. For undated
1286
- references, the latest edition of the referenced document (including any
1287
- amendments) applies.
1288
- </p>
1289
- <bibitem id='iso123'>
1290
- <formattedref format='application/x-isodoc+xml'>
1291
- <em>Standard</em>
1292
- </formattedref>
1293
- <docidentifier type="ISO">ISO 123</docidentifier>
1294
- <docidentifier type="repository">a/b</docidentifier>
1295
- <docnumber>123</docnumber>
1296
- </bibitem>
1297
- </references>
1298
- </bibliography>
1299
- </standard-document>
1507
+ <sections>
1508
+ <clause id='_' type='scope' inline-header='false' obligation='normative'>
1509
+ <title>Scope</title>
1510
+ <p id='_'>
1511
+ <eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
1512
+ <eref type='inline' bibitemid='iso123' citeas='ISO 123'>
1513
+ <localityStack>
1514
+ <locality type='clause'>
1515
+ <referenceFrom>1</referenceFrom>
1516
+ </locality>
1517
+ </localityStack>
1518
+ </eref>
1519
+ <eref type='inline' bibitemid='iso124' citeas='id'/>
1520
+ <eref type='inline' bibitemid='iso124' citeas='id'>
1521
+ <localityStack>
1522
+ <locality type='clause'>
1523
+ <referenceFrom>1</referenceFrom>
1524
+ </locality>
1525
+ </localityStack>
1526
+ </eref>
1527
+ </p>
1528
+ </clause>
1529
+ </sections>
1530
+ <bibliography>
1531
+ <references id='_' normative='true' obligation='informative'>
1532
+ <title>Normative references</title>
1533
+ <p id='_'>
1534
+ The following documents are referred to in the text in such a way that
1535
+ some or all of their content constitutes requirements of this document.
1536
+ For dated references, only the edition cited applies. For undated
1537
+ references, the latest edition of the referenced document (including any
1538
+ amendments) applies.
1539
+ </p>
1540
+ <bibitem id='iso123'>
1541
+ <formattedref format='application/x-isodoc+xml'>
1542
+ <em>Standard</em>
1543
+ </formattedref>
1544
+ <docidentifier type='ISO'>ISO 123</docidentifier>
1545
+ <docidentifier type='repository'>ab/ISO 123</docidentifier>
1546
+ <docnumber>123</docnumber>
1547
+ </bibitem>
1548
+ <bibitem id='iso124'>
1549
+ <formattedref format='application/x-isodoc+xml'>
1550
+ <em>Standard</em>
1551
+ </formattedref>
1552
+ <docidentifier>id</docidentifier>
1553
+ <docidentifier type='repository'>ab/ISO 124</docidentifier>
1554
+ </bibitem>
1555
+ </references>
1556
+ </bibliography>
1557
+ </standard-document>
1300
1558
  OUTPUT
1301
1559
  end
1302
1560
 
@@ -1374,8 +1632,8 @@ OUTPUT
1374
1632
  <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
1375
1633
  <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
1376
1634
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
1377
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
1378
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
1635
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
1636
+ <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
1379
1637
  <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1380
1638
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1381
1639
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
@@ -1421,8 +1679,8 @@ OUTPUT
1421
1679
  <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
1422
1680
  <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
1423
1681
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
1424
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
1425
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
1682
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
1683
+ <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
1426
1684
  <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1427
1685
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1428
1686
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
@@ -1502,7 +1760,7 @@ OUTPUT
1502
1760
  end
1503
1761
 
1504
1762
  def mock_isobib_get_123_no_docid
1505
- expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:title=>"<em>Standard</em>", usrlbl: nil}) do
1763
+ expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:lang=>"en", :title=>"<em>Standard</em>", usrlbl: nil}) do
1506
1764
  RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
1507
1765
  <bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n</bibitem>
1508
1766
  OUTPUT
@@ -1510,7 +1768,7 @@ OUTPUT
1510
1768
  end
1511
1769
 
1512
1770
  def mock_isobib_get_123_no_docid_lbl
1513
- expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:title=>"<em>Standard</em>", usrlbl: "(1)"}) do
1771
+ expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:lang=>"en", :title=>"<em>Standard</em>", usrlbl: "(1)"}) do
1514
1772
  RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
1515
1773
  <bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n</bibitem>
1516
1774
  OUTPUT