module Exlibris module Primo module WebService module Response module Records def records @records ||= xml.xpath("//pnx:record", response_namespaces).collect { |record| Exlibris::Primo::Record.new(:raw_xml => record.to_xml) } # @records ||= Hash[xml.xpath("//pnx:record", response_namespaces).collect { |record| # [ record.xpath("//pnx:record_id", response_namespaces).inner_text, # Exlibris::Primo::Record.new(:raw_xml => record.to_xml) ]}] end end end end end end