metanorma-nist 1.2.8 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +3 -0
  3. data/.rubocop.yml +0 -4
  4. data/README.adoc +23 -3
  5. data/lib/asciidoctor/nist/basicdoc.rng +52 -3
  6. data/lib/asciidoctor/nist/boilerplate.rb +5 -3
  7. data/lib/asciidoctor/nist/cleanup.rb +4 -3
  8. data/lib/asciidoctor/nist/converter.rb +5 -2
  9. data/lib/asciidoctor/nist/front.rb +37 -46
  10. data/lib/asciidoctor/nist/front_id.rb +18 -7
  11. data/lib/asciidoctor/nist/isodoc.rng +114 -3
  12. data/lib/asciidoctor/nist/nist_intro.xml +9 -9
  13. data/lib/asciidoctor/nist/nist_intro_cswp.xml +9 -9
  14. data/lib/asciidoctor/nist/validate.rb +17 -6
  15. data/lib/isodoc/nist/base_convert.rb +2 -3
  16. data/lib/isodoc/nist/html/header_cswp.html +2 -3
  17. data/lib/isodoc/nist/html/html_nist_titlepage.html +5 -3
  18. data/lib/isodoc/nist/html/word_nist_titlepage.html +8 -8
  19. data/lib/isodoc/nist/html/word_nist_titlepage_cswp.html +2 -0
  20. data/lib/isodoc/nist/html_convert.rb +6 -8
  21. data/lib/isodoc/nist/metadata.rb +28 -40
  22. data/lib/isodoc/nist/metadata_id.rb +3 -7
  23. data/lib/isodoc/nist/nist.csts.xsl +4844 -0
  24. data/lib/isodoc/nist/nist.cswp.xsl +517 -292
  25. data/lib/isodoc/nist/nist.sp.xsl +503 -327
  26. data/lib/isodoc/nist/pdf_convert.rb +5 -1
  27. data/lib/isodoc/nist/presentation_xml_convert.rb +30 -10
  28. data/lib/isodoc/nist/refs.rb +4 -20
  29. data/lib/isodoc/nist/render.rb +42 -40
  30. data/lib/isodoc/nist/render_dates.rb +8 -9
  31. data/lib/isodoc/nist/word_convert.rb +5 -6
  32. data/lib/isodoc/nist/xref.rb +11 -5
  33. data/lib/metanorma/nist/processor.rb +12 -0
  34. data/lib/metanorma/nist/version.rb +1 -1
  35. data/metanorma-nist.gemspec +2 -2
  36. metadata +8 -8
  37. data/lib/metanorma/nist/fonts_manifest.yaml +0 -6
@@ -55,6 +55,13 @@
55
55
  <param name="pattern">\i\c*|\c+#\c+</param>
56
56
  </data>
57
57
  </attribute>
58
+ <optional>
59
+ <attribute name="to">
60
+ <data type="string">
61
+ <param name="pattern">\i\c*|\c+#\c+</param>
62
+ </data>
63
+ </attribute>
64
+ </optional>
58
65
  <optional>
59
66
  <attribute name="type">
60
67
  <ref name="ReferenceFormat"/>
@@ -246,6 +253,12 @@
246
253
  <data type="boolean"/>
247
254
  </attribute>
248
255
  </optional>
256
+ <optional>
257
+ <attribute name="width"/>
258
+ </optional>
259
+ <optional>
260
+ <ref name="colgroup"/>
261
+ </optional>
249
262
  <optional>
250
263
  <ref name="tname"/>
251
264
  </optional>
@@ -764,6 +777,21 @@
764
777
  </define>
765
778
  </include>
766
779
  <!-- end overrides -->
780
+ <define name="colgroup">
781
+ <element name="colgroup">
782
+ <oneOrMore>
783
+ <ref name="col"/>
784
+ </oneOrMore>
785
+ </element>
786
+ </define>
787
+ <define name="col">
788
+ <element name="col">
789
+ <attribute name="width"/>
790
+ </element>
791
+ </define>
792
+ <define name="BibItemType" combine="choice">
793
+ <value>internal</value>
794
+ </define>
767
795
  <define name="TextElement" combine="choice">
768
796
  <ref name="concept"/>
769
797
  </define>
@@ -784,6 +812,8 @@
784
812
  <ref name="requirement"/>
785
813
  <ref name="recommendation"/>
786
814
  <ref name="permission"/>
815
+ <ref name="imagemap"/>
816
+ <ref name="svgmap"/>
787
817
  </choice>
788
818
  </define>
789
819
  <define name="bibliography">
@@ -814,6 +844,9 @@
814
844
  <data type="boolean"/>
815
845
  </attribute>
816
846
  </optional>
847
+ <optional>
848
+ <attribute name="number"/>
849
+ </optional>
817
850
  <optional>
818
851
  <attribute name="obligation">
819
852
  <choice>
@@ -869,9 +902,11 @@
869
902
  <element name="code">
870
903
  <text/>
871
904
  </element>
872
- <element name="text">
873
- <text/>
874
- </element>
905
+ <optional>
906
+ <element name="text">
907
+ <text/>
908
+ </element>
909
+ </optional>
875
910
  </element>
876
911
  </define>
877
912
  <define name="standard-document">
@@ -1041,6 +1076,9 @@
1041
1076
  </choice>
1042
1077
  </attribute>
1043
1078
  </optional>
1079
+ <optional>
1080
+ <attribute name="number"/>
1081
+ </optional>
1044
1082
  <optional>
1045
1083
  <attribute name="type"/>
1046
1084
  </optional>
@@ -1094,6 +1132,9 @@
1094
1132
  <optional>
1095
1133
  <attribute name="type"/>
1096
1134
  </optional>
1135
+ <optional>
1136
+ <attribute name="number"/>
1137
+ </optional>
1097
1138
  <optional>
1098
1139
  <ref name="section-title"/>
1099
1140
  </optional>
@@ -1196,6 +1237,9 @@
1196
1237
  <optional>
1197
1238
  <attribute name="type"/>
1198
1239
  </optional>
1240
+ <optional>
1241
+ <attribute name="number"/>
1242
+ </optional>
1199
1243
  <optional>
1200
1244
  <attribute name="obligation">
1201
1245
  <choice>
@@ -1524,6 +1568,7 @@
1524
1568
  <value>add</value>
1525
1569
  <value>modify</value>
1526
1570
  <value>delete</value>
1571
+ <value>replace</value>
1527
1572
  </choice>
1528
1573
  </attribute>
1529
1574
  <optional>
@@ -1554,6 +1599,11 @@
1554
1599
  </optional>
1555
1600
  <optional>
1556
1601
  <element name="newcontent">
1602
+ <optional>
1603
+ <attribute name="id">
1604
+ <data type="ID"/>
1605
+ </attribute>
1606
+ </optional>
1557
1607
  <zeroOrMore>
1558
1608
  <ref name="BasicBlock"/>
1559
1609
  </zeroOrMore>
@@ -1587,4 +1637,65 @@
1587
1637
  <text/>
1588
1638
  </element>
1589
1639
  </define>
1640
+ <define name="imagemap">
1641
+ <element name="imagemap">
1642
+ <ref name="figure"/>
1643
+ <zeroOrMore>
1644
+ <element name="area">
1645
+ <attribute name="type">
1646
+ <choice>
1647
+ <value>rect</value>
1648
+ <value>circle</value>
1649
+ <value>ellipse</value>
1650
+ <value>poly</value>
1651
+ </choice>
1652
+ </attribute>
1653
+ <choice>
1654
+ <ref name="xref"/>
1655
+ <ref name="hyperlink"/>
1656
+ <ref name="eref"/>
1657
+ </choice>
1658
+ <oneOrMore>
1659
+ <element name="coords">
1660
+ <attribute name="x">
1661
+ <data type="float"/>
1662
+ </attribute>
1663
+ <attribute name="y">
1664
+ <data type="float"/>
1665
+ </attribute>
1666
+ </element>
1667
+ </oneOrMore>
1668
+ <optional>
1669
+ <element name="radius">
1670
+ <attribute name="x">
1671
+ <data type="float"/>
1672
+ </attribute>
1673
+ <optional>
1674
+ <attribute name="y">
1675
+ <data type="float"/>
1676
+ </attribute>
1677
+ </optional>
1678
+ </element>
1679
+ </optional>
1680
+ </element>
1681
+ </zeroOrMore>
1682
+ </element>
1683
+ </define>
1684
+ <define name="svgmap">
1685
+ <element name="svgmap">
1686
+ <ref name="figure"/>
1687
+ <zeroOrMore>
1688
+ <element name="target">
1689
+ <attribute name="href">
1690
+ <data type="anyURI"/>
1691
+ </attribute>
1692
+ <choice>
1693
+ <ref name="xref"/>
1694
+ <ref name="hyperlink"/>
1695
+ <ref name="eref"/>
1696
+ </choice>
1697
+ </element>
1698
+ </zeroOrMore>
1699
+ </element>
1700
+ </define>
1590
1701
  </grammar>
@@ -6,21 +6,21 @@
6
6
  <p>
7
7
  {%- if substage == "retired" or substage == "withdrawn" -%}
8
8
  {%- if unpublished -%}
9
- {%- if substage == "retired" %}{{draft-retired-boilerplate}}{% else %}{{draft-withdrawn-boilerplate}}{% endif -%}
9
+ {%- if substage == "retired" %}{{labels["draft-retired-boilerplate"]}}{% else %}{{labels["draft-withdrawn-boilerplate"]}}{% endif -%}
10
10
  {%- else -%}
11
- {%- if withdrawal_pending %}{{ withdrawal-pending-boilerplate}}{% else %}{{ publication-withdrawn-boilerplate }}{% endif -%}
11
+ {%- if withdrawal_pending %}{{ labels["withdrawal-pending-boilerplate"]}}{% else %}{{ labels["publication-withdrawn-boilerplate"] }}{% endif -%}
12
12
  {%- endif -%}
13
13
  {%- else -%}
14
14
  {%- if status == "Internal Draft" -%}
15
- {{- draft-internal-boilerplate -}}
15
+ {{- labels["draft-internal-boilerplate"] -}}
16
16
  {%- elsif status == "Work-in-Progress Draft" -%}
17
- {{- draft-wip-boilerplate -}}
17
+ {{- labels["draft-wip-boilerplate"] -}}
18
18
  {%- elsif status == "Preliminary Draft" -%}
19
- {{- draft-prelim-boilerplate -}}
19
+ {{- labels["draft-prelim-boilerplate"] -}}
20
20
  {%- elsif status == "Public Draft" -%}
21
- {{- draft-public-boilerplate -}}
21
+ {{- labels["draft-public-boilerplate"] -}}
22
22
  {%- elsif status == "Approval Draft" -%}
23
- {{- draft-public-boilerplate -}}
23
+ {{- labels["draft-public-boilerplate"] -}}
24
24
  {%- endif -%}
25
25
  {%- endif -%}
26
26
  </p>
@@ -78,8 +78,8 @@ CODEN: NSPUE2</p>
78
78
  <p align="center"><strong>Comments on this publication may be submitted to:</strong></p>
79
79
 
80
80
  <p align="center">National Institute of Standards and Technology <br/>
81
- Attn: {{ nist_division }} <br/>
82
- {{ nist_division_address }} <br/>
81
+ Attn: {{ labels["nist_division"] }} <br/>
82
+ {{ labels["nist_division_address"] }} <br/>
83
83
  {% if email %}
84
84
  Email: <link target="mailto:{{ email }}"/>
85
85
  {% endif %}</p>
@@ -6,21 +6,21 @@
6
6
  <p>
7
7
  {%- if substage == "retired" or substage == "withdrawn" -%}
8
8
  {%- if unpublished -%}
9
- {%- if substage == "retired" %}{{draft-retired-boilerplate}}{% else %}{{draft-withdrawn-boilerplate}}{% endif -%}
9
+ {%- if substage == "retired" %}{{labels["draft-retired-boilerplate"]}}{% else %}{{labels["draft-withdrawn-boilerplate"]}}{% endif -%}
10
10
  {%- else -%}
11
- {%- if withdrawal_pending %}{{ withdrawal-pending-boilerplate}}{% else %}{{ publication-withdrawn-boilerplate }}{% endif -%}
11
+ {%- if withdrawal_pending %}{{ labels["withdrawal-pending-boilerplate"]}}{% else %}{{ labels["publication-withdrawn-boilerplate"] }}{% endif -%}
12
12
  {%- endif -%}
13
13
  {%- else -%}
14
14
  {%- if status == "Internal Draft" -%}
15
- {{- draft-internal-boilerplate -}}
15
+ {{- labels["draft-internal-boilerplate"] -}}
16
16
  {%- elsif status == "Work-in-Progress Draft" -%}
17
- {{- draft-wip-boilerplate -}}
17
+ {{- labels["draft-wip-boilerplate"] -}}
18
18
  {%- elsif status == "Preliminary Draft" -%}
19
- {{- draft-prelim-boilerplate -}}
19
+ {{- labels["draft-prelim-boilerplate"] -}}
20
20
  {%- elsif status == "Public Draft" -%}
21
- {{- draft-public-boilerplate -}}
21
+ {{- labels["draft-public-boilerplate"] -}}
22
22
  {%- elsif status == "Approval Draft" -%}
23
- {{- draft-public-boilerplate -}}
23
+ {{- labels["draft-public-boilerplate"] -}}
24
24
  {%- endif -%}
25
25
  {%- endif -%}
26
26
  </p>
@@ -62,8 +62,8 @@
62
62
  <p align="center"><strong>Comments on this publication may be submitted to:</strong></p>
63
63
 
64
64
  <p align="center">National Institute of Standards and Technology <br/>
65
- Attn: {{ nist_division }} <br/>
66
- {{ nist_division_address }} <br/>
65
+ Attn: {{ labels["nist_division"] }} <br/>
66
+ {{ labels["nist_division_address"] }} <br/>
67
67
  {% if email %}
68
68
  Email: <link target="mailto:{{ email }}"/>
69
69
  {% endif %}</p>
@@ -48,18 +48,29 @@ module Asciidoctor
48
48
  end
49
49
 
50
50
  def series_validate(xmldoc)
51
- series = xmldoc&.at("//bibdata/series/title")&.text or return
51
+ series = xmldoc&.at("//bibdata/series[@type = 'main']/title")&.text or return
52
+ recognised_series_validate(series)
53
+ subseries_validate(series, xmldoc)
54
+ end
55
+
56
+ def recognised_series_validate(series)
52
57
  found = false
53
58
  SERIES.each { |_, v| found = true if v == series }
54
- found or
55
- @log.add("Document Attributes", nil,
56
- "#{series} is not a recognised series")
59
+ found or @log.add("Document Attributes", nil, "#{series} is not a recognised series")
60
+ end
61
+
62
+ def subseries_validate(series, xmldoc)
63
+ subseries = xmldoc&.at("//bibdata/series[@type = 'secondary']")
64
+ csts = series == "NIST Cybersecurity Technical Specification"
65
+ subseries && !csts and
66
+ @log.add("Document Attributes", nil, "Subseries are not permitted on the series #{series}")
67
+ !subseries && csts and
68
+ @log.add("Document Attributes", nil, "Subseries are required on the series #{series}")
57
69
  end
58
70
 
59
71
  def validate(doc)
60
72
  content_validate(doc)
61
- schema_validate(formattedstr_strip(doc.dup),
62
- File.join(File.dirname(__FILE__), "nist.rng"))
73
+ schema_validate(formattedstr_strip(doc.dup), File.join(File.dirname(__FILE__), "nist.rng"))
63
74
  end
64
75
 
65
76
  def introduction_validate(doc)
@@ -113,7 +113,7 @@ module IsoDoc
113
113
  end
114
114
  end
115
115
 
116
- def middle_clause
116
+ def middle_clause(_docxml)
117
117
  "//clause[parent::sections] | //terms[parent::sections]"
118
118
  end
119
119
 
@@ -175,8 +175,7 @@ module IsoDoc
175
175
 
176
176
  def modification_parse(node, out)
177
177
  out << @i18n.modified
178
- node.at(ns("./p[text()[normalize-space() != '']]")) and
179
- out << " &mdash; "
178
+ node.at(ns("./p[text()[normalize-space() != '']]")) and out << " &mdash; "
180
179
  node.at(ns("./p")).children.each { |n| parse(n, out) }
181
180
  end
182
181
 
@@ -65,8 +65,7 @@ href="../{{ filename }}.html">
65
65
 
66
66
  <p class=MsoHeaderCxSpFirst style='tab-stops:center 234.0pt right 468.0pt'><span
67
67
  lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif;font-variant:
68
- small-caps;color:#244061;mso-themecolor:accent1;mso-themeshade:128'>NIST
69
- Cybersecurity White Paper<span style='mso-tab-count:2'>                                                                           </span></span><!--[if supportFields]><span
68
+ small-caps;color:#244061;mso-themecolor:accent1;mso-themeshade:128'>{{ series }}<span style='mso-tab-count:2'>                                                                           </span></span><!--[if supportFields]><span
70
69
  lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif;font-variant:
71
70
  small-caps;color:#244061;mso-themecolor:accent1;mso-themeshade:128'><span
72
71
  style='mso-element:field-begin'></span> DOCPROPERTY<span
@@ -199,7 +198,7 @@ _Hlk10701209'></span></a><w:Sdt SdtDocPart="t" DocPartType="Watermarks"
199
198
  style='mso-bookmark:_Hlk10701209'><span lang=EN-US style='font-size:10.0pt;
200
199
  font-family:"Arial",sans-serif;font-variant:small-caps;color:white;mso-themecolor:
201
200
  background1;background:#244061;mso-shading-themecolor:accent1;mso-shading-themeshade:
202
- 128'>NIST Cybersecurity White Paper {% if draft_prefix %}(DRAFT){% endif %}</span></span></span><span
201
+ 128'>{{ series }} {% if draft_prefix %}(DRAFT){% endif %}</span></span></span><span
203
202
  style='mso-bookmark:_Hlk10701208'><span style='mso-bookmark:_Hlk10701209'><span
204
203
  class=MsoCommentReference><span lang=EN-US style='font-size:10.0pt;font-family:
205
204
  "Arial",sans-serif;font-variant:small-caps;color:white;mso-color-alt:windowtext'><span
@@ -86,7 +86,7 @@
86
86
  {% if unpublished %}
87
87
  <div class="coverpage-warning">
88
88
  <!--
89
- <p>{% if substage == "retired" %}{{draft-retired-boilerplate}}{% else %}{{draft-withdrawn-boilerplate}}{% endif %}</p>
89
+ <p>{% if substage == "retired" %}{{labels["draft-retired-boilerplate"]}}{% else %}{{labels["draft-withdrawn-boilerplate"]}}{% endif %}</p>
90
90
  -->
91
91
  <div class="authority6"/>
92
92
 
@@ -105,9 +105,9 @@
105
105
  <div class="coverpage-warning">
106
106
  <!--
107
107
  {% if withdrawal_pending %}
108
- <p>{{ withdrawal-pending-boilerplate}}</p>
108
+ <p>{{ labels["withdrawal-pending-boilerplate"]}}</p>
109
109
  {% else %}
110
- <p>{{ publication-withdrawn-boilerplate }}</p>
110
+ <p>{{ labels["publication-withdrawn-boilerplate"] }}</p>
111
111
  {% endif %}
112
112
  -->
113
113
  <div class="authority6"/>
@@ -172,12 +172,14 @@
172
172
  {% endif %}
173
173
  </div>
174
174
 
175
+ {% if doi %}
175
176
  <div class="download-info">
176
177
 
177
178
  This publication is available free of charge from: <br>
178
179
  <a href="{{doi}}">{{ doi }}</a>
179
180
 
180
181
  </div>
182
+ {% endif %}
181
183
  {% endunless %}
182
184
 
183
185
  {% endif %}
@@ -59,9 +59,9 @@ AABkcnMvZG93bnJldi54bWxQSwUGAAAAAAQABADzAAAAkwUAAAAA
59
59
  style='mso-bidi-font-weight:normal'><span lang="EN-US">Warning Notice<o:p></o:p></span></b></p>
60
60
  <p class="Default"><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'><o:p>&#xa0;</o:p></span></p>
61
61
  {% if substage == "retired" %}
62
- <p class="Default" style='font-size:12.0pt;'><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'>{{draft-retired-boilerplate}}<o:p></o:p></span></p>
62
+ <p class="Default" style='font-size:12.0pt;'><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'>{{labels["draft-retired-boilerplate"]}}<o:p></o:p></span></p>
63
63
  {% else %}
64
- <p class="Default" style='font-size:12.0pt;'><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'>{{draft-withdrawn-boilerplate}}<o:p></o:p></span></p>
64
+ <p class="Default" style='font-size:12.0pt;'><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'>{{labels["draft-withdrawn-boilerplate"]}}<o:p></o:p></span></p>
65
65
  {% endif %}
66
66
  -->
67
67
  <div class="authority6"/>
@@ -375,7 +375,7 @@ AABkcnMvZG93bnJldi54bWxQSwUGAAAAAAQABADzAAAAkwUAAAAA
375
375
  <p class="Default" align="center" style='text-align:center;font-size:12.0pt;'><b
376
376
  style='mso-bidi-font-weight:normal'><span lang="EN-US">Warning Notice<o:p></o:p></span></b></p>
377
377
  <p class="Default"><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'><o:p>&#xa0;</o:p></span></p>
378
- <p class="Default" style='font-size:12.0pt;'><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'>{{ withdrawal-pending-boilerplate}}<o:p></o:p></span></p>
378
+ <p class="Default" style='font-size:12.0pt;'><span lang="EN-US" style='mso-fareast-font-family:"Times New Roman"'>{{ labels["withdrawal-pending-boilerplate"]}}<o:p></o:p></span></p>
379
379
  -->
380
380
  <p class="Default" align="center" style='text-align:center'><span lang="EN-US"
381
381
  style='mso-fareast-font-family:"Times New Roman"'><o:p>&#xa0;</o:p></span></p>
@@ -593,7 +593,7 @@ style='width:477.0pt;margin-left:-5.25pt;border-collapse:collapse;border:none;ms
593
593
  color:black;mso-themecolor:text1'><o:p>&#xa0;</o:p></span></p>
594
594
  <p class="Default"><span lang="EN-US" style='font-size:11.0pt;font-family:"Calibri",sans-serif;
595
595
  mso-ascii-theme-font:major-latin;mso-fareast-font-family:"Times New Roman";
596
- mso-hansi-theme-font:major-latin;mso-bidi-font-family:"Times New Roman"'>{{publication-withdrawn-boilerplate}}<o:p></o:p></span></p>
596
+ mso-hansi-theme-font:major-latin;mso-bidi-font-family:"Times New Roman"'>{{labels["publication-withdrawn-boilerplate"]}}<o:p></o:p></span></p>
597
597
  -->
598
598
  <div class="withdrawn">
599
599
  <div class="authority6"/>
@@ -1111,13 +1111,13 @@ style='font-size:14.0pt;color:black;mso-themecolor:text1'>&#xa0;</span></p>
1111
1111
  style='font-size:14.0pt'>&#xa0;</span></p>
1112
1112
  <p class="Default" align="left" style='text-align:justify;text-justify:inter-ideograph'><span lang="EN-US"
1113
1113
  style='font-size:12.0pt'>{% if status == "Internal Draft" %}
1114
- {{draft-internal-boilerplate}}
1114
+ {{labels["draft-internal-boilerplate"]}}
1115
1115
  {% elsif status == "Work-in-Progress Draft" %}
1116
- {{draft-wip-boilerplate}}
1116
+ {{labels["draft-wip-boilerplate"]}}
1117
1117
  {% elsif status == "Preliminary Draft" %}
1118
- {{draft-prelim-boilerplate}}
1118
+ {{labels["draft-prelim-boilerplate"]}}
1119
1119
  {% elsif status == "Public Draft" %}
1120
- {{draft-public-boilerplate}}
1120
+ {{labels["draft-public-boilerplate"]}}
1121
1121
  {% else %}
1122
1122
  {{status}}
1123
1123
  {% endif %}</span></p>
@@ -62,7 +62,9 @@ mso-themeshade:128'>{{ issueddate_MMMddyyyy }}</span></p>
62
62
 
63
63
  <p class="MsoNormal">&#xa0;</p>
64
64
 
65
+ {% if doi %}
65
66
  <p class="MsoNormal"><span
66
67
  style='color:#244061;mso-themecolor:accent1;mso-themeshade:128'>This
67
68
  publication is available free of charge from:<br/>
68
69
  {{ doi }}</span></p>
70
+ {% endif %}
@@ -21,14 +21,12 @@ module IsoDoc
21
21
 
22
22
  def default_fonts(options)
23
23
  {
24
- bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' :
25
- '"Libre Baskerville",serif'),
26
- headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' :
27
- '"Libre Baskerville",serif'),
28
- monospacefont: '"Space Mono",monospace',
29
- normalfontsize: "14px",
30
- footnotefontsize: "0.9em",
31
- monospacefontsize: "0.8em",
24
+ bodyfont: '"Libre Baskerville",serif',
25
+ headerfont: '"Libre Baskerville",serif',
26
+ monospacefont: '"Space Mono",monospace',
27
+ normalfontsize: "14px",
28
+ footnotefontsize: "0.9em",
29
+ monospacefontsize: "0.8em",
32
30
  }
33
31
  end
34
32