metanorma-ieee 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7f574040d82c858fbb3b98fc96b1e02878cd228cfeaca8f9f911f39e6109896
4
- data.tar.gz: 7246caedc4a16824404480f881c24b6197079874bc676e872bd86f0bae639a1d
3
+ metadata.gz: 90d330287ff84b473fc19ddd7e820b60973e520789c53e7100c9a50650310515
4
+ data.tar.gz: '0181ffc0475563ff448ba6cd557073932941cb4b7b2bfe0359673b582a63bd58'
5
5
  SHA512:
6
- metadata.gz: e0b6d672c80a2f0d3847e572e26c738ce506e4918eeccbe521d99e1a65d4fe4095296000eb9d5e4ac286c4618cf13d77cdf9f103b92987fbd05152c151125ebb
7
- data.tar.gz: 0f851f69bb307f2ba91825b31e6dd40113d25d1f07263c895ac4569547630d1f40732661e898a15d51f7c3503e285381e8d51ec0b55f4411ff7706426a1b1d68
6
+ metadata.gz: 9db9b5c3460c575231a344b5dd657f2440164c6d03f424073ded04f1382e7a3193ee447d55e7146f56cdcc4c3c5c456bd9f09c854a59be7f7d12b0bbf3778576
7
+ data.tar.gz: 1870478859699a333f013f25e7abf3286ddd837a9fb3f3b8bedf4b85c1be7cc170b3e44590778f20bcd1c2ee3358555d9ceee2bee5dd1753b557ca001bca3bca
@@ -72,12 +72,18 @@ module IsoDoc
72
72
  end
73
73
  unless bibliography_bibitem_number_skip(bibitem)
74
74
  idx += 1
75
- bibitem.at(ns(".//docidentifier")).previous =
75
+ docidentifier_insert_pt(bibitem).next =
76
76
  "<docidentifier type='metanorma-ordinal'>[B#{idx}]</docidentifier>"
77
77
  end
78
78
  idx
79
79
  end
80
80
 
81
+ def docidentifier_insert_pt(bibitem)
82
+ bibitem.at(ns(".//docidentifier"))&.previous ||
83
+ bibitem.at(ns(".//title")) ||
84
+ bibitem.at(ns(".//formattedref"))
85
+ end
86
+
81
87
  def expand_citeas(text)
82
88
  std_docid_semantic(super)
83
89
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IEEE
3
- VERSION = "1.2.2".freeze
3
+ VERSION = "1.2.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-19 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc