lib/relaton_ietf/rfc_entry.rb in relaton-ietf-1.11.4 vs lib/relaton_ietf/rfc_entry.rb in relaton-ietf-1.11.5
- old
+ new
@@ -241,10 +241,11 @@
#
def parse_relation
types = { "updates" => "updates", "obsoleted-by" => "obsoletedBy"}
@doc.xpath("./xmlns:updates/xmlns:doc-id|./xmlns:obsoleted-by/xmlns:doc-id").map do |r|
fref = RelatonBib::FormattedRef.new(content: r.text)
- bib = IetfBibliographicItem.new(formattedref: fref)
+ docid = RelatonBib::DocumentIdentifier.new type: "IETF", id: r.text, primary: true
+ bib = IetfBibliographicItem.new(formattedref: fref, docid: [docid])
RelatonBib::DocumentRelation.new(type: types[r.parent.name], bibitem: bib)
end
end
#