metanorma-bipm 2.1.3 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,10 +29,10 @@ module IsoDoc
29
29
  end
30
30
 
31
31
  def ol_attrs(node)
32
- klass, style = if node["type"] == "roman" &&
33
- !node.at("./ancestor::xmlns:ol[@type = 'roman']") ||
34
- node["type"] == "alphabet" &&
35
- !node.at("./ancestor::xmlns:ol[@type = 'alphabet']")
32
+ klass, style = if (node["type"] == "roman" &&
33
+ !node.at("./ancestor::xmlns:ol[@type = 'roman']")) ||
34
+ (node["type"] == "alphabet" &&
35
+ !node.at("./ancestor::xmlns:ol[@type = 'alphabet']"))
36
36
  [node["type"], counter_reset(node)]
37
37
  end
38
38
  super.merge(attr_code(type: ol_style((node["type"] || "arabic").to_sym),
@@ -18,6 +18,12 @@ module IsoDoc
18
18
  def i18n_init(lang, script, i18nyaml = nil)
19
19
  @i18n = I18n.new(lang, script, i18nyaml: i18nyaml || @i18nyaml)
20
20
  end
21
+
22
+ def omit_docid_prefix(prefix)
23
+ return true if %w(BIPM).include? prefix
24
+
25
+ super
26
+ end
21
27
  end
22
28
  end
23
29
  end