lib/relaton/processor.rb in isobib-0.3.1 vs lib/relaton/processor.rb in isobib-0.4.0
- old
+ new
@@ -5,15 +5,19 @@
class Processor < Relaton::Processor
def initialize
@short = :isobib
@prefix = "ISO"
- @defaultprefix = %r{^(ISO)[ /]|^IEV($| )|^IEC 60050}
+ @defaultprefix = %r{^(ISO)[ /]}
@idtype = "ISO"
end
def get(code, date, opts)
::Isobib::IsoBibliography.get(code, date, opts)
+ end
+
+ def from_xml(xml)
+ IsoBibItem::XMLParser.from_xml xml
end
end
end
end