metanorma-bipm 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,9 +17,9 @@ module IsoDoc
17
17
  super
18
18
  end
19
19
 
20
- def eref_localities1(target, type, from, to, delim, n, lang = "en")
21
- @jcgm and
22
- return @iso.eref_localities1(target, type, from, to, delim, n, lang)
20
+ def eref_localities1(target, type, from, upto, node, lang = "en")
21
+ @jcgm and return @iso.eref_localities1(target, type, from, upto,
22
+ node, lang)
23
23
  super
24
24
  end
25
25
 
@@ -142,7 +142,7 @@ module IsoDoc
142
142
  ret = list_people(
143
143
  xml, "//bibdata/contributor[xmlns:role/@type = 'author']/person"
144
144
  )
145
- @i18n.multiple_and(ret, @i18n.get["and"])
145
+ @i18n.boolean_conj(ret, "and")
146
146
  end
147
147
 
148
148
  COCHAIR = "xmlns:role[contains(text(),'co-chair')]".freeze
@@ -154,7 +154,7 @@ module IsoDoc
154
154
  ret.empty? and return ""
155
155
  role = xml&.at(ns("//bibdata/contributor[#{COCHAIR}]/role"))&.text
156
156
  label = ret.size > 1 && role ? "#{role}s" : role
157
- "#{label}: #{@i18n.multiple_and(ret, @i18n.get['and'])}"
157
+ "#{label}: #{@i18n.boolean_conj(ret, 'and')}"
158
158
  end
159
159
 
160
160
  def list_chairs(xml)
@@ -162,7 +162,7 @@ module IsoDoc
162
162
  ret.empty? and return ""
163
163
  role = xml&.at(ns("//bibdata/contributor#{CHAIR}/role"))&.text
164
164
  label = ret.size > 1 && role ? "#{role}s" : role
165
- "#{label}: #{@i18n.multiple_and(ret, @i18n.get['and'])}"
165
+ "#{label}: #{@i18n.boolean_conj(ret, 'and')}"
166
166
  end
167
167
 
168
168
  def list_people(xml, xpath)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "2.0.4".freeze
3
+ VERSION = "2.0.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.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: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic