asciidoctor-gb 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -1
- data/Gemfile +3 -0
- data/README.adoc +1 -0
- data/asciidoctor-gb.gemspec +3 -2
- data/lib/asciidoctor/gb/biblio.rng +3 -6
- data/lib/asciidoctor/gb/converter.rb +37 -10
- data/lib/asciidoctor/gb/isodoc.rng +8 -2
- data/lib/asciidoctor/gb/isostandard.rng +1 -1
- data/lib/asciidoctor/gb/section_input.rb +0 -11
- data/lib/asciidoctor/gb/validate.rb +1 -1
- data/lib/asciidoctor/gb/version.rb +1 -1
- data/lib/isodoc/gb/gbconvert.rb +1 -1
- data/lib/isodoc/gb/gbhtmlconvert.rb +15 -4
- data/lib/isodoc/gb/gbhtmlrender.rb +5 -3
- data/lib/isodoc/gb/gbwordconvert.rb +10 -21
- data/lib/isodoc/gb/gbwordrender.rb +1 -1
- data/lib/isodoc/gb/html/gb.scss +2 -2
- data/lib/isodoc/gb/html/html_compliant_gb_titlepage.html +116 -0
- data/lib/isodoc/gb/html/html_gb_intro.html +4 -7
- data/lib/isodoc/gb/html/html_gb_titlepage.html +14 -19
- data/lib/isodoc/gb/html/htmlcompliantstyle.scss +1220 -0
- data/lib/isodoc/gb/html/htmlstyle.scss +896 -158
- data/lib/isodoc/gb/metadata.rb +27 -8
- data/lib/metanorma/gb/processor.rb +3 -0
- metadata +23 -9
- data/Gemfile.lock +0 -244
- data/lib/isodoc/gb/agencies.rb +0 -356
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d575dd90564cdf6559599921fab8a71bdb584e441f5cd24484a847a793aad9a
|
4
|
+
data.tar.gz: 260c7cb9bbefbf93619ca52688b77298767fb31fd05f736fe6a467c90a696a56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceb9ef6b5fd1f879271b60d9dc3bc21a9a55003d19e4f493f436116a9f8124e2ae06b761a1564d834e06684c47216d354fe7727ef7304c9bb7811efd91effd74
|
7
|
+
data.tar.gz: e62aca0454d2fee75bd2922588af111d75fe11dcb989f5658fc407a67810d209006e82b6300e9f4949418bc8ec5e09fe3fd957027380c8f84cca1a52344b44c5
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.adoc
CHANGED
@@ -27,6 +27,7 @@ have the same format; the gem formats the title page to have the correct
|
|
27
27
|
metadata displayed.
|
28
28
|
|
29
29
|
The following outputs are generated.
|
30
|
+
|
30
31
|
* (Optional) An HTML preview generated directly from the Asciidoctor document,
|
31
32
|
using native Asciidoc formatting.
|
32
33
|
** http://asciimath.org[AsciiMathML] is to be used for mathematical formatting.
|
data/asciidoctor-gb.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
DESCRIPTION
|
18
18
|
|
19
19
|
spec.homepage = "https://github.com/riboseinc/asciidoctor-gb"
|
20
|
-
spec.license = "
|
20
|
+
spec.license = "BSD-2-Clause"
|
21
21
|
|
22
22
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
23
23
|
f.match(%r{^(test|spec|features)/})
|
@@ -27,9 +27,10 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
29
|
spec.add_dependency "asciidoctor-iso", ">= 0.9.0"
|
30
|
-
spec.add_dependency "gbbib"
|
30
|
+
spec.add_dependency "gbbib", "~> 0.2.2"
|
31
31
|
spec.add_dependency "isodoc", ">= 0.8.0"
|
32
32
|
spec.add_dependency "twitter_cldr"
|
33
|
+
spec.add_dependency "gb-agencies", "~> 0.0.1"
|
33
34
|
|
34
35
|
spec.add_development_dependency "bundler", "~> 1.15"
|
35
36
|
spec.add_development_dependency "byebug", "~> 9.1"
|
@@ -514,7 +514,7 @@
|
|
514
514
|
</element>
|
515
515
|
</define>
|
516
516
|
<define name="bsource">
|
517
|
-
<element name="
|
517
|
+
<element name="uri">
|
518
518
|
<ref name="TypedUri"/>
|
519
519
|
</element>
|
520
520
|
</define>
|
@@ -523,11 +523,6 @@
|
|
523
523
|
<ref name="FormattedString"/>
|
524
524
|
</element>
|
525
525
|
</define>
|
526
|
-
<define name="link">
|
527
|
-
<element name="link">
|
528
|
-
<ref name="TypedUri"/>
|
529
|
-
</element>
|
530
|
-
</define>
|
531
526
|
<define name="validity">
|
532
527
|
<element name="validity">
|
533
528
|
<optional>
|
@@ -805,6 +800,8 @@
|
|
805
800
|
<value>nonequivalent</value>
|
806
801
|
<value>includedIn</value>
|
807
802
|
<value>includes</value>
|
803
|
+
<value>instance</value>
|
804
|
+
<value>partOf</value>
|
808
805
|
</choice>
|
809
806
|
</attribute>
|
810
807
|
<element name="bibitem">
|
@@ -3,6 +3,7 @@ require "asciidoctor/iso/converter"
|
|
3
3
|
require "asciidoctor/gb/version"
|
4
4
|
require "isodoc/gb/gbconvert"
|
5
5
|
require "isodoc/gb/gbwordconvert"
|
6
|
+
require "gb_agencies"
|
6
7
|
require_relative "./section_input.rb"
|
7
8
|
require_relative "./front.rb"
|
8
9
|
require_relative "./validate.rb"
|
@@ -50,16 +51,30 @@ module Asciidoctor
|
|
50
51
|
)
|
51
52
|
end
|
52
53
|
|
54
|
+
def html_compliant_converter(node)
|
55
|
+
node.nil? ? IsoDoc::Gb::HtmlConvert.new({}) :
|
56
|
+
IsoDoc::Gb::HtmlConvert.new(
|
57
|
+
script: node.attr("script"),
|
58
|
+
bodyfont: node.attr("body-font"),
|
59
|
+
headerfont: node.attr("header-font"),
|
60
|
+
monospacefont: node.attr("monospace-font"),
|
61
|
+
titlefont: node.attr("title-font"),
|
62
|
+
i18nyaml: node.attr("i18nyaml"),
|
63
|
+
scope: node.attr("scope"),
|
64
|
+
compliant: true,
|
65
|
+
)
|
66
|
+
end
|
67
|
+
|
53
68
|
def doc_converter(node)
|
54
69
|
node.nil? ? IsoDoc::Gb::WordConvert.new({}) :
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
70
|
+
IsoDoc::Gb::WordConvert.new(
|
71
|
+
script: node.attr("script"),
|
72
|
+
bodyfont: node.attr("body-font"),
|
73
|
+
headerfont: node.attr("header-font"),
|
74
|
+
monospacefont: node.attr("monospace-font"),
|
75
|
+
titlefont: node.attr("title-font"),
|
76
|
+
i18nyaml: node.attr("i18nyaml"),
|
77
|
+
scope: node.attr("scope"),
|
63
78
|
)
|
64
79
|
end
|
65
80
|
|
@@ -85,6 +100,8 @@ module Asciidoctor
|
|
85
100
|
unless node.attr("nodoc") || !node.attr("docfile")
|
86
101
|
filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
|
87
102
|
File.open(filename + ".xml", "w") { |f| f.write(ret) }
|
103
|
+
html_compliant_converter(node).convert(filename + ".xml")
|
104
|
+
system "mv #{filename}.html #{filename}_compliant.html"
|
88
105
|
html_converter(node).convert(filename + ".xml")
|
89
106
|
doc_converter(node).convert(filename + ".xml")
|
90
107
|
end
|
@@ -168,7 +185,7 @@ module Asciidoctor
|
|
168
185
|
"YD|YS|YY|YZ|ZY|GB|GBZ|GJB|GBn|GHZB|GWKB|GWPB|JJF|JJG|Q|T)(/Z|/T)?)"
|
169
186
|
|
170
187
|
ISO_REF = %r{^<ref\sid="(?<anchor>[^"]+)">
|
171
|
-
\[(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9-]
|
188
|
+
\[(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9-]+?)([:-](?<year>(19|20)[0-9][0-9]))?\]</ref>,?\s
|
172
189
|
(?<text>.*)$}xm
|
173
190
|
|
174
191
|
ISO_REF_NO_YEAR = %r{^<ref\sid="(?<anchor>[^"]+)">
|
@@ -186,9 +203,19 @@ module Asciidoctor
|
|
186
203
|
[matched, matched2, matched3]
|
187
204
|
end
|
188
205
|
|
206
|
+
def fetch_ref(xml, code, year, **opts)
|
207
|
+
code = "GB Standard " + code if /^#{GBCODE}[^A-Za-z]/.match? code
|
208
|
+
hit = @bibdb&.fetch(code, year, opts)
|
209
|
+
return nil if hit.nil?
|
210
|
+
xml.parent.add_child(hit.to_xml)
|
211
|
+
xml
|
212
|
+
rescue Algolia::AlgoliaProtocolError
|
213
|
+
nil # Render reference without an Internet connection.
|
214
|
+
end
|
215
|
+
|
189
216
|
def cleanup(xmldoc)
|
190
217
|
lang = xmldoc.at("//language")&.text
|
191
|
-
@agencyclass =
|
218
|
+
@agencyclass = GbAgencies::Agencies.new(lang, {}, "")
|
192
219
|
super
|
193
220
|
contributor_cleanup(xmldoc)
|
194
221
|
xmldoc
|
@@ -888,12 +888,18 @@
|
|
888
888
|
</attribute>
|
889
889
|
<optional>
|
890
890
|
<attribute name="width">
|
891
|
-
<
|
891
|
+
<choice>
|
892
|
+
<data type="int"/>
|
893
|
+
<value>auto</value>
|
894
|
+
</choice>
|
892
895
|
</attribute>
|
893
896
|
</optional>
|
894
897
|
<optional>
|
895
898
|
<attribute name="height">
|
896
|
-
<
|
899
|
+
<choice>
|
900
|
+
<data type="int"/>
|
901
|
+
<value>auto</value>
|
902
|
+
</choice>
|
897
903
|
</attribute>
|
898
904
|
</optional>
|
899
905
|
</element>
|
@@ -70,17 +70,6 @@ module Asciidoctor
|
|
70
70
|
#end
|
71
71
|
#end
|
72
72
|
|
73
|
-
#def fetch_ref1(code, year, opts)
|
74
|
-
#id = iso_id(code, year, opts[:all_parts])
|
75
|
-
#return nil if @bibdb.nil? # signals we will not be using isobib
|
76
|
-
#@bibdb[id] = Isobib::IsoBibliography.get(code, year, opts) unless @bibdb[id]
|
77
|
-
#@local_bibdb[id] = @bibdb[id] if !@local_bibdb.nil? &&
|
78
|
-
#!@local_bibdb[id]
|
79
|
-
#return @local_bibdb[id] unless @local_bibdb.nil?
|
80
|
-
#@bibdb[id]
|
81
|
-
#end
|
82
|
-
|
83
|
-
|
84
73
|
=begin
|
85
74
|
# spec of permissible section sequence
|
86
75
|
SEQ = [
|
@@ -13,7 +13,7 @@ module Asciidoctor
|
|
13
13
|
bilingual_terms_validate(doc.root)
|
14
14
|
issuer_validate(doc.root)
|
15
15
|
prefix_validate(doc.root)
|
16
|
-
@agencyclass.gbtype_validate(doc.root)
|
16
|
+
@agencyclass.gbtype_validate(doc.root.at("//gbscope")&.text, doc.root.at("//gbprefix")&.text)
|
17
17
|
end
|
18
18
|
|
19
19
|
def prefix_validate(root)
|
data/lib/isodoc/gb/gbconvert.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require_relative "gbconvert"
|
2
|
-
|
2
|
+
require "gb_agencies"
|
3
3
|
require_relative "gbcleanup"
|
4
4
|
require_relative "metadata"
|
5
5
|
require_relative "gbhtmlrender"
|
@@ -28,14 +28,25 @@ module IsoDoc
|
|
28
28
|
def initialize(options)
|
29
29
|
@common = IsoDoc::Gb::Common.new(options)
|
30
30
|
super
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
if options[:compliant]
|
32
|
+
@htmlstylesheet = generate_css(html_doc_path("htmlcompliantstyle.scss"), true, default_fonts(options))
|
33
|
+
@htmlcoverpage = html_doc_path("html_compliant_gb_titlepage.html")
|
34
|
+
else
|
35
|
+
@htmlstylesheet = generate_css(html_doc_path("htmlstyle.scss"), true, default_fonts(options))
|
36
|
+
#@htmlcoverpage = html_doc_path("html_gb_titlepage.html")
|
37
|
+
@htmlcoverpage = html_doc_path("html_compliant_gb_titlepage.html")
|
38
|
+
end
|
34
39
|
@htmlintropage = html_doc_path("html_gb_intro.html")
|
35
40
|
@scripts = html_doc_path("scripts.html")
|
41
|
+
@lang = "zh"
|
42
|
+
@script = "Hans"
|
36
43
|
end
|
37
44
|
|
38
45
|
def metadata_init(lang, script, labels)
|
46
|
+
unless ["en", "zh"].include? lang
|
47
|
+
lang = "zh"
|
48
|
+
script = "Hans"
|
49
|
+
end
|
39
50
|
@meta = Metadata.new(lang, script, labels)
|
40
51
|
@common = IsoDoc::Gb::Common.new(meta: @meta)
|
41
52
|
end
|
@@ -188,9 +188,11 @@ module IsoDoc
|
|
188
188
|
end
|
189
189
|
|
190
190
|
def term_defs_boilerplate(div, source, term, preface)
|
191
|
-
|
192
|
-
div <<
|
193
|
-
|
191
|
+
unless preface
|
192
|
+
(source.empty? && term.nil?) and div << @no_terms_boilerplate or
|
193
|
+
div << term_defs_boilerplate_cont(source, term)
|
194
|
+
end
|
195
|
+
#div << @term_def_boilerplate unless preface
|
194
196
|
end
|
195
197
|
|
196
198
|
def reference_names(ref)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "isodoc"
|
2
2
|
require_relative "gbconvert"
|
3
3
|
require_relative "gbcleanup"
|
4
|
-
|
4
|
+
require "gb_agencies"
|
5
5
|
require_relative "metadata"
|
6
6
|
require_relative "gbwordrender"
|
7
7
|
|
@@ -29,7 +29,7 @@ module IsoDoc
|
|
29
29
|
|
30
30
|
def metadata_init(lang, script, labels)
|
31
31
|
@meta = Metadata.new(lang, script, labels)
|
32
|
-
|
32
|
+
@common = IsoDoc::Gb::Common.new(meta: @meta)
|
33
33
|
end
|
34
34
|
|
35
35
|
def html_doc_path(file)
|
@@ -46,14 +46,20 @@ module IsoDoc
|
|
46
46
|
@wordintropage = html_doc_path("word_gb_intro.html")
|
47
47
|
@ulstyle = "l7"
|
48
48
|
@olstyle = "l10"
|
49
|
+
@lang = "zh"
|
50
|
+
@script = "Hans"
|
49
51
|
end
|
50
52
|
|
51
|
-
|
53
|
+
def metadata_init(lang, script, labels)
|
54
|
+
unless ["en", "zh"].include? lang
|
55
|
+
lang = "zh"
|
56
|
+
script = "Hans"
|
57
|
+
end
|
52
58
|
@meta = Metadata.new(lang, script, labels)
|
53
59
|
@common = IsoDoc::Gb::Common.new(meta: @meta)
|
54
60
|
end
|
55
61
|
|
56
|
-
|
62
|
+
def cleanup(docxml)
|
57
63
|
@cleanup = Cleanup.new(@script, @deprecated_lbl)
|
58
64
|
super
|
59
65
|
@cleanup.cleanup(docxml)
|
@@ -128,23 +134,6 @@ module IsoDoc
|
|
128
134
|
docxml
|
129
135
|
end
|
130
136
|
|
131
|
-
#def word_intro(docxml)
|
132
|
-
#super
|
133
|
-
#title_cleanup(docxml.at('//div[@class="WordSection2"]'))
|
134
|
-
#end
|
135
|
-
|
136
|
-
=begin
|
137
|
-
def toWord(result, filename, dir)
|
138
|
-
result = populate_template(result, :word)
|
139
|
-
result = from_xhtml(word_cleanup(to_xhtml(result)))
|
140
|
-
Html2Doc.process(result, filename: filename,
|
141
|
-
stylesheet: @wordstylesheet,
|
142
|
-
header_file: "header.html", dir: dir,
|
143
|
-
asciimathdelims: [@openmathdelim, @closemathdelim],
|
144
|
-
liststyles: {ul: "l7", ol: "l10"})
|
145
|
-
end
|
146
|
-
=end
|
147
|
-
|
148
137
|
def html_doc_path(file)
|
149
138
|
File.join(File.dirname(__FILE__), File.join("html", file))
|
150
139
|
end
|
@@ -190,7 +190,7 @@ module IsoDoc
|
|
190
190
|
def term_defs_boilerplate(div, source, term, preface)
|
191
191
|
(source.empty? && term.nil?) and div << @no_terms_boilerplate or
|
192
192
|
div << term_defs_boilerplate_cont(source, term)
|
193
|
-
div << @term_def_boilerplate unless preface
|
193
|
+
#div << @term_def_boilerplate unless preface
|
194
194
|
end
|
195
195
|
|
196
196
|
def reference_names(ref)
|
data/lib/isodoc/gb/html/gb.scss
CHANGED
@@ -15,7 +15,7 @@ p.Sourcecode, li.Sourcecode, div.Sourcecode, pre.Sourcecode
|
|
15
15
|
mso-fareast-font-family:Calibri;
|
16
16
|
mso-bidi-font-family:"Courier New";
|
17
17
|
mso-ansi-language:EN-GB;}
|
18
|
-
p.Biblio, li.Biblio, div.Biblio
|
18
|
+
p.Biblio, li.Biblio, div.Biblio, p.NormRef, li.NormRef, p.NormRef
|
19
19
|
{mso-style-unhide:no;
|
20
20
|
mso-style-qformat:yes;
|
21
21
|
mso-style-parent:"";
|
@@ -553,4 +553,4 @@ span.zh {
|
|
553
553
|
}
|
554
554
|
span.en {
|
555
555
|
font-family: Cambria,serif;
|
556
|
-
}
|
556
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
<div class="document-stage-band" id="{{ status | downcase }}-band">
|
2
|
+
<p class="document-stage">{{ status }}</p>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div class="document-type-band" id="{{ doctype | downcase}}-band">
|
6
|
+
<p class="document-type">{{ doctype }}</p>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div id='toggle'> <span>•</span> </div>
|
10
|
+
|
11
|
+
<header>
|
12
|
+
<div class="coverpage">
|
13
|
+
<div class="coverpage-header">
|
14
|
+
|
15
|
+
|
16
|
+
<div class="coverpage-category">
|
17
|
+
<span class="category-1">{{ libraryid_ccs }}</span>
|
18
|
+
<span class="category-2">ICS {{ libraryid_ics }} </span>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="coverpage-logo">
|
22
|
+
<div class="coverpage-logo-gb-img">{{ standard_logo }}</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="coverpage-logo-header">
|
26
|
+
<div>
|
27
|
+
<span class="coverpage-logo-text">
|
28
|
+
|
29
|
+
<span class="coverpage-logo-text">{{ standard_class }}</span>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div class="coverpage-doc-identity-first">
|
34
|
+
<div class="coverpage_docnumber">
|
35
|
+
<span class="docnumber">{{ docidentifier }}</span>
|
36
|
+
{{ draftinfo }}
|
37
|
+
{%- if isostandard and gbequivalence == "IDT" -%}
|
38
|
+
/<span class="docnumber">{{ isostandard }}</span>
|
39
|
+
{%- endif -%}
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<div class="coverpage-doc-relations">
|
43
|
+
{% if obsoletes %}
|
44
|
+
{% if obsoletes_part %}
|
45
|
+
<span class="partially-supercedes">{{ partly_supercedes_lbl }}</span>
|
46
|
+
{% else %}
|
47
|
+
<span class="supercedes">{{ supercedes_lbl }}</span>
|
48
|
+
{% endif %}
|
49
|
+
{{ obsoletes }}
|
50
|
+
{% endif %}
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="coverpage-banner">
|
58
|
+
|
59
|
+
|
60
|
+
<div class="coverpage-doc-identity-second">
|
61
|
+
<div class="coverpage-title-zh">
|
62
|
+
<span class="title-first">{{ docmaintitlezh }}</span>
|
63
|
+
<span class="title-second">{{ docsubtitlezh }}</span>
|
64
|
+
<span class="title-third"> {{ docparttitlezh }}</span>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<!-- for local standards (DB, DB/T), no en title -->
|
68
|
+
<div class="coverpage-title-en">
|
69
|
+
<span class="title-first">{{ docmaintitleen }}</span>
|
70
|
+
<span class="title-second">{{ docsubtitleen }}</span>
|
71
|
+
<span class="title-third">{{ docparttitleen }}</span>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
<div class="coverpage-footer">
|
77
|
+
<!-- for local standards (DB, DB/T), no relation to ISO standards -->
|
78
|
+
<!-- if related to ISO standards -->
|
79
|
+
{% if isostandard %}
|
80
|
+
<div class="coverpage-iso-relation">
|
81
|
+
<span class="openparen">(</span>
|
82
|
+
<span class="iso-document-code">{{ isostandard }}</span>
|
83
|
+
{% if isostandardtitle != "[not supplied]" %}
|
84
|
+
<span class="iso-title-first">{{ isostandardtitle }}</span>
|
85
|
+
{% endif %}
|
86
|
+
<span class="join">,</span>
|
87
|
+
<span class="iso-equivalence-code">{{ gbequivalence }}</span>
|
88
|
+
<span class="closeparen">)</span>
|
89
|
+
</div>
|
90
|
+
{% endif %}
|
91
|
+
|
92
|
+
<div class="coverpage-stage-block" lang="{{ language }}">
|
93
|
+
{% if stage and stage < 60 %}
|
94
|
+
<span class="stage-if-draft">({{ stageabbr }})</span> <br/>
|
95
|
+
{% if stage == 30 %}
|
96
|
+
<div class="coverpage_warning">
|
97
|
+
{{ patent_request }}
|
98
|
+
</div>
|
99
|
+
{% endif %}
|
100
|
+
{% if revdate %}
|
101
|
+
<span class="revision-if-draft">({{completion_date}} {{ revdate }})</span>
|
102
|
+
{% endif %}
|
103
|
+
{% endif %}
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
</div>
|
107
|
+
<div class="coverpage-dates">
|
108
|
+
<span class="date-publish">{{ labelled_publisheddate }}</span>
|
109
|
+
<span class="date-active">{{ labelled_implementeddate }}</span>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
|
113
|
+
<div class="coverpage_footer">
|
114
|
+
{{ standard_agency_formatted }}
|
115
|
+
</div>
|
116
|
+
</header>
|
@@ -1,4 +1,6 @@
|
|
1
|
-
<div
|
1
|
+
<div id='toggle'> <span>•</span> </div>
|
2
|
+
|
3
|
+
|
2
4
|
|
3
5
|
<div class="coverpage-category">
|
4
6
|
<span class="category-1">ICS {{ libraryid_ics }} </span>
|
@@ -13,10 +15,10 @@
|
|
13
15
|
</div>
|
14
16
|
|
15
17
|
<div class="coverpage-doc-identity-first">
|
16
|
-
<div class="
|
18
|
+
<div class="coverpage_docnumber">
|
17
19
|
<span class="docnumber">{{ docidentifier }}</span>
|
18
|
-
<span class="docnumber-separator"
|
19
|
-
|
20
|
+
<span class="docnumber-separator">
|
21
|
+
{{ draftinfo }}
|
20
22
|
{%- if isostandard and gbequivalence == "IDT" -%}
|
21
23
|
/<span class="docnumber">{{ isostandard }}</span>
|
22
24
|
{%- endif -%}
|
@@ -25,16 +27,10 @@
|
|
25
27
|
<div class="coverpage-doc-relations">
|
26
28
|
{% if obsoletes %}
|
27
29
|
{% if obsoletes_part %}
|
28
|
-
|
30
|
+
<span class="partially-supercedes">{{ partly_supercedes_lbl }}</span>
|
29
31
|
{% else %}
|
30
|
-
|
32
|
+
<span class="supercedes">{{ supercedes_lbl }}</span>
|
31
33
|
{% endif %}
|
32
|
-
<!--
|
33
|
-
<ul>
|
34
|
-
<li>GB/T XXXX-XXXX</li>
|
35
|
-
<li>GB/T YYYY-YYYY</li>
|
36
|
-
</ul>
|
37
|
-
-->
|
38
34
|
{{ obsoletes }}
|
39
35
|
{% endif %}
|
40
36
|
</div>
|
@@ -76,24 +72,23 @@
|
|
76
72
|
{% if stage and stage < 60 %}
|
77
73
|
<span class="stage-if-draft">({{ stageabbr }})</span>
|
78
74
|
{% if revdate %}
|
79
|
-
<span class="revision-if-draft"
|
75
|
+
<span class="revision-if-draft">({{completion_date}}:{{ revdate }})</span>
|
80
76
|
{% endif %}
|
81
77
|
{% if stage == 30 %}
|
82
|
-
<
|
83
|
-
|
84
|
-
</
|
78
|
+
<div class="coverpage_warning">
|
79
|
+
{{ patent_request }}
|
80
|
+
</div>
|
85
81
|
{% endif %}
|
86
82
|
{% endif %}
|
87
83
|
</div>
|
88
84
|
|
89
85
|
<div class="coverpage-dates">
|
90
|
-
<span class="date-publish">{{
|
91
|
-
<span class="date-active">{{
|
86
|
+
<span class="date-publish">{{ labelled_publisheddate }}</span>
|
87
|
+
<span class="date-active">{{ labelled_implementeddate }}</span>
|
92
88
|
</div>
|
93
89
|
|
94
90
|
<div class="coverpage_footer">
|
95
91
|
{{ standard_agency_formatted }}
|
96
92
|
</div>
|
97
93
|
|
98
|
-
</div>
|
99
94
|
|