Class: Exlibris::Primo::Record
- Inherits:
-
Object
- Object
- Exlibris::Primo::Record
- 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
-
#initialize(*args) ⇒ Record
constructor
A new instance of Record.
Methods included from Pnx::Openurl
Methods included from Pnx::Links
#fulltexts, #related_links, #tables_of_contents
Methods included from Pnx::Holdings
Methods included from Pnx::Frbr
Methods included from Pnx::Elements
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
Methods included from Namespaces
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