lib/libis/services/alma/sru_service.rb in libis-services-0.2.0 vs lib/libis/services/alma/sru_service.rb in libis-services-0.2.1
- old
+ new
@@ -23,10 +23,10 @@
unless result['//diag:diagnostic'].blank?
raise Libis::Services::ServiceError, "#{result['/searchRetrieveResponse/diag:diagnostic/diag:message']}"
end
- return result.xpath('//record').map do |record|
+ return result.document.xpath('//marc:record', 'marc' => 'http://www.loc.gov/MARC21/slim').map do |record|
Libis::Tools::XmlDocument.parse(record.to_s)
end
end
raise Libis::Services::ServiceError, "#{result[:error_type]} - #{result[:error_name]}" if result[:error_type]