metanorma-itu 2.1.6 → 2.1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -1
- data/.github/workflows/release.yml +24 -0
- data/lib/isodoc/itu/html/html_itu_titlepage.html +1 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +138 -159
- data/lib/isodoc/itu/itu.in-force.xsl +138 -159
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +138 -159
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +138 -159
- data/lib/isodoc/itu/itu.recommendation.xsl +138 -159
- data/lib/isodoc/itu/itu.resolution.xsl +138 -159
- data/lib/isodoc/itu/itu.service-publication.xsl +138 -159
- data/lib/isodoc/itu/itu.technical-paper.xsl +138 -159
- data/lib/isodoc/itu/itu.technical-report.xsl +138 -159
- data/lib/isodoc/itu/presentation_xml_convert.rb +15 -17
- data/lib/isodoc/itu/ref.rb +11 -2
- data/lib/metanorma/itu/biblio.rng +8 -5
- data/lib/metanorma/itu/version.rb +1 -1
- data/lib/metanorma-itu.rb +2 -1
- metadata +7 -6
data/lib/isodoc/itu/ref.rb
CHANGED
@@ -9,7 +9,7 @@ module IsoDoc
|
|
9
9
|
list.tr **attr_code(iso_bibitem_entry_attrs(bibitem, biblio)) do |ref|
|
10
10
|
id = render_identifier(bibitem_ref_code(bibitem))
|
11
11
|
ref.td **{ style: "vertical-align:top" } do |td|
|
12
|
-
td << (id
|
12
|
+
td << pick_ident(id)
|
13
13
|
&.gsub(/-/, "‑")&.gsub(/ /, " ")
|
14
14
|
date_note_process(bibitem, td)
|
15
15
|
end
|
@@ -17,6 +17,14 @@ module IsoDoc
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
def pick_ident(id)
|
21
|
+
return id[:metanorma] if id[:metanorma]
|
22
|
+
return "[#{id[:sdo]}]" if id[:sdo]
|
23
|
+
return id[:ordinal] if id[:ordinal]
|
24
|
+
|
25
|
+
""
|
26
|
+
end
|
27
|
+
|
20
28
|
def std_bibitem_entry(list, bibitem, ordinal, biblio)
|
21
29
|
nonstd_bibitem(list, bibitem, ordinal, biblio)
|
22
30
|
end
|
@@ -73,7 +81,8 @@ module IsoDoc
|
|
73
81
|
id = bibitem.xpath(ns("./docidentifier[not(@type = 'metanorma' or "\
|
74
82
|
"#{IGNORE_IDS})]"))
|
75
83
|
id.empty? and
|
76
|
-
id = bibitem.xpath(ns("./docidentifier[not(@type = 'metanorma'
|
84
|
+
id = bibitem.xpath(ns("./docidentifier[not(@type = 'metanorma' or "\
|
85
|
+
"@type = 'metanorma-ordinal')]"))
|
77
86
|
return [] if id.empty?
|
78
87
|
|
79
88
|
id.sort_by { |i| i["type"] == "ITU" ? 0 : 1 }
|
@@ -225,9 +225,9 @@
|
|
225
225
|
<zeroOrMore>
|
226
226
|
<ref name="forename"/>
|
227
227
|
</zeroOrMore>
|
228
|
-
<
|
229
|
-
<ref name="
|
230
|
-
</
|
228
|
+
<optional>
|
229
|
+
<ref name="formatted-initials"/>
|
230
|
+
</optional>
|
231
231
|
<ref name="surname"/>
|
232
232
|
<zeroOrMore>
|
233
233
|
<ref name="addition"/>
|
@@ -247,8 +247,8 @@
|
|
247
247
|
<ref name="LocalizedString"/>
|
248
248
|
</element>
|
249
249
|
</define>
|
250
|
-
<define name="
|
251
|
-
<element name="
|
250
|
+
<define name="formatted-initials">
|
251
|
+
<element name="formatted-initials">
|
252
252
|
<ref name="LocalizedString"/>
|
253
253
|
</element>
|
254
254
|
</define>
|
@@ -264,6 +264,9 @@
|
|
264
264
|
</define>
|
265
265
|
<define name="forename">
|
266
266
|
<element name="forename">
|
267
|
+
<optional>
|
268
|
+
<attribute name="initial"/>
|
269
|
+
</optional>
|
267
270
|
<ref name="LocalizedString"/>
|
268
271
|
</element>
|
269
272
|
</define>
|
data/lib/metanorma-itu.rb
CHANGED
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.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -258,6 +258,7 @@ extensions: []
|
|
258
258
|
extra_rdoc_files: []
|
259
259
|
files:
|
260
260
|
- ".github/workflows/rake.yml"
|
261
|
+
- ".github/workflows/release.yml"
|
261
262
|
- ".gitignore"
|
262
263
|
- ".hound.yml"
|
263
264
|
- ".rubocop.yml"
|
@@ -342,7 +343,7 @@ homepage: https://github.com/metanorma/metanorma-itu
|
|
342
343
|
licenses:
|
343
344
|
- BSD-2-Clause
|
344
345
|
metadata: {}
|
345
|
-
post_install_message:
|
346
|
+
post_install_message:
|
346
347
|
rdoc_options: []
|
347
348
|
require_paths:
|
348
349
|
- lib
|
@@ -357,8 +358,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
357
358
|
- !ruby/object:Gem::Version
|
358
359
|
version: '0'
|
359
360
|
requirements: []
|
360
|
-
rubygems_version: 3.
|
361
|
-
signing_key:
|
361
|
+
rubygems_version: 3.1.6
|
362
|
+
signing_key:
|
362
363
|
specification_version: 4
|
363
364
|
summary: Metanorma for the ITU
|
364
365
|
test_files: []
|