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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 295351404fc4f7272682fa1dff9dbfdaa43c9b0846e52f4891d5340136b92dda
4
- data.tar.gz: b3d70bf86c583d09d000852c0669c74fb72c3b892553ab5d127f123ec37d8d5c
3
+ metadata.gz: aff076d0381b1923da4c5d4283d074ec079d2036c137d88000b18abf02104591
4
+ data.tar.gz: a7e3c169397610b0535d76dc6b9f960f5b3364058a40a6b3cacd19390fd66cde
5
5
  SHA512:
6
- metadata.gz: ec9f90d5dcd6c4817222fd655de5fa6f05af253ef648cd25611458d8759dfb9a915fb84eb98d91bb43bbdde96944dfc23cd5221cf8af21940eb8c37527ad0f8c
7
- data.tar.gz: d0f32bb45d68aa4410859c74468abf22e2604da838fc213beae327911e792c16b996f7f32ee7050b51a4655981e0bdde5fc80d317976d8121a1a59176cc518ca
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
@@ -1,3 +1,3 @@
1
1
  module RelatonIeee
2
- VERSION = "1.19.2".freeze
2
+ VERSION = "1.19.3".freeze
3
3
  end
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.2
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