metanorma-bipm 2.0.2 → 2.0.5

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: 337000827832fb1c61aaee2bd038dcbb490234e228b14f1d06e40a7d1bdf62b5
4
- data.tar.gz: 409fb46f14289101ea9e9004f17b53b2a6498bc0602e3476e24739d47c3029df
3
+ metadata.gz: 9b206ced2e07cad956cc85b8bc7d8b762db76ffc0985ec98281349ca63751e4f
4
+ data.tar.gz: fe16b2306394e683cc6de883b00ea32f7b04dfbfaf1b03842c03dcf180748def
5
5
  SHA512:
6
- metadata.gz: a275cd952d5ab562f8e115c377a9bee247f20a1c8dc549f30d556e165279a4c0d5961c2a837d3d22d5e6955a49688e88e60ee41fbae2d86cbb6831afd4e6402a
7
- data.tar.gz: 4b28f7e84ea060b98ad2dd1855d2c5ab4c70b848a382b79f5de2c1a6c31ba4b6684d9916690e7589b3dd998b74a81b8238792ba2844dc2903e723e14d732df19
6
+ metadata.gz: 878e61ad2e63ca173e915142c1df409b9b20417bcb1c6ea404ea7224c675b13449ab991f45ee5559632efdab53677d6b5b4d45ab687a40e89afcd594d1a898cb
7
+ data.tar.gz: cd239bf349dbd8074e61a0337160595b3c63df97b282d9590ec146e78e15ce3a6d4e1a7beeb38962e102d112074ce56e880a5b556c5a3105aaf4961746e6ce2a
@@ -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