metanorma-bipm 2.0.7 → 2.1.1

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: 6dc6dea6bff44b301710108fe0f360f84c9a081c6503ccbf9903a612636ea72a
4
- data.tar.gz: f58b879ba367233907371bae08d563fd354f5d9e8c06c9bdc65df8ed6457244d
3
+ metadata.gz: 4761e4bcdcee984cf3976957d64cd4d70a3ecacbaa658979e8284903ca35fa06
4
+ data.tar.gz: d7d08d2a8f096b1e52c8beb34a5be55b0df5c739e63ae182521abd992dcfdd86
5
5
  SHA512:
6
- metadata.gz: 74bdf97de373be23543a58265d760825cadb8ba489299332ccfffe8ff2515da405e0e3e648d2b62d7e75da1bbe485409e60a6e88cdab0cc36cbb9bc191a1b371
7
- data.tar.gz: fa377c93817bd81211ef65e09abdc5f41b03256a297b4b130e50f991937600e88e31ebeb5d3bf6b170726e7e8a17178fa77e8df210505dfe8fccc63f898956ca
6
+ metadata.gz: ef3b51a790882dfafab98c78575d77dfa7ff0be910bfda2bdd0fc5f34ccaed360761874a9753ace15ee54646b93ac12125faac07f5e8fb5de3ede747d3813eca
7
+ data.tar.gz: 6948128c8dbf35bc418a648156182655c1a5d1579f6dcd2a311aeb089f47161c2d08588583013db37cf29b73fd97475378a771f882597cac1ed535393a6f8a48
@@ -46,6 +46,13 @@ 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 /^BIPM CGPM Resolution|^BIPM CIPM Decision/.match?(b&.text)
52
+
53
+ super
54
+ end
55
+
49
56
  def nonstd_bibitem(list, bibitem, ordinal, biblio)
50
57
  list.p **attr_code(iso_bibitem_entry_attrs(bibitem, biblio)) do |ref|
51
58
  ids = bibitem_ref_code(bibitem)
@@ -55,7 +62,7 @@ module IsoDoc
55
62
  ref << (identifiers[0] || identifiers[1])
56
63
  ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
57
64
  end
58
- ref << " " unless biblio && !identifiers[1]
65
+ ref << " "
59
66
  reference_format(bibitem, ref)
60
67
  end
61
68
  end
@@ -69,7 +76,7 @@ module IsoDoc
69
76
  ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
70
77
  end
71
78
  date_note_process(bibitem, ref)
72
- ref << " " unless biblio && !identifiers[1]
79
+ ref << " "
73
80
  reference_format(bibitem, ref)
74
81
  end
75
82
  end