Sha256: c7e5e72acf486be9877b1ac4b3291ba71199a262b2d9319b47db193930ae2924

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

require "relaton/processor"

module Relaton
  module Isobib
    class Processor < Relaton::Processor

      def initialize
        @short = :isobib
        @prefix = "ISO"
        @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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
isobib-0.4.4 lib/relaton/processor.rb
isobib-0.4.3 lib/relaton/processor.rb
isobib-0.4.2 lib/relaton/processor.rb
isobib-0.4.1 lib/relaton/processor.rb
isobib-0.4.0 lib/relaton/processor.rb