class Exlibris::Aleph::Holding::Metadata
Attributes
marc_xml[R]
Public Class Methods
new(marc_xml)
click to toggle source
# File lib/exlibris/aleph/holding/metadata.rb, line 8 def initialize(marc_xml) marc_xml.gsub!('<holding>', '<record>') marc_xml.gsub!('</holding>', '</record>') @marc_xml = marc_xml.strip end
Public Instance Methods
location()
click to toggle source
# File lib/exlibris/aleph/holding/metadata.rb, line 22 def location @location ||= marc_record['852'] unless marc_record.nil? end
shelving_location()
click to toggle source
# File lib/exlibris/aleph/holding/metadata.rb, line 18 def shelving_location @shelving_location ||= location['c'] unless location.nil? end
sub_location()
click to toggle source
# File lib/exlibris/aleph/holding/metadata.rb, line 14 def sub_location @sub_location ||= location['b'] unless location.nil? end