metanorma-ogc 2.0.8.1 → 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/ogc/biblio.rb +1 -134
- data/lib/isodoc/ogc/html/html_ogc_titlepage.html +2 -0
- data/lib/isodoc/ogc/html/htmlstyle.css +6 -0
- data/lib/isodoc/ogc/html/htmlstyle.scss +2 -0
- data/lib/isodoc/ogc/html/ogc.css +18 -12
- data/lib/isodoc/ogc/html/ogc.scss +16 -9
- data/lib/isodoc/ogc/html/ogc_wp.css +18 -12
- data/lib/isodoc/ogc/html/ogc_wp.scss +16 -9
- data/lib/isodoc/ogc/html/word_ogc_intro.html +2 -3
- data/lib/isodoc/ogc/html/word_ogc_intro_wp.html +1 -2
- data/lib/isodoc/ogc/html/word_ogc_titlepage.html +20 -17
- data/lib/isodoc/ogc/html/word_ogc_titlepage_wp.html +3 -0
- data/lib/isodoc/ogc/i18n.rb +1 -1
- data/lib/isodoc/ogc/init.rb +5 -6
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.best-practice.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.community-practice.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.community-standard.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.other.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.policy.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.reference-model.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.release-notes.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.standard.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.test-suite.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.user-guide.xsl +1502 -401
- data/lib/isodoc/ogc/ogc.white-paper.xsl +1521 -420
- data/lib/isodoc/ogc/presentation_xml_convert.rb +14 -10
- data/lib/isodoc/ogc/word_convert.rb +3 -4
- data/lib/isodoc/ogc/xref.rb +6 -2
- data/lib/metanorma/ogc/biblio.rng +69 -42
- data/lib/metanorma/ogc/isodoc.rng +65 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- data/lib/relaton/render/config.yml +10 -0
- data/lib/relaton/render/date.rb +9 -0
- data/lib/relaton/render/fields.rb +23 -0
- data/lib/relaton/render/general.rb +25 -0
- data/lib/relaton/render/parse.rb +11 -0
- data/metanorma-ogc.gemspec +1 -1
- metadata +10 -5
data/lib/isodoc/ogc/init.rb
CHANGED
@@ -10,13 +10,13 @@ module IsoDoc
|
|
10
10
|
@meta = Metadata.new(lang, script, labels)
|
11
11
|
end
|
12
12
|
|
13
|
-
def xref_init(lang, script,
|
13
|
+
def xref_init(lang, script, _klass, labels, options)
|
14
14
|
html = HtmlConvert.new(language: lang, script: script)
|
15
15
|
@xrefs = Xref.new(lang, script, html, labels, options)
|
16
16
|
end
|
17
17
|
|
18
18
|
def i18n_init(lang, script, i18nyaml = nil)
|
19
|
-
@i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
|
19
|
+
@i18n = I18n.new(lang, script, i18nyaml: i18nyaml || @i18nyaml)
|
20
20
|
end
|
21
21
|
|
22
22
|
def fileloc(loc)
|
@@ -28,14 +28,13 @@ module IsoDoc
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def ogc_draft_ref?(ref)
|
31
|
-
return unless ref.at(
|
32
|
-
|
33
|
-
"[name = 'Open Geospatial Consortium']"))
|
31
|
+
return unless ref.at(ns("./docidentifier[@type = 'OGC']"))
|
32
|
+
|
34
33
|
status = ref.at(ns("./status/stage"))&.text or return
|
35
34
|
return if %w(approved published deprecated retired).include? status
|
35
|
+
|
36
36
|
true
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
41
|
-
|