Sha256: a85d7a6beaf11e19455896f6740e0b65a36223517cb79393d516fb741ce2d09c

Contents?: true

Size: 1.04 KB

Versions: 16

Compression:

Stored size: 1.04 KB

Contents

module Exlibris
  module Primo
    #
    # Primo record
    # Includes PNX elements such as
    # holdings, links, openurl, frbr status
    # dedupmgr status.
    #
    class Record
      include Config::Attributes
      include Namespaces
      include WriteAttributes
      include XmlUtil
      include Exlibris::Primo::Pnx::DedupMgr
      include Exlibris::Primo::Pnx::Elements
      include Exlibris::Primo::Pnx::Frbr
      include Exlibris::Primo::Pnx::Holdings
      include Exlibris::Primo::Pnx::Links
      include Exlibris::Primo::Pnx::Openurl
      include Exlibris::Primo::Pnx::Subfields

      add_duplicated_control_attributes :sourcerecordids, :sourceids,
          :originalsourceids, :sourceformats, :sourcesystems, :ilsapiids

      def initialize *args
        raw_xml = args.last.delete(:raw_xml)
        namespaces = args.last.delete(:namespaces)
        if namespaces.nil?
          @raw_xml = raw_xml
        else
          @raw_xml = remove_namespaces_from_raw_xml(raw_xml, namespaces)
        end
        super
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 lib/exlibris/primo/record.rb
exlibris-primo-2.1.0 lib/exlibris/primo/record.rb
exlibris-primo-2.0.0 lib/exlibris/primo/record.rb
exlibris-primo-1.1.9 lib/exlibris/primo/record.rb
exlibris-primo-1.1.8 lib/exlibris/primo/record.rb
exlibris-primo-1.1.7 lib/exlibris/primo/record.rb
exlibris-primo-1.1.6 lib/exlibris/primo/record.rb
exlibris-primo-1.1.5 lib/exlibris/primo/record.rb
exlibris-primo-1.1.4 lib/exlibris/primo/record.rb
exlibris-primo-1.1.3 lib/exlibris/primo/record.rb
exlibris-primo-1.1.2 lib/exlibris/primo/record.rb
exlibris-primo-1.1.1 lib/exlibris/primo/record.rb
exlibris-primo-1.1.0 lib/exlibris/primo/record.rb
exlibris-primo-1.0.11 lib/exlibris/primo/record.rb
exlibris-primo-1.0.10 lib/exlibris/primo/record.rb
exlibris-primo-1.0.9 lib/exlibris/primo/record.rb