Class: Relaton::Ietf::BibXMLParser::FromRfc

Inherits:
FromRfcxml
  • Object
show all
Defined in:
lib/relaton/ietf/bibxml_parser.rb

Overview

rubocop:disable Metrics/ClassLength

Instance Method Summary collapse

Instance Method Details

#transformObject

rubocop:disable Metrics/MethodLength



151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/relaton/ietf/bibxml_parser.rb', line 151

def transform # rubocop:disable Metrics/MethodLength
  namespace::ItemData.new(
    docnumber: doc_name&.sub(/^\w+\./, ""),
    type: "standard",
    docidentifier: docidentifiers,
    status: status,
    language: ["en"],
    script: ["Latn"],
    source: source,
    title: title,
    abstract: abstract,
    contributor: contributor + workgroup_contributors,
    date: date,
    series: series,
    keyword: keyword,
    ext: ext,
  )
end