metanorma-itu 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,7 +74,7 @@ module IsoDoc
74
74
  def person_attributes(authors)
75
75
  %i(affiliations addresses emails faxes phones).each { |i| set(i, []) }
76
76
  authors.each do |a|
77
- append(:affiliations,
77
+ append(:affiliations,
78
78
  a&.at(ns("./affiliation/organization/name"))&.text)
79
79
  append(:addresses, a&.at(ns("./affiliation/organization/address/"\
80
80
  "formattedAddress"))&.text)
@@ -131,7 +131,7 @@ module IsoDoc
131
131
  def doctype(isoxml, _out)
132
132
  d = isoxml&.at(ns("//bibdata/ext/doctype"))&.text
133
133
  set(:doctype_original, d)
134
- set(:doctype_abbreviated, @labels["doctype_abbrev"][d])
134
+ set(:doctype_abbreviated, @labels.dig("doctype_abbrev", d))
135
135
  if d == "recommendation-annex"
136
136
  set(:doctype, "Recommendation")
137
137
  set(:doctype_display, "Recommendation")
@@ -197,7 +197,7 @@ module IsoDoc
197
197
  set(:meeting_date, resolution ? ddMMMMYYYY(o, nil) : ddMMMYYYY(o))
198
198
  elsif f = isoxml&.at(ns("//bibdata/ext/meeting-date/from"))&.text
199
199
  t = isoxml&.at(ns("//bibdata/ext/meeting-date/to"))&.text
200
- set(:meeting_date, resolution ? ddMMMMYYYY(f, t) : "#{ddMMMYYYY(f)}/#{ddMMMYYYY(t)}")
200
+ set(:meeting_date, resolution ? ddMMMMYYYY(f, t) : "#{ddMMMYYYY(f)}/#{ddMMMYYYY(t)}")
201
201
  end
202
202
  end
203
203
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.3.1".freeze
3
+ VERSION = "1.3.2".freeze
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.3.1
4
+ version: 1.3.2
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-04-26 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -318,7 +318,12 @@ files:
318
318
  - lib/isodoc/itu/html/wordstyle.css
319
319
  - lib/isodoc/itu/html/wordstyle.scss
320
320
  - lib/isodoc/itu/html_convert.rb
321
+ - lib/isodoc/itu/i18n-ar.yaml
322
+ - lib/isodoc/itu/i18n-de.yaml
321
323
  - lib/isodoc/itu/i18n-en.yaml
324
+ - lib/isodoc/itu/i18n-es.yaml
325
+ - lib/isodoc/itu/i18n-fr.yaml
326
+ - lib/isodoc/itu/i18n-ru.yaml
322
327
  - lib/isodoc/itu/i18n-zh-Hans.yaml
323
328
  - lib/isodoc/itu/i18n.rb
324
329
  - lib/isodoc/itu/init.rb