lib/rfcbib/scrapper.rb in rfcbib-0.2.4 vs lib/rfcbib/scrapper.rb in rfcbib-0.3.0

- old
+ new

@@ -172,13 +172,10 @@ def docids(id) ret = [] ret << IsoBibItem::DocumentIdentifier.new(type: "IETF", id: id) ret = ret + @reference.xpath('//seriesinfo').map do |si| next unless si[:name] == 'DOI' - IsoBibItem::DocumentIdentifier.new( - id: si[:value], - type: si[:name] - ) + IsoBibItem::DocumentIdentifier.new(id: si[:value], type: si[:name]) end.compact end # # Extract series form reference