lib/relaton/bibdata.rb in relaton-cli-0.2.1 vs lib/relaton/bibdata.rb in relaton-cli-0.2.2
- old
+ new
@@ -59,10 +59,10 @@
def self.from_xml(source)
new(Relaton::XmlDocument.parse(source))
end
- def to_xml
+ def to_xml(opts = {})
#datetype = stage&.casecmp("published") == 0 ? "published" : "circulated"
ret = ref ? "<bibitem id= '#{ref}' type='#{doctype}'>\n" : "<bibdata type='#{doctype}'>\n"
ret += "<fetched>#{Date.today.to_s}</fetched>\n"
ret += "<title>#{title}</title>\n"