lib/libis/services/rosetta/ie_handler.rb in libis-services-1.0.5 vs lib/libis/services/rosetta/ie_handler.rb in libis-services-1.0.6
- old
+ new
@@ -1,8 +1,9 @@
# encoding: utf-8
require 'libis/tools/xml_document'
+require 'libis/tools/mets_file'
require_relative 'client'
module Libis
module Services
module Rosetta
@@ -13,15 +14,15 @@
super 'repository', 'IEWebServices', {url: base_url}.merge(options)
end
def get_mets(ie, flags = 0)
result = call_raw :get_ie, pds_handle: @pds_handle, ie_pid: ie, flags: flags
- Libis::Tools::MetsFile.parse(result)
+ Libis::Tools::MetsFile.parse(result[:get_ie])
end
def get_metadata(ie)
result = call_raw :get_md, pds_handle: @pds_handle, 'PID' => ie
- Libis::Tools::MetsFile.parse(result)
+ Libis::Tools::MetsFile.parse(result[:get_md])
end
end
end
end
\ No newline at end of file