Sha256: 673cb02d352b0ed68f0637186ae74124dba8abdc36943b729438fd5d42c95653

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

require "relaton/processor"

module Relaton
  module Iecbib
    class Processor < Relaton::Processor

      def initialize
        @short = :iecbib
        @prefix = "IEC"
        @defaultprefix = %r{^(IEC)[ /]|^IEV($| )}
        @idtype = "IEC"
      end

      def get(code, date, opts)
        ::Iecbib::IecBibliography.get(code, date, opts)
      end

      def from_xml(xml)
        IsoBibItem::XMLParser.from_xml xml
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iecbib-0.2.2 lib/relaton/processor.rb
iecbib-0.2.1 lib/relaton/processor.rb
iecbib-0.2.0 lib/relaton/processor.rb