metanorma-itu 1.2.13 → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,15 +13,11 @@ module IsoDoc
13
13
  end
14
14
 
15
15
  def pdf_stylesheet(docxml)
16
- case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
17
- when "resolution" then "itu.resolution.xsl"
18
- when "recommendation-annex" then "itu.recommendation-annex.xsl"
19
- when "recommendation-supplement" then "itu.recommendation-supplement.xsl"
20
- when "technical-report" then "itu.technical-report.xsl"
21
- when "technical-paper" then "itu.technical-paper.xsl"
22
- else
23
- "itu.recommendation.xsl"
24
- end
16
+ doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
17
+
18
+ "itu.#{doctype}.xsl" if File.exist?(File.join(@libdir, "itu.#{doctype}.xsl"))
19
+
20
+ "itu.recommendation.xsl"
25
21
  end
26
22
  end
27
23
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.2.13"
3
+ VERSION = "1.2.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.13
4
+ version: 1.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -322,6 +322,8 @@ files:
322
322
  - lib/isodoc/itu/i18n-en.yaml
323
323
  - lib/isodoc/itu/i18n.rb
324
324
  - lib/isodoc/itu/init.rb
325
+ - lib/isodoc/itu/itu.implementers-guide.xsl
326
+ - lib/isodoc/itu/itu.in-force.xsl
325
327
  - lib/isodoc/itu/itu.recommendation-annex.xsl
326
328
  - lib/isodoc/itu/itu.recommendation-supplement.xsl
327
329
  - lib/isodoc/itu/itu.recommendation.xsl