metanorma-ogc 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +1 -1
- data/lib/asciidoctor/ogc/biblio.rng +21 -11
- data/lib/asciidoctor/ogc/front.rb +1 -1
- data/lib/asciidoctor/ogc/isodoc.rng +3 -0
- data/lib/isodoc/ogc/html/htmlstyle.scss +2 -1
- data/lib/isodoc/ogc/html/ogc.scss +14 -6
- data/lib/isodoc/ogc/metadata.rb +3 -19
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51962d5ce3484e09e78005d6c5dd1cb09e26494022f6b613817e6b443b2894c8
|
4
|
+
data.tar.gz: eb789d6e500b4d7fbd79553bc2e903dbf87699af5e86c8be579a2834dd440a21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc0f027c30f0b8c1e5df245db5f682b00f1c5778b9f85673dde2804f2843727a08efcceb64aa5544b2aec91d8689b5250896c17b9c5b643c39602c4669e8086f
|
7
|
+
data.tar.gz: 39f6aafd21c67b0a82a347dbf92bdd4978f517217d2e607f72082f02f8d3941cb8e69788bbc43d7a9a86fdf39d365f7fc6a2f0db7817063c9b8199a002fcbf22
|
data/README.adoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
= metanorma-ogc: Metanorma processor for the Open Geospatial Consortium document class
|
2
2
|
|
3
3
|
image:https://img.shields.io/gem/v/metanorma-ogc.svg["Gem Version", link="https://rubygems.org/gems/metanorma-ogc"]
|
4
|
-
image:https://img.shields.io/travis/riboseinc/metanorma-ogc/master.svg["Build Status", link="https://travis-ci.
|
4
|
+
image:https://img.shields.io/travis/riboseinc/metanorma-ogc/master.svg["Build Status", link="https://travis-ci.com/riboseinc/metanorma-ogc"]
|
5
5
|
image:https://codeclimate.com/github/riboseinc/metanorma-ogc/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/metanorma-ogc"]
|
6
6
|
|
7
7
|
WARNING: This gem is still under development.
|
@@ -286,18 +286,23 @@
|
|
286
286
|
</define>
|
287
287
|
<define name="address">
|
288
288
|
<element name="address">
|
289
|
-
<
|
289
|
+
<choice>
|
290
290
|
<!-- iso191606 TODO -->
|
291
|
-
<
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
291
|
+
<group>
|
292
|
+
<oneOrMore>
|
293
|
+
<ref name="street"/>
|
294
|
+
</oneOrMore>
|
295
|
+
<ref name="city"/>
|
296
|
+
<optional>
|
297
|
+
<ref name="state"/>
|
298
|
+
</optional>
|
299
|
+
<ref name="country"/>
|
300
|
+
<optional>
|
301
|
+
<ref name="postcode"/>
|
302
|
+
</optional>
|
303
|
+
</group>
|
304
|
+
<ref name="formattedAddress"/>
|
305
|
+
</choice>
|
301
306
|
</element>
|
302
307
|
</define>
|
303
308
|
<define name="street">
|
@@ -325,6 +330,11 @@
|
|
325
330
|
<text/>
|
326
331
|
</element>
|
327
332
|
</define>
|
333
|
+
<define name="formattedAddress">
|
334
|
+
<element name="formattedAddress">
|
335
|
+
<text/>
|
336
|
+
</element>
|
337
|
+
</define>
|
328
338
|
<define name="person-identifier">
|
329
339
|
<element name="identifier">
|
330
340
|
<attribute name="type">
|
@@ -117,7 +117,7 @@ module Asciidoctor
|
|
117
117
|
|
118
118
|
def metadata_source(node, xml)
|
119
119
|
super
|
120
|
-
node.attr("previous-uri") && xml.
|
120
|
+
node.attr("previous-uri") && xml.uri(node.attr("previous-uri"), type: "previous")
|
121
121
|
end
|
122
122
|
|
123
123
|
def metadata_copyright(node, xml)
|
@@ -593,13 +593,14 @@ p.Biblio, p.NormRef {
|
|
593
593
|
background-color: #e1eef1;
|
594
594
|
padding: 1.2em;
|
595
595
|
margin: 2em 0 1em 0;
|
596
|
+
padding-left: 2em;
|
596
597
|
}
|
597
598
|
|
598
599
|
.example .example-title {
|
599
600
|
font-weight: 700;
|
600
601
|
text-transform: uppercase;
|
601
|
-
text-align: center;
|
602
602
|
margin-top:0;
|
603
|
+
margin-left:-1.5em;
|
603
604
|
}
|
604
605
|
|
605
606
|
.recommend {
|
@@ -607,13 +607,17 @@ div.coverpage_warning
|
|
607
607
|
aside {
|
608
608
|
font-size:10.0pt;
|
609
609
|
}
|
610
|
-
|
611
|
-
|
612
|
-
|
610
|
+
|
611
|
+
.example-title {
|
612
|
+
font-weight: bold;
|
613
|
+
margin-left: -36.0pt;
|
613
614
|
}
|
614
|
-
|
615
|
-
|
616
|
-
|
615
|
+
|
616
|
+
p.example, li.example, div.example, td.example {
|
617
|
+
margin-top: 0cm;
|
618
|
+
margin-right: 36.0pt;
|
619
|
+
margin-bottom: 0cm;
|
620
|
+
margin-left: 36.0pt;
|
617
621
|
mso-pagination:none;
|
618
622
|
font-size:10.0pt;
|
619
623
|
font-family:$bodyfont;}
|
@@ -622,6 +626,10 @@ td.example p.MsoListParagraph {
|
|
622
626
|
font-size: 10.0pt;
|
623
627
|
}
|
624
628
|
|
629
|
+
td.example p.MsoListParagraph {
|
630
|
+
font-size: 10.0pt;
|
631
|
+
}
|
632
|
+
|
625
633
|
span.note_label, span.example_label, td.example_label, td.note_label
|
626
634
|
{
|
627
635
|
font-size: 10.0pt;
|
data/lib/isodoc/ogc/metadata.rb
CHANGED
@@ -22,28 +22,12 @@ module IsoDoc
|
|
22
22
|
def author(isoxml, _out)
|
23
23
|
tc = isoxml.at(ns("//bibdata/editorialgroup/committee"))
|
24
24
|
set(:tc, tc.text) if tc
|
25
|
-
authors = isoxml.xpath(ns("//bibdata/contributor[role/@type = 'author']/person
|
25
|
+
authors = isoxml.xpath(ns("//bibdata/contributor[role/@type = 'author']/person"))
|
26
26
|
set(:authors, extract_person_names(authors))
|
27
|
-
editors = isoxml.xpath(ns("//bibdata/contributor[role/@type = 'editor']/person
|
27
|
+
editors = isoxml.xpath(ns("//bibdata/contributor[role/@type = 'editor']/person"))
|
28
28
|
set(:editors, extract_person_names(editors))
|
29
29
|
end
|
30
30
|
|
31
|
-
def extract_person_names(authors)
|
32
|
-
ret = []
|
33
|
-
authors.each do |a|
|
34
|
-
if a.at(ns("./completename"))
|
35
|
-
ret << a.at(ns("./completename")).text
|
36
|
-
else
|
37
|
-
fn = []
|
38
|
-
forenames = a.xpath(ns("./forename"))
|
39
|
-
forenames.each { |f| fn << f.text }
|
40
|
-
surname = a&.at(ns("./surname"))&.text
|
41
|
-
ret << fn.join(" ") + " " + surname
|
42
|
-
end
|
43
|
-
end
|
44
|
-
ret
|
45
|
-
end
|
46
|
-
|
47
31
|
def docid(isoxml, _out)
|
48
32
|
set(:docnumber, isoxml&.at(ns("//bibdata/docidentifier[@type = 'ogc-internal']"))&.text)
|
49
33
|
set(:externalid, isoxml&.at(ns("//bibdata/docidentifier[@type = 'ogc-external']"))&.text)
|
@@ -95,7 +79,7 @@ module IsoDoc
|
|
95
79
|
|
96
80
|
def url(xml, _out)
|
97
81
|
super
|
98
|
-
a = xml.at(ns("//bibdata/
|
82
|
+
a = xml.at(ns("//bibdata/uri[@type = 'previous']")) and set(:previousuri, a.text)
|
99
83
|
end
|
100
84
|
end
|
101
85
|
end
|
data/metanorma-ogc.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency "asciidoctor", "~> 1.5.7"
|
27
27
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
28
28
|
spec.add_dependency "ruby-jing"
|
29
|
-
spec.add_dependency "metanorma-standoc", "~> 1.0
|
29
|
+
spec.add_dependency "metanorma-standoc", "~> 1.1.0"
|
30
30
|
spec.add_dependency "isodoc", "~> 0.9.0"
|
31
31
|
spec.add_dependency "iso-639"
|
32
32
|
|
@@ -41,5 +41,5 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
42
42
|
spec.add_development_dependency "timecop", "~> 0.9"
|
43
43
|
spec.add_development_dependency "metanorma", "~> 0.3.0"
|
44
|
-
spec.add_development_dependency "metanorma-cli", "~> 1.
|
44
|
+
spec.add_development_dependency "metanorma-cli", "~> 1.1.2"
|
45
45
|
end
|
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: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0
|
61
|
+
version: 1.1.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0
|
68
|
+
version: 1.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: isodoc
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 1.
|
257
|
+
version: 1.1.2
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 1.
|
264
|
+
version: 1.1.2
|
265
265
|
description: 'Metanorma for the Open Geospatial Consortium.
|
266
266
|
|
267
267
|
'
|