metanorma-itu 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,12 @@ module IsoDoc
23
23
  main = isoxml&.at(ns("//bibdata/title[@language='#{@lang}']"\
24
24
  "[@type = 'subtitle']"))&.text
25
25
  set(:docsubtitle, main)
26
+ main = isoxml&.at(ns("//bibdata/title[@language='#{@lang}']"\
27
+ "[@type = 'amendment']"))&.text
28
+ set(:amendmenttitle, main)
29
+ main = isoxml&.at(ns("//bibdata/title[@language='#{@lang}']"\
30
+ "[@type = 'corrigendum']"))&.text
31
+ set(:corrigendumtitle, main)
26
32
  series = isoxml&.at(ns("//bibdata/series[@type='main']/title"))&.text
27
33
  set(:series, series)
28
34
  series1 =
@@ -54,6 +60,10 @@ module IsoDoc
54
60
  oblig = isoxml&.at(ns("//annex/@obligation"))&.text
55
61
  lbl = oblig == "informative" ? @labels["appendix"] : @labels["annex"]
56
62
  dn and set(:annexid, @i18n.l10n("#{lbl} #{dn&.text}"))
63
+ dn = isoxml.at(ns("//bibdata/ext/structuredidentifier/amendment")) and
64
+ set(:amendmentid, @i18n.l10n("#{@labels["amendment"]} #{dn&.text}"))
65
+ dn = isoxml.at(ns("//bibdata/ext/structuredidentifier/corrigendum")) and
66
+ set(:corrigendumid, @i18n.l10n("#{@labels["corrigendum"]} #{dn&.text}"))
57
67
  end
58
68
 
59
69
  def unpublished(status)
@@ -48,6 +48,14 @@ module IsoDoc
48
48
  node.add_child(link)
49
49
  end
50
50
 
51
+ def bibdata_i18n(b)
52
+ super
53
+ dn = b.at(ns("./ext/structuredidentifier/amendment")) and
54
+ dn.children = @i18n.l10n("#{@i18n.get["amendment"]} #{dn&.text}")
55
+ dn = b.at(ns("./ext/structuredidentifier/corrigendum")) and
56
+ dn.children = @i18n.l10n("#{@i18n.get["corrigendum"]} #{dn&.text}")
57
+ end
58
+
51
59
  include Init
52
60
  end
53
61
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.2.4"
3
+ VERSION = "1.2.5"
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.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-26 00:00:00.000000000 Z
11
+ date: 2020-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities