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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df4233a66b15a6f5ceca9a09de9f48db9891afef5fe4d51902dc52698284047c
4
- data.tar.gz: b8804f096f9f06f796c1fb8477169b45196b480ea39417bf05d4a917a08d26cd
3
+ metadata.gz: 51962d5ce3484e09e78005d6c5dd1cb09e26494022f6b613817e6b443b2894c8
4
+ data.tar.gz: eb789d6e500b4d7fbd79553bc2e903dbf87699af5e86c8be579a2834dd440a21
5
5
  SHA512:
6
- metadata.gz: 9a23095afe742af5b55067c9258051aa0ed6109ec074424393c06306d5898d04086bf616b78b4d427e3f4fd1f7807b6964d36e173f6eeea6e5b5c179fddd387a
7
- data.tar.gz: db4541efc339686cad756f529048efc9eba7f074941d88652dd45e4419c9d85560938c0da8170716d4af6f2e3680e40bd3f06dd0d3697506b6e76f5fd423c263
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.org/riboseinc/metanorma-ogc"]
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
- <oneOrMore>
289
+ <choice>
290
290
  <!-- iso191606 TODO -->
291
- <ref name="street"/>
292
- </oneOrMore>
293
- <ref name="city"/>
294
- <optional>
295
- <ref name="state"/>
296
- </optional>
297
- <ref name="country"/>
298
- <optional>
299
- <ref name="postcode"/>
300
- </optional>
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.source(node.attr("previous-uri"), type: "previous")
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)
@@ -911,6 +911,9 @@
911
911
  </choice>
912
912
  </attribute>
913
913
  </optional>
914
+ <optional>
915
+ <attribute name="alt"/>
916
+ </optional>
914
917
  </element>
915
918
  </define>
916
919
  <define name="stem">
@@ -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
- div.example {
611
- margin-left:70.9pt;
612
- text-indent:-70.9pt;
610
+
611
+ .example-title {
612
+ font-weight: bold;
613
+ margin-left: -36.0pt;
613
614
  }
614
- p.example, li.example, div.example, td.example
615
- { margin:0in;
616
- margin-bottom:.0001pt;
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;
@@ -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/name"))
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/name"))
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/source[@type = 'previous']")) and set(:previousuri, a.text)
82
+ a = xml.at(ns("//bibdata/uri[@type = 'previous']")) and set(:previousuri, a.text)
99
83
  end
100
84
  end
101
85
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -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.8"
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.0.3"
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.3
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-12 00:00:00.000000000 Z
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.8
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.8
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.0.3
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.0.3
264
+ version: 1.1.2
265
265
  description: 'Metanorma for the Open Geospatial Consortium.
266
266
 
267
267
  '