metanorma-bipm 2.1.2 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/base_convert.rb +1 -7
- data/lib/isodoc/bipm/bipm.brochure.xsl +387 -131
- data/lib/isodoc/bipm/bipm.guide.xsl +387 -131
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +387 -131
- data/lib/isodoc/bipm/bipm.rapport.xsl +387 -131
- data/lib/isodoc/bipm/html_convert.rb +4 -4
- data/lib/isodoc/bipm/init.rb +6 -0
- data/lib/isodoc/bipm/jcgm.standard.xsl +331 -112
- data/lib/isodoc/bipm/presentation_xml_convert.rb +3 -5
- data/lib/isodoc/bipm/xref.rb +22 -28
- data/lib/metanorma/bipm/biblio.rng +102 -5
- data/lib/metanorma/bipm/isodoc.rng +33 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +3 -3
@@ -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),
|
data/lib/isodoc/bipm/init.rb
CHANGED
@@ -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
|