Sha256: 66e27433b58af21ef52f0743abe70eca01704a3b704e371d72a73675edbd392b
Contents?: true
Size: 434 Bytes
Versions: 4
Compression:
Stored size: 434 Bytes
Contents
module RelatonCalconnect class XMLParser < RelatonIsoBib::XMLParser class << self def from_xml(xml) doc = Nokogiri::XML xml doc.remove_namespaces! cctitem = doc.at("/bibitem|/bibdata") if cctitem CcBibliographicItem.new(item_data(cctitem)) else warn "[relaton-calconnect] can't find bibitem or bibdata element in the XML" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems