metanorma-bipm 2.0.0.1 → 2.0.4

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: e12ccd357c97ed5057e57ff60b86afc4cf47941d8e52769930e5557052ad5d68
4
- data.tar.gz: 5eaf1af1f25d13852b79da9499281536fd264d44d88c6ea40465ce44ec2bdc5a
3
+ metadata.gz: d9363dacba25ed2d26871f71776051581988984f4c2e175f81c0babe8cd0fe9d
4
+ data.tar.gz: d63397fde6cc30edf6dc182a721ecf4c96f7ccf640e014740d444928f32f8be3
5
5
  SHA512:
6
- metadata.gz: 36b6f81ab682378bcb10cef58134b63fc4b1ed1bd2413f5ffed996f8a371fb09d95c51071bafad71dc93d561eacfaa63f7e99aa820aa357f217c4236d631a71b
7
- data.tar.gz: c52d5a9880e003749185c8fd847b31253596a35381a21a89a241fa6d6877ba850a9e2ed8f8869161f276ef6d91cd5521965ffd8445e94c37751b182d8b3597de
6
+ metadata.gz: 43c2bc9dc4b36033c5e82a9f56067ffec1fc726e3cc766025d7ac88d22d1cf9fb5aa13a2b55faedcb86fb4bef947478bf58722c56241385c8f6e28071871b1f2
7
+ data.tar.gz: b3754a47485db173cb13bea7c8ffb89874cf7d650ac7cf30b70e50fa6f9b54ec5f329de84d8ea9b4598f59ae648ff54d21fc29f9e89e447f9a81bb57b6e031e3
@@ -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