metanorma-bipm 2.0.3 → 2.0.6

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: 6608e517d958535d3cfc0651e03e5dd2d196a09e07eda5a4ea4c0e9586da995e
4
- data.tar.gz: 0635aeea23d9a3441dc24d58ada757b3b1bb9495e4918ebdf2075a94dc7d0837
3
+ metadata.gz: 5c1cda232376044f26ca0752d361382aaadbf7b1e8989434a03cbd11e7201221
4
+ data.tar.gz: 44e2167a44382df941023c94cdc31bceb3b3b18debc0024767226d6fdfca365e
5
5
  SHA512:
6
- metadata.gz: 51abe1cb30e3db2d4f6da5cc0a8b8898c6dc2500ba0ec084488d5886380ec68bffeaea98d63f3daeaf4a88c6bcdd492bc1872481bb3a51b4b2b6a1f281ac9629
7
- data.tar.gz: '096cff97169aa59da077d16808d61d95a915f3985907af2e2d8adb6c59b90f7643473ae20e7dfdffc21e84668a8c9c860976e74c7f03b526272933c4cbb46111'
6
+ metadata.gz: e68c38aec2249e23c2b1c0c6d2cbaecb9c4caf7e7d9bbdb5f47252c10500a22872d6f640934905739b9a8896ef1115590c5958d491edd5d83425ff24bab7e297
7
+ data.tar.gz: 8e4019292a726ccd28ade7747eeac7bb722200309d48167e771f605b463871dbba98641825582f435fffade446f5009e44ec1f525cd0066bb417c010a366a517
@@ -33,10 +33,16 @@ module IsoDoc
33
33
  end
34
34
  end
35
35
 
36
- def render_identifier(id)
36
+ def omit_docid_prefix(prefix)
37
+ return true if %w(BIPM).include? prefix
38
+
39
+ super
40
+ end
41
+
42
+ def render_identifier(ident)
37
43
  ret = super
38
- ret[1] = nil if !id[1].nil? && id[1]["type"] == "BIPM"
39
- ret[2] = nil if !id[2].nil? && id[2]["type"] == "BIPM"
44
+ ret[:sdo] = ret[:sdo]&.sub(/^(BIPM) (PV|CR) (\d.*)$/,
45
+ "\\1 <strong>\\2</strong>, \\3")
40
46
  ret
41
47
  end
42
48