Sha256: 0783524e4c5c0113f61fc7672cf1448d15286b940ab6ded8bb31d4fa6e5daa32
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
module Exlibris module Aleph class Holding require 'marc' class Metadata < Exlibris::Aleph::Metadata attr_reader :marc_xml def initialize(marc_xml) marc_xml.gsub!('<holding>', '<record>') marc_xml.gsub!('</holding>', '</record>') @marc_xml = marc_xml.strip end def sub_location @sub_location ||= location['b'] unless location.nil? end def shelving_location @shelving_location ||= location['c'] unless location.nil? end def location @location ||= marc_record['852'] unless marc_record.nil? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
exlibris-aleph-2.0.4 | lib/exlibris/aleph/holding/metadata.rb |
exlibris-aleph-2.0.3 | lib/exlibris/aleph/holding/metadata.rb |
exlibris-aleph-2.0.0 | lib/exlibris/aleph/holding/metadata.rb |