metanorma-gb 1.0.9 → 1.0.10

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: 524e165a26e3aedda18e19c0fa0c4f7f0e10eb7b38f54df27505ebd093bb911e
4
- data.tar.gz: 2d9336e8563cc0d167ca9a25132cc94490799dbd4f13c31fad5e67125d4aa5c7
3
+ metadata.gz: '06975a89d5c98653e7c939fb743fe3712ea76e88b256cf7bb8c2872f81bd85c3'
4
+ data.tar.gz: 3578d7faec7a5ef334f26d5fbb10ddb8c7852df192864bb33d2cafa1b275ec7f
5
5
  SHA512:
6
- metadata.gz: 73c6d5bfb8152347b25fc3de6a3904f7907118ab1d71a7b313d3f1f276bc396d11daf97245acf13fd9b96ed36a077f60d69ea76fb55495b88ce64ee07eb9516f
7
- data.tar.gz: 34fa735f56a3b802c17411ebe8b3d2a99e17588ee7241a4c70f45135bd86929ab4d68b076a34e02e6ed3eb271580fc0eb067043913845a5079a6cdf58aaa6193
6
+ metadata.gz: 6331b81ff943bc1faa71b1c748e234e3a7a7d58d61c8af423528ab77900d5f17aa612ec667fa64cf4108b719e9d2278bbe03fa363edd284aae04b6b3f23dd9fb
7
+ data.tar.gz: 3e0da6b91f3758c8c850a777f143ce6eedf61692432af136f46f5a8b67d19a9c3261ff5024086b3edf0db108e70d2a17ddd669db9e89f6308b12a97df93a104a
@@ -744,6 +744,9 @@
744
744
  </define>
745
745
  <define name="preface">
746
746
  <element name="preface">
747
+ <optional>
748
+ <ref name="preface_abstract"/>
749
+ </optional>
747
750
  <ref name="foreword"/>
748
751
  <optional>
749
752
  <ref name="introduction"/>
@@ -811,6 +814,11 @@
811
814
  </optional>
812
815
  </element>
813
816
  </define>
817
+ <define name="preface_abstract">
818
+ <element name="abstract">
819
+ <ref name="Basic-Section"/>
820
+ </element>
821
+ </define>
814
822
  <define name="foreword">
815
823
  <element name="foreword">
816
824
  <ref name="Basic-Section"/>
@@ -90,7 +90,7 @@
90
90
  {% endif %}
91
91
 
92
92
  <div class="coverpage-stage-block" lang="{{ language }}">
93
- {% if stage and stage < 60 %}
93
+ {% if unpublished %}
94
94
  <span class="stage-if-draft">({{ stageabbr }})</span> <br/>
95
95
  {% if stage == 30 %}
96
96
  <div class="coverpage_warning">
@@ -69,7 +69,7 @@
69
69
  </div>
70
70
 
71
71
  <div class="coverpage-stage-block" lang="{{ language }}">
72
- {% if stage and stage < 60 %}
72
+ {% if unpublished %}
73
73
  <span class="stage-if-draft">({{ stageabbr }})</span>
74
74
  {% if revdate %}
75
75
  <span class="revision-if-draft">({{completion_date}}:{{ revdate }})</span>
@@ -214,7 +214,7 @@ width:263494459px;height:28675px'>
214
214
  <span class="join">{%if language == "zh" %},{% else %}, {% endif %}</span><span class="iso-equivalence-code">{{ gbequivalence }})</span>
215
215
  </p>
216
216
  {% endif %}
217
- {% if stage and stage < 60 %}
217
+ {% if unpublished %}
218
218
  <p class=draft_type><span lang=EN-US><span style='mso-spacerun:yes'> </span></span><span
219
219
  lang=ZH-CN>({{ stageabbr }})</span></p>
220
220
  <p class=draft_type>
@@ -116,8 +116,10 @@ module IsoDoc
116
116
 
117
117
  def docstatus(isoxml, _out)
118
118
  docstatus = isoxml.at(ns("//bibdata/status/stage"))
119
+ set(:unpublished, false)
119
120
  if docstatus
120
121
  set(:stage, docstatus.text.to_i)
122
+ set(:unpublished, docstatus.text.to_i < 60)
121
123
  abbr = stage_abbrev_cn(docstatus.text, isoxml.at(ns("//bibdata/status/iteration")),
122
124
  isoxml.at(ns("//version/draft")))
123
125
  set(:stageabbr, abbr)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Gb
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.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: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso