Sha256: f77e8ade1bfe59e3668ed604ba482762824e7dbfc6936e99d72d1cb886664757

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require "relaton/processor"

module Relaton
  module NistBib
    class Processor < Relaton::Processor

      def initialize
        @short = :nistbib
        @prefix = "NIST"
        @defaultprefix = %r{^(NIST|NISTGCR|ITL Bulletin|JPCRD|NISTIR|CSRC)[ /]}
        @idtype = "NIST"
      end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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