metanorma-unece 0.0.11 → 0.0.12

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: d57ec6b1ffe41604dea3328e8505de9814849ecf913324e30c5e8f1ae4821fc4
4
- data.tar.gz: 9cef0ef017720fd8b7e121fe364cbee2d43fcfb051ffa2f52d04a78e37e0d476
3
+ metadata.gz: 6bc96f4c10497c4a82ea01cfbf023ca98d296e9a0e7e4f3e82900328a6a96e27
4
+ data.tar.gz: 1057969d7adf07d6b81db802a3735d92c9d9ed9db922bbfd0fc28d448eb6e84b
5
5
  SHA512:
6
- metadata.gz: be0195806b5f0c4b981aadb4b8b7069adebd76147d94aa16908583f9450feac754505d9ca64c8c63c545641669f5210472d01957b8268ef489d278bae4fc63be
7
- data.tar.gz: fd9ce24b37a37692142aafb21ee974b1c1f6ba06967bc35595107a7e895367025b504a7578451ba1fd1b1a5c0fce3aa0a75359d0f4d20b1df62e98758ba4db99
6
+ metadata.gz: e3d249786ac6967b7fe394e170f7ea66129cdc216577ad07056bfebf3bf7eab04e3316eb2ce20d74c351b358a828021d35b1c64eb5183b02a6f04c438afe699b
7
+ data.tar.gz: c5a9c7fd022a2193d6fec8ebec13676cc71ae59635cc46122ada39ebbd66a1c023dd88c33aa65f6e43ed9553b29086e9459bfb5f2b68e168215140c0b5f08953
@@ -45,10 +45,11 @@ module Asciidoctor
45
45
 
46
46
  def title(node, xml)
47
47
  ["en"].each do |lang|
48
- xml.title **{ language: lang, format: "text/plain" } do |t|
48
+ xml.title **{ type: "main", language: lang, format: "text/plain" } do |t|
49
49
  t << asciidoc_sub(node.attr("title"))
50
50
  end
51
- xml.subtitle **{ language: lang, format: "text/plain" } do |t|
51
+ node.attr("subtitle") and
52
+ xml.title **{ type: "subtitle", language: lang, format: "text/plain" } do |t|
52
53
  t << asciidoc_sub(node.attr("subtitle"))
53
54
  end
54
55
  end
@@ -81,7 +82,7 @@ module Asciidoctor
81
82
  end
82
83
 
83
84
  def metadata_distribution(node, xml)
84
- xml.distribution node.attr("distribution") if node.attr("distribution")
85
+ xml.distribution node.attr("distribution") if node.attr("distribution")
85
86
  end
86
87
 
87
88
  def metadata_session(node, xml)
@@ -12,12 +12,12 @@ module IsoDoc
12
12
  end
13
13
 
14
14
  def title(isoxml, _out)
15
- main = isoxml&.at(ns("//bibdata/title[@language='en']"))&.text
15
+ main = isoxml&.at(ns("//bibdata/title[@language='en' and @type='main']"))&.text
16
16
  set(:doctitle, main)
17
17
  end
18
18
 
19
19
  def subtitle(isoxml, _out)
20
- main = isoxml&.at(ns("//bibdata/subtitle[@language='en']"))&.text
20
+ main = isoxml&.at(ns("//bibdata/title[@language='en' and @type='subtitle']"))&.text
21
21
  set(:docsubtitle, main)
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Unece
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-unece
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
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-02-25 00:00:00.000000000 Z
11
+ date: 2019-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor