metanorma-ogc 2.8.8 → 2.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/init.rb +2 -1
- data/lib/isodoc/ogc/metadata.rb +13 -9
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +22 -4
- data/lib/isodoc/ogc/ogc.best-practice.xsl +22 -4
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +22 -4
- data/lib/isodoc/ogc/ogc.community-practice.xsl +22 -4
- data/lib/isodoc/ogc/ogc.community-standard.xsl +22 -4
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +22 -4
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +22 -4
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +22 -4
- data/lib/isodoc/ogc/ogc.other.xsl +22 -4
- data/lib/isodoc/ogc/ogc.policy.xsl +22 -4
- data/lib/isodoc/ogc/ogc.reference-model.xsl +22 -4
- data/lib/isodoc/ogc/ogc.release-notes.xsl +22 -4
- data/lib/isodoc/ogc/ogc.standard.xsl +22 -4
- data/lib/isodoc/ogc/ogc.test-suite.xsl +22 -4
- data/lib/isodoc/ogc/ogc.user-guide.xsl +22 -4
- data/lib/isodoc/ogc/ogc.white-paper.xsl +22 -4
- data/lib/isodoc/ogc/presentation_xml_convert.rb +3 -3
- data/lib/metanorma/ogc/biblio.rng +18 -8
- data/lib/metanorma/ogc/cleanup.rb +0 -24
- data/lib/metanorma/ogc/front.rb +16 -20
- data/lib/metanorma/ogc/isodoc.rng +27 -10
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
|
@@ -72,30 +72,6 @@ module Metanorma
|
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
# KILL
|
|
76
|
-
def section_names_terms_cleanupx(xml)
|
|
77
|
-
@i18n or return
|
|
78
|
-
replace_title(xml, "//definitions[@type = 'symbols']", @i18n.symbols)
|
|
79
|
-
replace_title(xml, "//definitions[@type = 'abbreviated_terms']",
|
|
80
|
-
@i18n.abbrev)
|
|
81
|
-
replace_title(xml, "//definitions[not(@type)]", @i18n.symbolsabbrev)
|
|
82
|
-
replace_title(xml, "//sections//terms#{SYM_NO_ABBR} | " \
|
|
83
|
-
"//sections//clause[.//terms]#{SYM_NO_ABBR}",
|
|
84
|
-
@i18n.termsdefsymbols, true)
|
|
85
|
-
replace_title(xml, "//sections//terms#{ABBR_NO_SYM} | " \
|
|
86
|
-
"//sections//clause[.//terms]#{ABBR_NO_SYM}",
|
|
87
|
-
@i18n.termsdefabbrev, true)
|
|
88
|
-
replace_title(xml, "//sections//terms#{SYMABBR} | " \
|
|
89
|
-
"//sections//clause[.//terms]#{SYMABBR}",
|
|
90
|
-
@i18n.termsdefsymbolsabbrev, true)
|
|
91
|
-
replace_title(xml, "//sections//terms#{NO_SYMABBR} | " \
|
|
92
|
-
"//sections//clause[.//terms]#{NO_SYMABBR}",
|
|
93
|
-
@i18n.termsdefsymbolsabbrev, true)
|
|
94
|
-
replace_title(xml, "//sections//terms[not(.//definitions)] | " \
|
|
95
|
-
"//sections//clause[.//terms][not(.//definitions)]",
|
|
96
|
-
@i18n.termsdef, true)
|
|
97
|
-
end
|
|
98
|
-
|
|
99
75
|
# as in standoc, but do not rename annex terms
|
|
100
76
|
def section_names_terms1_cleanup(xml)
|
|
101
77
|
auto_name_terms(xml) or return
|
data/lib/metanorma/ogc/front.rb
CHANGED
|
@@ -5,12 +5,6 @@ require "fileutils"
|
|
|
5
5
|
module Metanorma
|
|
6
6
|
module Ogc
|
|
7
7
|
class Converter < Standoc::Converter
|
|
8
|
-
def safe_xml_string(node, key, value)
|
|
9
|
-
node.send key do |n|
|
|
10
|
-
n << value
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
|
|
14
8
|
def org_author(node, xml)
|
|
15
9
|
node.attr("submitting-organizations") or return
|
|
16
10
|
csv_split(@c.decode(node.attr("submitting-organizations")),
|
|
@@ -18,7 +12,7 @@ module Metanorma
|
|
|
18
12
|
xml.contributor do |c|
|
|
19
13
|
c.role type: "author"
|
|
20
14
|
c.organization do |a|
|
|
21
|
-
|
|
15
|
+
add_noko_elem(a, "name", org)
|
|
22
16
|
end
|
|
23
17
|
end
|
|
24
18
|
end
|
|
@@ -40,7 +34,7 @@ module Metanorma
|
|
|
40
34
|
type = node.attr("role#{suffix}")&.downcase || "editor"
|
|
41
35
|
if type == "contributor"
|
|
42
36
|
contrib.role type: "author" do |r|
|
|
43
|
-
|
|
37
|
+
add_noko_elem(r, "description", type)
|
|
44
38
|
end
|
|
45
39
|
else contrib.role type: type
|
|
46
40
|
end
|
|
@@ -52,7 +46,7 @@ module Metanorma
|
|
|
52
46
|
c.role type: "editor"
|
|
53
47
|
c.person do |p|
|
|
54
48
|
p.name do |n|
|
|
55
|
-
n
|
|
49
|
+
add_noko_elem(n, "completename", node.attr("editor"))
|
|
56
50
|
end
|
|
57
51
|
end
|
|
58
52
|
end
|
|
@@ -71,10 +65,10 @@ module Metanorma
|
|
|
71
65
|
|
|
72
66
|
def personal_author_name(node, xml, suffix)
|
|
73
67
|
if node.attr("fullname#{suffix}")
|
|
74
|
-
|
|
68
|
+
add_noko_elem(xml, "completename", node.attr("fullname#{suffix}"))
|
|
75
69
|
else
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
add_noko_elem(xml, "forename", node.attr("givenname#{suffix}"))
|
|
71
|
+
add_noko_elem(xml, "surname", node.attr("surname#{suffix}"))
|
|
78
72
|
end
|
|
79
73
|
end
|
|
80
74
|
|
|
@@ -108,12 +102,15 @@ module Metanorma
|
|
|
108
102
|
end
|
|
109
103
|
|
|
110
104
|
def metadata_id(node, xml)
|
|
111
|
-
|
|
105
|
+
add_noko_elem(xml, "docidentifier", externalid(node),
|
|
106
|
+
type: "ogc-external")
|
|
112
107
|
node.attr("referenceurlid") and
|
|
113
|
-
xml
|
|
114
|
-
|
|
115
|
-
id = node.attr("docidentifier") || docnumber
|
|
116
|
-
|
|
108
|
+
add_noko_elem(xml, "docidentifier", externalurl(node),
|
|
109
|
+
type: "ogc-external")
|
|
110
|
+
id = node.attr("docidentifier") || node.attr("docnumber") ||
|
|
111
|
+
node.attr("docreference")
|
|
112
|
+
add_noko_elem(xml, "docidentifier", id, type: "ogc-internal",
|
|
113
|
+
primary: "true")
|
|
117
114
|
end
|
|
118
115
|
|
|
119
116
|
def externalurl(node)
|
|
@@ -126,8 +123,7 @@ module Metanorma
|
|
|
126
123
|
|
|
127
124
|
def metadata_source(node, xml)
|
|
128
125
|
super
|
|
129
|
-
node.attr("previous-uri")
|
|
130
|
-
type: "previous")
|
|
126
|
+
add_noko_elem(xml, "uri", node.attr("previous-uri"), type: "previous")
|
|
131
127
|
end
|
|
132
128
|
|
|
133
129
|
def metadata_copyright(node, xml)
|
|
@@ -146,7 +142,7 @@ module Metanorma
|
|
|
146
142
|
def ogc_date(node, xml, ogcname, metanormaname)
|
|
147
143
|
if node.attr(ogcname)
|
|
148
144
|
xml.date type: metanormaname do |d|
|
|
149
|
-
d
|
|
145
|
+
add_noko_elem(d, "on", node.attr(ogcname))
|
|
150
146
|
end
|
|
151
147
|
end
|
|
152
148
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
3
|
-
<!-- VERSION v2.1.
|
|
3
|
+
<!-- VERSION v2.1.5 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
|
@@ -905,15 +905,32 @@ titlecase, or lowercase</a:documentation>
|
|
|
905
905
|
</element>
|
|
906
906
|
</define>
|
|
907
907
|
<define name="image" combine="choice">
|
|
908
|
-
<
|
|
909
|
-
<
|
|
910
|
-
|
|
911
|
-
<
|
|
912
|
-
|
|
913
|
-
<
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
908
|
+
<choice>
|
|
909
|
+
<element name="image">
|
|
910
|
+
<ref name="RequiredId"/>
|
|
911
|
+
<ref name="ImageAttributes"/>
|
|
912
|
+
<optional>
|
|
913
|
+
<element name="svg">
|
|
914
|
+
<a:documentation>Allow svg in image/svg, for consistency</a:documentation>
|
|
915
|
+
<oneOrMore>
|
|
916
|
+
<choice>
|
|
917
|
+
<text/>
|
|
918
|
+
<ref name="AnyElement"/>
|
|
919
|
+
</choice>
|
|
920
|
+
</oneOrMore>
|
|
921
|
+
</element>
|
|
922
|
+
</optional>
|
|
923
|
+
</element>
|
|
924
|
+
<element name="svg">
|
|
925
|
+
<a:documentation>Add svg mark up to image</a:documentation>
|
|
926
|
+
<oneOrMore>
|
|
927
|
+
<choice>
|
|
928
|
+
<text/>
|
|
929
|
+
<ref name="AnyElement"/>
|
|
930
|
+
</choice>
|
|
931
|
+
</oneOrMore>
|
|
932
|
+
</element>
|
|
933
|
+
</choice>
|
|
917
934
|
</define>
|
|
918
935
|
<define name="ParagraphFnBody" combine="interleave">
|
|
919
936
|
<ref name="BlockSource">
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-ogc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.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: 2025-
|
|
11
|
+
date: 2025-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: iso-639
|