lib/relaton/cli/relaton_file.rb in relaton-cli-0.2.1 vs lib/relaton/cli/relaton_file.rb in relaton-cli-0.2.2
- old
+ new
@@ -114,11 +114,12 @@
if (bib = xml.at("//bibdata"))
bib = nokogiri_document(bib.to_xml)
elsif (rfc = xml.at("//rfc"))
require "relaton_ietf/scrapper"
- ietf = RelatonIetf::Scrapper.bib_item rfc, "rfc"
+ #ietf = RelatonIetf::Scrapper.bib_item rfc, "rfc"
+ ietf = RelatonIetf::Scrapper.fetch_rfc rfc
bib = nokogiri_document ietf.to_xml(bibdata: true)
else
next
end
@@ -137,10 +138,11 @@
xml_files.flatten.map do |xml|
doc = nokogiri_document(xml[:content])
if (rfc = doc.at("//rfc"))
require "relaton_ietf/scrapper"
- ietf = RelatonIetf::Scrapper.bib_item rfc, "rfc"
+ #ietf = RelatonIetf::Scrapper.bib_item rfc, "rfc"
+ ietf = RelatonIetf::Scrapper.fetch_rfc rfc
doc = nokogiri_document ietf.to_xml(bibdata: true)
end
bibdata_instance(doc, xml[:file]) if doc.root.name == "bibdata"
end.compact
end