metanorma-bipm 2.0.8 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33196837871392a573466c7460c01dd6d1609fc0680c7f281f86f7f32ffb140a
4
- data.tar.gz: e220e419305c88f6bd3a8bd90ae12896f551faf2fb105fa6549e2510a22ef56a
3
+ metadata.gz: 499a7b37d41efc53a0084f1f2beea40ff9ac3b4afad9b50990644f0bc202e959
4
+ data.tar.gz: '0875b48b37ae60347a5020eddcc2c365a6e436613ea84e2bfafc3471421777a9'
5
5
  SHA512:
6
- metadata.gz: 9f57935c7da50a72a2ab1b6a26d32cb51c80f0024a308a579e0832274f7dd205a07f1d2322886250d41e9a859c8d43bf42ada50f3127576484a4267bc089c62b
7
- data.tar.gz: 3a8d5a538ca694c173af2d40bfb1722fc7626f5c6d169542b02287c8ea213e46abcf5e6ba1b12bc12c171beee463c5ee0ffd3f70879d2e133b7670721a14affc
6
+ metadata.gz: '0862323d8da5038aceacbfb44c38f841f250299920e3bcf110229b66648502199d96dd55b84a989d255198452475edf3a9875b574358ab62b107a470e17ef685'
7
+ data.tar.gz: 400468f75de5dc42714cf54570975073a49f454ed6c6c80989a330d408d7a700bda1248bbfac7d5dcbb7e769805a7365ee77632f5e8b77712c8719b822aa2a29
@@ -46,6 +46,15 @@ module IsoDoc
46
46
  ret
47
47
  end
48
48
 
49
+ def implicit_reference(bib)
50
+ b = bib.at(ns("./docidentifier[@primary = 'true'][@type = 'BIPM']"))
51
+ return true if /^(CGPM|CIPM|CCDS|CCTF)\s
52
+ (Resolution|Recommendation|Declaration|Decision|Recommendation)/x
53
+ .match?(b&.text)
54
+
55
+ super
56
+ end
57
+
49
58
  def nonstd_bibitem(list, bibitem, ordinal, biblio)
50
59
  list.p **attr_code(iso_bibitem_entry_attrs(bibitem, biblio)) do |ref|
51
60
  ids = bibitem_ref_code(bibitem)
@@ -55,7 +64,7 @@ module IsoDoc
55
64
  ref << (identifiers[0] || identifiers[1])
56
65
  ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
57
66
  end
58
- ref << " " unless biblio && !identifiers[1]
67
+ ref << " "
59
68
  reference_format(bibitem, ref)
60
69
  end
61
70
  end
@@ -69,7 +78,7 @@ module IsoDoc
69
78
  ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
70
79
  end
71
80
  date_note_process(bibitem, ref)
72
- ref << " " unless biblio && !identifiers[1]
81
+ ref << " "
73
82
  reference_format(bibitem, ref)
74
83
  end
75
84
  end