relaton-ieee 1.12.5 → 1.12.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_ieee/data_parser.rb +13 -0
- data/lib/relaton_ieee/rawbib_id_parser.rb +2 -1
- data/lib/relaton_ieee/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d518d9c4d21f989941f871c62682bdb996e8d060997e1211fb6bca708cfbd32
|
4
|
+
data.tar.gz: 6b160e9ed08862a141fd4068ce70be0a2cf5ea97196013d87c8cf9af0a4ea133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8768c3e725410a80ccf1075e33491e1ff99b6c5051576e1441734d9ef31018ffc9077e3ec01ab0bcfb353efd43018a304aff0967beb2b9839a8271a0fdaaa9b
|
7
|
+
data.tar.gz: b79ca69d3aa30965fef5ce03b910739fa9e4f1816cbfe37b2d66ddb069b4134160f1c73ad2e603a69d214998e5a737819c7cf5949327491275767df25eab6835
|
@@ -51,6 +51,7 @@ module RelatonIeee
|
|
51
51
|
link: parse_link,
|
52
52
|
keyword: parse_keyword,
|
53
53
|
ics: parse_ics,
|
54
|
+
editorialgroup: parse_editorialgroup,
|
54
55
|
}
|
55
56
|
IeeeBibliographicItem.new(**args)
|
56
57
|
end
|
@@ -283,5 +284,17 @@ module RelatonIeee
|
|
283
284
|
RelatonBib::ICS.new code: ics[:codenum], text: ics.text
|
284
285
|
end
|
285
286
|
end
|
287
|
+
|
288
|
+
#
|
289
|
+
# Parse editorialgroup
|
290
|
+
#
|
291
|
+
# @return [RelatonIeee::EditorialGroup, nil] editorialgroup or nil
|
292
|
+
#
|
293
|
+
def parse_editorialgroup
|
294
|
+
committee = doc.xpath(
|
295
|
+
"./publicationinfo/pubsponsoringcommitteeset/pubsponsoringcommittee",
|
296
|
+
).map &:text
|
297
|
+
EditorialGroup.new committee: committee if committee.any?
|
298
|
+
end
|
286
299
|
end
|
287
300
|
end
|
@@ -309,7 +309,8 @@ module RelatonIeee
|
|
309
309
|
PubId.new(publisher: $1, number: $2, stage: $3, year: $5, month: mn($4))
|
310
310
|
|
311
311
|
# publisher, stage, number, part, draft
|
312
|
-
when /^([A-Z\/]+)[.-]([[:alnum:].-]+)[\/_]D([[:alnum:].]+)[\/_](#{STAGES})/o
|
312
|
+
when /^([A-Z\/]+)[.-]([[:alnum:].-]+)[\/_]D([[:alnum:].]+)[\/_](#{STAGES})/o,
|
313
|
+
/^(\w+)[.-]([[:alnum:].]+)[\/\s_]D([\d.]+)_(#{STAGES})/o
|
313
314
|
PubId.new(publisher: "IEEE", number: $1, part: sp($2), draft: dn($3), stage: $4)
|
314
315
|
|
315
316
|
# publisher, stage, number, year
|
data/lib/relaton_ieee/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ieee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.6
|
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-07-
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|