Class: Exlibris::Primo::Record

Inherits:
Object
  • Object
show all
Includes:
Config::Attributes, Namespaces, Pnx::DedupMgr, Pnx::Elements, Pnx::Frbr, Pnx::Holdings, Pnx::Links, Pnx::Openurl, Pnx::Subfields, WriteAttributes, XmlUtil
Defined in:
lib/exlibris/primo/record.rb

Overview

Primo record Includes PNX elements such as holdings, links, openurl, frbr status dedupmgr status.

Instance Method Summary collapse

Methods included from Pnx::Openurl

#openurl

Methods included from Pnx::Links

#fulltexts, #related_links, #tables_of_contents

Methods included from Pnx::Holdings

#holdings

Methods included from Pnx::Frbr

#frbr?, #frbr_id

Methods included from Pnx::Elements

#method_missing, #respond_to?

Methods included from Pnx::DedupMgr

#dedupmgr?, included, #method_missing, #respond_to?

Methods included from XmlUtil

included, #to_hash, #to_json, #to_xml

Methods included from WriteAttributes

#write_attributes

Methods included from Namespaces

included

Methods included from Config::Attributes

#availability_statuses, #base_url, #config, #facet_collections, #facet_labels, #facet_resource_types, #facet_top_level, #institution, #institutions, #libraries, #sources

Constructor Details

#initialize(*args) ⇒ Record

Returns a new instance of Record.



25
26
27
28
29
30
31
32
33
34
# File 'lib/exlibris/primo/record.rb', line 25

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Exlibris::Primo::Pnx::Elements