metanorma-standoc 1.6.0 → 1.6.5

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.
Files changed (63) 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 +8 -16
  5. data/lib/asciidoctor/standoc/basicdoc.rng +32 -0
  6. data/lib/asciidoctor/standoc/cleanup.rb +52 -4
  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 +18 -25
  12. data/lib/asciidoctor/standoc/cleanup_terms.rb +3 -0
  13. data/lib/asciidoctor/standoc/converter.rb +61 -3
  14. data/lib/asciidoctor/standoc/front.rb +9 -3
  15. data/lib/asciidoctor/standoc/front_contributor.rb +34 -10
  16. data/lib/asciidoctor/standoc/isodoc.rng +29 -44
  17. data/lib/asciidoctor/standoc/lists.rb +4 -2
  18. data/lib/asciidoctor/standoc/macros.rb +45 -63
  19. data/lib/asciidoctor/standoc/macros_terms.rb +82 -0
  20. data/lib/asciidoctor/standoc/ref.rb +24 -36
  21. data/lib/asciidoctor/standoc/ref_sect.rb +16 -8
  22. data/lib/asciidoctor/standoc/section.rb +5 -9
  23. data/lib/asciidoctor/standoc/table.rb +12 -0
  24. data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +86 -0
  25. data/lib/liquid/custom_blocks/with_json_nested_context.rb +18 -0
  26. data/lib/liquid/custom_blocks/with_yaml_nested_context.rb +19 -0
  27. data/lib/metanorma/standoc/version.rb +1 -1
  28. data/metanorma-standoc.gemspec +6 -3
  29. data/spec/asciidoctor-standoc/base_spec.rb +127 -8
  30. data/spec/asciidoctor-standoc/blocks_spec.rb +8 -8
  31. data/spec/asciidoctor-standoc/cleanup_sections_spec.rb +1514 -0
  32. data/spec/asciidoctor-standoc/cleanup_spec.rb +450 -1554
  33. data/spec/asciidoctor-standoc/isobib_cache_spec.rb +22 -31
  34. data/spec/asciidoctor-standoc/lists_spec.rb +10 -1
  35. data/spec/asciidoctor-standoc/macros_json2text_spec.rb +1 -1
  36. data/spec/asciidoctor-standoc/macros_lutaml_spec.rb +80 -0
  37. data/spec/asciidoctor-standoc/macros_plantuml_spec.rb +307 -0
  38. data/spec/asciidoctor-standoc/macros_spec.rb +378 -169
  39. data/spec/asciidoctor-standoc/macros_yaml2text_spec.rb +1 -1
  40. data/spec/asciidoctor-standoc/refs_dl_spec.rb +8 -8
  41. data/spec/asciidoctor-standoc/refs_spec.rb +350 -101
  42. data/spec/asciidoctor-standoc/section_spec.rb +11 -11
  43. data/spec/asciidoctor-standoc/table_spec.rb +86 -0
  44. data/spec/asciidoctor-standoc/validate_spec.rb +26 -0
  45. data/spec/fixtures/diagram_definitions.lutaml +22 -0
  46. data/spec/fixtures/test.exp +121 -0
  47. data/spec/spec_helper.rb +33 -0
  48. data/spec/support/shared_examples/structured_data_2_text_preprocessor.rb +156 -4
  49. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +49 -233
  50. data/spec/vcr_cassettes/isobib_get_123.yml +12 -58
  51. data/spec/vcr_cassettes/isobib_get_123_1.yml +27 -119
  52. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +361 -0
  53. data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -58
  54. data/spec/vcr_cassettes/isobib_get_124.yml +11 -57
  55. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +8 -8
  56. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +276 -158
  57. metadata +61 -14
  58. data/.github/workflows/macos.yml +0 -41
  59. data/.github/workflows/ubuntu.yml +0 -45
  60. data/.github/workflows/windows.yml +0 -43
  61. data/lib/asciidoctor/standoc/base_structured_text_preprocessor.rb +0 -123
  62. data/lib/asciidoctor/standoc/json2_text_preprocessor.rb +0 -44
  63. data/lib/asciidoctor/standoc/yaml2_text_preprocessor.rb +0 -46
@@ -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>
@@ -223,8 +223,7 @@ RSpec.describe Asciidoctor::Standoc do
223
223
  end
224
224
 
225
225
  it "fetches simple ISO reference" do
226
- # mock_isobib_get_123
227
- VCR.use_cassette "isobib_get_123_1", :re_record_interval => 25200 do
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}
230
229
  [bibliography]
@@ -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>
@@ -253,7 +501,7 @@ RSpec.describe Asciidoctor::Standoc do
253
501
  <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
254
502
  <docnumber>123</docnumber>
255
503
  <date type='published'>
256
- <on>2001</on>
504
+ <on>2001-05</on>
257
505
  </date>
258
506
  <contributor>
259
507
  <role type='publisher'/>
@@ -287,9 +535,6 @@ RSpec.describe Asciidoctor::Standoc do
287
535
  <relation type='instance'>
288
536
  <bibitem type='standard'>
289
537
  <fetched>#{Date.today}</fetched>
290
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
291
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
292
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
293
538
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
294
539
  <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
295
540
  <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
@@ -297,10 +542,10 @@ RSpec.describe Asciidoctor::Standoc do
297
542
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
298
543
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
299
544
  <docidentifier type='ISO'>ISO 123:2001</docidentifier>
300
- <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en,fr</docidentifier>
545
+ <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
301
546
  <docnumber>123</docnumber>
302
547
  <date type='published'>
303
- <on>2001</on>
548
+ <on>2001-05</on>
304
549
  </date>
305
550
  <contributor>
306
551
  <role type='publisher'/>
@@ -314,6 +559,15 @@ RSpec.describe Asciidoctor::Standoc do
314
559
  <language>en</language>
315
560
  <language>fr</language>
316
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>
317
571
  <status>
318
572
  <stage>90</stage>
319
573
  <substage>93</substage>
@@ -348,9 +602,6 @@ RSpec.describe Asciidoctor::Standoc do
348
602
  </bibitem>
349
603
  <bibitem id='iso124' type='standard'>
350
604
  <fetched>#{Date.today}</fetched>
351
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
352
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
353
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
354
605
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
355
606
  <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
356
607
  <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
@@ -362,7 +613,7 @@ RSpec.describe Asciidoctor::Standoc do
362
613
  <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
363
614
  <docnumber>123</docnumber>
364
615
  <date type='published'>
365
- <on>2001</on>
616
+ <on>2001-05</on>
366
617
  </date>
367
618
  <contributor>
368
619
  <role type='publisher'/>
@@ -396,9 +647,6 @@ RSpec.describe Asciidoctor::Standoc do
396
647
  <relation type='instance'>
397
648
  <bibitem type='standard'>
398
649
  <fetched>#{Date.today}</fetched>
399
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
400
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
401
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
402
650
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
403
651
  <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
404
652
  <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
@@ -406,10 +654,10 @@ RSpec.describe Asciidoctor::Standoc do
406
654
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
407
655
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
408
656
  <docidentifier type='ISO'>ISO 123:2001</docidentifier>
409
- <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en,fr</docidentifier>
657
+ <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
410
658
  <docnumber>123</docnumber>
411
659
  <date type='published'>
412
- <on>2001</on>
660
+ <on>2001-05</on>
413
661
  </date>
414
662
  <contributor>
415
663
  <role type='publisher'/>
@@ -423,6 +671,15 @@ RSpec.describe Asciidoctor::Standoc do
423
671
  <language>en</language>
424
672
  <language>fr</language>
425
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>
426
683
  <status>
427
684
  <stage>90</stage>
428
685
  <substage>93</substage>
@@ -508,7 +765,7 @@ RSpec.describe Asciidoctor::Standoc do
508
765
  it "processes dated ISO reference and joint ISO/IEC references" do
509
766
  # mock_isobib_get_iec12382
510
767
  # mock_isobib_get_124
511
- VCR.use_cassette "dated_iso_ref_joint_iso_iec", :re_record_interval => 25200 do
768
+ VCR.use_cassette "dated_iso_ref_joint_iso_iec" do
512
769
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
513
770
  #{ISOBIB_BLANK_HDR}
514
771
  [bibliography]
@@ -529,16 +786,14 @@ RSpec.describe Asciidoctor::Standoc do
529
786
  <fetched>#{Date.today}</fetched>
530
787
  <title type="title-main" format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
531
788
  <title type="main" format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
532
- <title type="title-main" format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l’information</title>
533
- <title type="main" format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l’information</title>
534
789
  <uri type="src">https://www.iso.org/standard/21071.html</uri>
535
790
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
536
791
  <uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
537
792
  <docidentifier type="ISO">ISO/IEC TR 12382:1992</docidentifier>
538
- <docidentifier type='URN'>urn:iso:std:iso-iec:tr:12382:stage-90.93:ed-2:en,fr</docidentifier>
793
+ <docidentifier type='URN'>urn:iso:std:iso-iec:tr:12382:stage-90.93:ed-2:en</docidentifier>
539
794
  <docnumber>12382</docnumber>
540
795
  <date type="published">
541
- <on>1992</on>
796
+ <on>1992-12</on>
542
797
  </date>
543
798
  <contributor>
544
799
  <role type="publisher"/>
@@ -558,10 +813,8 @@ RSpec.describe Asciidoctor::Standoc do
558
813
  </contributor>
559
814
  <edition>2</edition>
560
815
  <language>en</language>
561
- <language>fr</language>
562
816
  <script>Latn</script>
563
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>
564
- <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>
565
818
  <status>
566
819
  <stage>90</stage>
567
820
  <substage>93</substage>
@@ -581,17 +834,14 @@ RSpec.describe Asciidoctor::Standoc do
581
834
  <title type="title-intro" format="text/plain" language="en" script="Latn">Latex, rubber</title>
582
835
  <title type="title-main" format="text/plain" language="en" script="Latn">Determination of total solids content</title>
583
836
  <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber — Determination of total solids content</title>
584
- <title type="title-intro" format="text/plain" language="fr" script="Latn">Latex de caoutchouc</title>
585
- <title type="title-main" format="text/plain" language="fr" script="Latn">Détermination des matières solides totales</title>
586
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Détermination des matières solides totales</title>
587
837
  <uri type="src">https://www.iso.org/standard/61884.html</uri>
588
838
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
589
839
  <uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
590
840
  <docidentifier type="ISO">ISO 124:2014</docidentifier>
591
- <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en,fr</docidentifier>
841
+ <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en</docidentifier>
592
842
  <docnumber>124</docnumber>
593
843
  <date type="published">
594
- <on>2014</on>
844
+ <on>2014-03</on>
595
845
  </date>
596
846
  <contributor>
597
847
  <role type="publisher"/>
@@ -603,10 +853,8 @@ RSpec.describe Asciidoctor::Standoc do
603
853
  </contributor>
604
854
  <edition>7</edition>
605
855
  <language>en</language>
606
- <language>fr</language>
607
856
  <script>Latn</script>
608
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>
609
- <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>
610
858
  <status>
611
859
  <stage>90</stage>
612
860
  <substage>93</substage>
@@ -630,17 +878,15 @@ RSpec.describe Asciidoctor::Standoc do
630
878
  <fetched>#{Date.today}</fetched>
631
879
  <title type="title-main" format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
632
880
  <title type='main' format='text/plain' language='en' script='Latn'>Permuted index of the vocabulary of information technology</title>
633
- <title type="title-main" format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l’information</title>
634
- <title type='main' format='text/plain' language='fr' script='Latn'>Index permuté du vocabulaire des technologies de l’information</title>
635
881
  <uri type="src">https://www.iso.org/standard/21071.html</uri>
636
882
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
637
883
  <uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
638
884
  <docidentifier type="ISO">ISO/IEC TR 12382:1992</docidentifier>
639
885
  <docidentifier type='metanorma'>[3]</docidentifier>
640
- <docidentifier type='URN'>urn:iso:std:iso-iec:tr:12382:stage-90.93:ed-2:en,fr</docidentifier>
886
+ <docidentifier type='URN'>urn:iso:std:iso-iec:tr:12382:stage-90.93:ed-2:en</docidentifier>
641
887
  <docnumber>12382</docnumber>
642
888
  <date type="published">
643
- <on>1992</on>
889
+ <on>1992-12</on>
644
890
  </date>
645
891
  <contributor>
646
892
  <role type="publisher"/>
@@ -660,10 +906,8 @@ RSpec.describe Asciidoctor::Standoc do
660
906
  </contributor>
661
907
  <edition>2</edition>
662
908
  <language>en</language>
663
- <language>fr</language>
664
909
  <script>Latn</script>
665
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>
666
- <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>
667
911
  <status>
668
912
  <stage>90</stage>
669
913
  <substage>93</substage>
@@ -683,18 +927,15 @@ RSpec.describe Asciidoctor::Standoc do
683
927
  <title type="title-intro" format="text/plain" language="en" script="Latn">Latex, rubber</title>
684
928
  <title type="title-main" format="text/plain" language="en" script="Latn">Determination of total solids content</title>
685
929
  <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber — Determination of total solids content</title>
686
- <title type="title-intro" format="text/plain" language="fr" script="Latn">Latex de caoutchouc</title>
687
- <title type="title-main" format="text/plain" language="fr" script="Latn">Détermination des matières solides totales</title>
688
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Détermination des matières solides totales</title>
689
930
  <uri type="src">https://www.iso.org/standard/61884.html</uri>
690
931
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
691
932
  <uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
692
933
  <docidentifier type="ISO">ISO 124:2014</docidentifier>
693
934
  <docidentifier type='metanorma'>[4]</docidentifier>
694
- <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en,fr</docidentifier>
935
+ <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en</docidentifier>
695
936
  <docnumber>124</docnumber>
696
937
  <date type="published">
697
- <on>2014</on>
938
+ <on>2014-03</on>
698
939
  </date>
699
940
  <contributor>
700
941
  <role type="publisher"/>
@@ -706,10 +947,8 @@ RSpec.describe Asciidoctor::Standoc do
706
947
  </contributor>
707
948
  <edition>7</edition>
708
949
  <language>en</language>
709
- <language>fr</language>
710
950
  <script>Latn</script>
711
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>
712
- <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>
713
952
  <status>
714
953
  <stage>90</stage>
715
954
  <substage>93</substage>
@@ -737,7 +976,7 @@ RSpec.describe Asciidoctor::Standoc do
737
976
  end
738
977
 
739
978
  it "declines to fetch individual references" do
740
- VCR.use_cassette "dated_iso_ref_joint_iso_iec", :re_record_interval => 25200 do
979
+ VCR.use_cassette "dated_iso_ref_joint_iso_iec" do
741
980
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
742
981
  #{ISOBIB_BLANK_HDR}
743
982
  [bibliography]
@@ -764,17 +1003,14 @@ RSpec.describe Asciidoctor::Standoc do
764
1003
  <title type='title-intro' format='text/plain' language='en' script='Latn'>Latex, rubber</title>
765
1004
  <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of total solids content</title>
766
1005
  <title type='main' format='text/plain' language='en' script='Latn'>Latex, rubber — Determination of total solids content</title>
767
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
768
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Détermination des matières solides totales</title>
769
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Détermination des matières solides totales</title>
770
1006
  <uri type='src'>https://www.iso.org/standard/61884.html</uri>
771
1007
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
772
1008
  <uri type='rss'>https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
773
1009
  <docidentifier type='ISO'>ISO 124:2014</docidentifier>
774
- <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en,fr</docidentifier>
1010
+ <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en</docidentifier>
775
1011
  <docnumber>124</docnumber>
776
1012
  <date type='published'>
777
- <on>2014</on>
1013
+ <on>2014-03</on>
778
1014
  </date>
779
1015
  <contributor>
780
1016
  <role type='publisher'/>
@@ -786,10 +1022,8 @@ RSpec.describe Asciidoctor::Standoc do
786
1022
  </contributor>
787
1023
  <edition>7</edition>
788
1024
  <language>en</language>
789
- <language>fr</language>
790
1025
  <script>Latn</script>
791
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>
792
- <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>
793
1027
  <status>
794
1028
  <stage>90</stage>
795
1029
  <substage>93</substage>
@@ -859,7 +1093,7 @@ OUTPUT
859
1093
  <name>ISO</name>
860
1094
  </organization>
861
1095
  </contributor>
862
- <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>
863
1097
  </bibitem>
864
1098
  <bibitem id="iso125" type="standard">
865
1099
  <title format="text/plain">Standard</title>
@@ -874,7 +1108,7 @@ OUTPUT
874
1108
  <name>ISO</name>
875
1109
  </organization>
876
1110
  </contributor>
877
- <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>
878
1112
  </bibitem>
879
1113
  <bibitem id='iso126' type='standard'>
880
1114
  <title format='text/plain'>Standard</title>
@@ -956,7 +1190,7 @@ OUTPUT
956
1190
 
957
1191
  it "processes RFC reference in Normative References" do
958
1192
  # mock_rfcbib_get_rfc8341
959
- VCR.use_cassette "rfcbib_get_rfc8341", :re_record_interval => 25200 do
1193
+ VCR.use_cassette "rfcbib_get_rfc8341" do
960
1194
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
961
1195
  #{ISOBIB_BLANK_HDR}
962
1196
  [bibliography]
@@ -1259,53 +1493,68 @@ OUTPUT
1259
1493
  == Scope
1260
1494
 
1261
1495
  <<iso123>>
1262
-
1263
1496
  <<iso123,clause=1>>
1497
+ <<iso124>>
1498
+ <<iso124,clause=1>>
1264
1499
 
1265
1500
  [bibliography]
1266
1501
  == Normative References
1267
1502
 
1268
- * [[[iso123,repo:(a/b,ISO 123)]]] _Standard_
1503
+ * [[[iso123,repo:(ab/ISO 123)]]] _Standard_
1504
+ * [[[iso124,repo:(ab/ISO 124,id)]]] _Standard_
1269
1505
  INPUT
1270
1506
  #{BLANK_HDR}
1271
- <sections>
1272
- <clause id='_' inline-header='false' obligation='normative' type="scope">
1273
- <title>Scope</title>
1274
- <p id='_'>
1275
- <eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
1276
- </p>
1277
- <p id='_'>
1278
- <eref type='inline' bibitemid='iso123' citeas='ISO 123'>
1279
- <localityStack>
1280
- <locality type='clause'>
1281
- <referenceFrom>1</referenceFrom>
1282
- </locality>
1283
- </localityStack>
1284
- </eref>
1285
- </p>
1286
- </clause>
1287
- </sections>
1288
- <bibliography>
1289
- <references id='_' normative='true' obligation='informative'>
1290
- <title>Normative references</title>
1291
- <p id='_'>
1292
- The following documents are referred to in the text in such a way that
1293
- some or all of their content constitutes requirements of this document.
1294
- For dated references, only the edition cited applies. For undated
1295
- references, the latest edition of the referenced document (including any
1296
- amendments) applies.
1297
- </p>
1298
- <bibitem id='iso123'>
1299
- <formattedref format='application/x-isodoc+xml'>
1300
- <em>Standard</em>
1301
- </formattedref>
1302
- <docidentifier type="ISO">ISO 123</docidentifier>
1303
- <docidentifier type="repository">a/b</docidentifier>
1304
- <docnumber>123</docnumber>
1305
- </bibitem>
1306
- </references>
1307
- </bibliography>
1308
- </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>
1309
1558
  OUTPUT
1310
1559
  end
1311
1560
 
@@ -1383,8 +1632,8 @@ OUTPUT
1383
1632
  <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
1384
1633
  <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
1385
1634
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
1386
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
1387
- <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>
1388
1637
  <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1389
1638
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1390
1639
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
@@ -1430,8 +1679,8 @@ OUTPUT
1430
1679
  <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
1431
1680
  <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
1432
1681
  <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
1433
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
1434
- <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>
1435
1684
  <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1436
1685
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1437
1686
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
@@ -1511,7 +1760,7 @@ OUTPUT
1511
1760
  end
1512
1761
 
1513
1762
  def mock_isobib_get_123_no_docid
1514
- 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
1515
1764
  RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
1516
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>
1517
1766
  OUTPUT
@@ -1519,7 +1768,7 @@ OUTPUT
1519
1768
  end
1520
1769
 
1521
1770
  def mock_isobib_get_123_no_docid_lbl
1522
- 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
1523
1772
  RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
1524
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>
1525
1774
  OUTPUT