Sha256: 4dcd86f25f6735dc073fc9475377817013ce19013f5347c4af03ee10785a99b4

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require "relaton/processor"

module Relaton
  module NistBib
    class Processor < Relaton::Processor

      def initialize
        @short = :nistbib
        @prefix = "NIST"
        @defaultprefix = %r{^(NIST)[ /]}
        @idtype = "NIST"
      end

      def get(code, date, opts)
        ::Nistbib::NistBibliography.get(code, date, opts)
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nistbib-0.1.1 lib/relaton/processor.rb