metanorma-bipm 2.0.8 → 2.1.2
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 +11 -2
- data/lib/isodoc/bipm/bipm.brochure.xsl +1657 -484
- data/lib/isodoc/bipm/bipm.guide.xsl +1657 -484
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +1657 -484
- data/lib/isodoc/bipm/bipm.rapport.xsl +1657 -484
- data/lib/isodoc/bipm/doccontrol.rb +101 -0
- data/lib/isodoc/bipm/html/html_bipm_titlepage.html +1 -0
- data/lib/isodoc/bipm/html/htmlstyle.css +6 -0
- data/lib/isodoc/bipm/html/htmlstyle.scss +1 -0
- data/lib/isodoc/bipm/init.rb +1 -1
- data/lib/isodoc/bipm/jcgm.standard.xsl +1696 -440
- data/lib/isodoc/bipm/presentation_xml_convert.rb +18 -93
- data/lib/isodoc/bipm/xref.rb +8 -4
- data/lib/metanorma/bipm/biblio.rng +69 -42
- data/lib/metanorma/bipm/bipm.rng +3 -0
- data/lib/metanorma/bipm/converter.rb +41 -108
- data/lib/metanorma/bipm/front.rb +113 -0
- data/lib/metanorma/bipm/isodoc.rng +65 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +2 -2
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 499a7b37d41efc53a0084f1f2beea40ff9ac3b4afad9b50990644f0bc202e959
|
4
|
+
data.tar.gz: '0875b48b37ae60347a5020eddcc2c365a6e436613ea84e2bfafc3471421777a9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0862323d8da5038aceacbfb44c38f841f250299920e3bcf110229b66648502199d96dd55b84a989d255198452475edf3a9875b574358ab62b107a470e17ef685'
|
7
|
+
data.tar.gz: 400468f75de5dc42714cf54570975073a49f454ed6c6c80989a330d408d7a700bda1248bbfac7d5dcbb7e769805a7365ee77632f5e8b77712c8719b822aa2a29
|
@@ -46,6 +46,15 @@ module IsoDoc
|
|
46
46
|
ret
|
47
47
|
end
|
48
48
|
|
49
|
+
def implicit_reference(bib)
|
50
|
+
b = bib.at(ns("./docidentifier[@primary = 'true'][@type = 'BIPM']"))
|
51
|
+
return true if /^(CGPM|CIPM|CCDS|CCTF)\s
|
52
|
+
(Resolution|Recommendation|Declaration|Decision|Recommendation)/x
|
53
|
+
.match?(b&.text)
|
54
|
+
|
55
|
+
super
|
56
|
+
end
|
57
|
+
|
49
58
|
def nonstd_bibitem(list, bibitem, ordinal, biblio)
|
50
59
|
list.p **attr_code(iso_bibitem_entry_attrs(bibitem, biblio)) do |ref|
|
51
60
|
ids = bibitem_ref_code(bibitem)
|
@@ -55,7 +64,7 @@ module IsoDoc
|
|
55
64
|
ref << (identifiers[0] || identifiers[1])
|
56
65
|
ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
|
57
66
|
end
|
58
|
-
ref << " "
|
67
|
+
ref << " "
|
59
68
|
reference_format(bibitem, ref)
|
60
69
|
end
|
61
70
|
end
|
@@ -69,7 +78,7 @@ module IsoDoc
|
|
69
78
|
ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
|
70
79
|
end
|
71
80
|
date_note_process(bibitem, ref)
|
72
|
-
ref << " "
|
81
|
+
ref << " "
|
73
82
|
reference_format(bibitem, ref)
|
74
83
|
end
|
75
84
|
end
|