Sha256: e264ed531fafc01c1e23d2dfb9227dafdb35f2790839d5cc041ed193a1c64d00

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 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 = nil, opts = {})
        ::NistBib::NistBibliography.get(code, date, opts)
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nistbib-0.1.9 lib/relaton/processor.rb
nistbib-0.1.8 lib/relaton/processor.rb
nistbib-0.1.7 lib/relaton/processor.rb
nistbib-0.1.6 lib/relaton/processor.rb