metanorma-itu 2.1.9 → 2.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/itu.implementers-guide.xsl +1 -1
- data/lib/isodoc/itu/itu.in-force.xsl +1 -1
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +1 -1
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +1 -1
- data/lib/isodoc/itu/itu.recommendation.xsl +1 -1
- data/lib/isodoc/itu/itu.resolution.xsl +1 -1
- data/lib/isodoc/itu/itu.service-publication.xsl +1 -1
- data/lib/isodoc/itu/itu.technical-paper.xsl +1 -1
- data/lib/isodoc/itu/itu.technical-report.xsl +1 -1
- data/lib/isodoc/itu/presentation_xml_convert.rb +3 -4
- data/lib/isodoc/itu/xref.rb +8 -5
- data/lib/metanorma/itu/isodoc.rng +9 -0
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff80a10c49839631d4c76846f353bf8e180ce0ec482a126f63474ecbe091b3ad
|
4
|
+
data.tar.gz: e4d8301448368fbd4c9f01a512c8fd7372c88d2adfd34cec55a5e9f33d75c50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cca3ddc45419d73b876c58cc13f1a3fd3328642bb815308125ceb58a5add436483645160f0975e4385567b7f294e59a2b78e306b5bff7be530092d933d05156d
|
7
|
+
data.tar.gz: bd00bfced817a40dce7e195d36638c15255bd8f76d5429ac5c105bb00852dbba0320d3b72326990be6f9b74cf91add3356069fc3fcf4e35dbffe24ac7ab00edb
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -8865,7 +8865,7 @@
|
|
8865
8865
|
<!-- ====== -->
|
8866
8866
|
<!-- eref -->
|
8867
8867
|
<!-- ====== -->
|
8868
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8868
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8869
8869
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8870
8870
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8871
8871
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -175,13 +175,12 @@ module IsoDoc
|
|
175
175
|
end
|
176
176
|
|
177
177
|
def annex1(elem)
|
178
|
-
return super unless elem
|
178
|
+
return super unless elem.at(ns("//bibdata/ext/doctype"))&.text ==
|
179
179
|
"resolution"
|
180
180
|
|
181
181
|
lbl = @xrefs.anchor(elem["id"], :label)
|
182
|
-
|
183
|
-
|
184
|
-
.children.to_xml + @i18n.l10n(")"))
|
182
|
+
res = elem.at(ns("//bibdata/title[@type = 'resolution']"))
|
183
|
+
subhead = @i18n.l10n("(#{@i18n.get['to']} #{res.children.to_xml})")
|
185
184
|
elem.elements.first.previous =
|
186
185
|
"<p class='supertitle'>#{lbl}<br/>#{subhead}</p>"
|
187
186
|
t = elem.at(ns("./title")) and
|
data/lib/isodoc/itu/xref.rb
CHANGED
@@ -97,21 +97,24 @@ module IsoDoc
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
-
def sequential_figure_body(subfignum, counter, block)
|
100
|
+
def sequential_figure_body(subfignum, counter, block, klass)
|
101
101
|
label = counter.print
|
102
102
|
label &&= label +
|
103
103
|
(subfignum.zero? ? "" : "#{hierfigsep}#{(subfignum + 96).chr}")
|
104
104
|
@anchors[block["id"]] = anchor_struct(
|
105
|
-
label, nil, @labels[
|
105
|
+
label, nil, @labels[klass] || klass.capitalize, klass,
|
106
|
+
block["unnumbered"]
|
106
107
|
)
|
107
108
|
end
|
108
109
|
|
109
|
-
def hierarchical_figure_body(num, subfignum, counter, block)
|
110
|
+
def hierarchical_figure_body(num, subfignum, counter, block, klass)
|
110
111
|
label = "#{num}#{hiersep}#{counter.print}" +
|
111
112
|
(subfignum.zero? ? "" : "#{hierfigsep}#{(subfignum + 96).chr}")
|
112
113
|
|
113
|
-
@anchors[block["id"]] = anchor_struct(
|
114
|
-
|
114
|
+
@anchors[block["id"]] = anchor_struct(
|
115
|
+
label, nil, @labels[klass] || klass.capitalize,
|
116
|
+
klass, block["unnumbered"]
|
117
|
+
)
|
115
118
|
end
|
116
119
|
|
117
120
|
def sequential_formula_names(clause)
|
@@ -205,6 +205,15 @@
|
|
205
205
|
<data type="boolean"/>
|
206
206
|
</attribute>
|
207
207
|
</optional>
|
208
|
+
<optional>
|
209
|
+
<attribute name="style">
|
210
|
+
<choice>
|
211
|
+
<value>basic</value>
|
212
|
+
<value>full</value>
|
213
|
+
<value>short</value>
|
214
|
+
</choice>
|
215
|
+
</attribute>
|
216
|
+
</optional>
|
208
217
|
<ref name="XrefBody"/>
|
209
218
|
</element>
|
210
219
|
</define>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-itu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|