lib/relaton_ietf/rfc_entry.rb in relaton-ietf-1.14.4 vs lib/relaton_ietf/rfc_entry.rb in relaton-ietf-1.14.5
- old
+ new
@@ -39,10 +39,11 @@
keyword: parse_keyword,
abstract: parse_abstract,
relation: parse_relation,
status: parse_status,
series: parse_series,
+ stream: @doc.at("./xmlns:stream")&.text,
editorialgroup: parse_editorialgroup,
)
end
#
@@ -50,11 +51,11 @@
#
# @return [Array<RelatonBib::Series>] series
#
def parse_series
title = RelatonBib::TypedTitleString.new(content: "RFC")
- series_is_also + seires_stream + [RelatonBib::Series.new(title: title, number: docnum)]
+ series_is_also + [RelatonBib::Series.new(title: title, number: docnum)] + seires_stream
end
def series_is_also
@doc.xpath("./xmlns:is-also/xmlns:doc-id").map do |s|
/^(?<name>\D+)(?<num>\d+)/ =~ s.text
@@ -132,10 +133,10 @@
# end
#
# Create link
#
- # @return [Array<RelatonBib::TypedUri>]
+ # @return [Array<RelatonBib::TypedUri>]
#
def parse_link
url = "https://www.rfc-editor.org/info/rfc#{docnum}"
[RelatonBib::TypedUri.new(content: url, type: "src")]
end