relaton-ieee 1.19.2 → 1.19.3
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/ieee_bibliographic_item.rb +14 -0
- data/lib/relaton_ieee/renderer/bibxml.rb +17 -0
- data/lib/relaton_ieee/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aff076d0381b1923da4c5d4283d074ec079d2036c137d88000b18abf02104591
|
4
|
+
data.tar.gz: a7e3c169397610b0535d76dc6b9f960f5b3364058a40a6b3cacd19390fd66cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c00b424479fcc970c2c3f7bf69cbfafc12497e4aead258bb33c269ccd0562e2a2d390e4450f15b48fa00469b38212ce6476fa02063beff3b2393adf12ee2cb82
|
7
|
+
data.tar.gz: 18eb28f45eb03c3a330a862995c061c6b3463307818cc6e643ebd23b146f511ba12548629fea161a4818fc82619e178891719af9b648d31b9bff59013f001333
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative "renderer/bibxml"
|
2
|
+
|
1
3
|
module RelatonIeee
|
2
4
|
class IeeeBibliographicItem < RelatonBib::BibliographicItem
|
3
5
|
SUBTYPES = %w[amendment corrigendum erratum].freeze
|
@@ -102,5 +104,17 @@ module RelatonIeee
|
|
102
104
|
out += "#{prefix}.trialuse:: #{trialuse}\n" unless trialuse.nil?
|
103
105
|
out
|
104
106
|
end
|
107
|
+
|
108
|
+
#
|
109
|
+
# Render BibXML (RFC)
|
110
|
+
#
|
111
|
+
# @param [Nokogiri::XML::Builder, nil] builder
|
112
|
+
# @param [Boolean] include_keywords (false)
|
113
|
+
#
|
114
|
+
# @return [String, Nokogiri::XML::Builder::NodeBuilder] XML
|
115
|
+
#
|
116
|
+
def to_bibxml(builder = nil, include_keywords: false)
|
117
|
+
Renderer::BibXML.new(self).render builder: builder, include_keywords: include_keywords
|
118
|
+
end
|
105
119
|
end
|
106
120
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module RelatonIeee
|
2
|
+
module Renderer
|
3
|
+
class BibXML < RelatonBib::Renderer::BibXML
|
4
|
+
|
5
|
+
#
|
6
|
+
# Render workgroup
|
7
|
+
#
|
8
|
+
# @param [Nokogiri::XML::Builder] builder xml builder
|
9
|
+
#
|
10
|
+
def render_workgroup(builder)
|
11
|
+
@bib.editorialgroup&.committee&.each do |committee|
|
12
|
+
builder.workgroup committee
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/relaton_ieee/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ieee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/relaton_ieee/processor.rb
|
134
134
|
- lib/relaton_ieee/pub_id.rb
|
135
135
|
- lib/relaton_ieee/rawbib_id_parser.rb
|
136
|
+
- lib/relaton_ieee/renderer/bibxml.rb
|
136
137
|
- lib/relaton_ieee/util.rb
|
137
138
|
- lib/relaton_ieee/version.rb
|
138
139
|
- lib/relaton_ieee/xml_parser.rb
|