lib/libis/services/rosetta/ie_handler.rb in libis-services-1.0.10 vs lib/libis/services/rosetta/ie_handler.rb in libis-services-1.0.11
- old
+ new
@@ -8,21 +8,21 @@
module Services
module Rosetta
class IeHandler < Libis::Services::Rosetta::Client
- def initialize(base_url = 'http://depot.lias.be', options = {})
+ def initialize(base_url = 'https://repository.teneo.libis.be', options = {})
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[:get_ie])
+ Libis::Tools::MetsFile.parse(result)
end
def get_metadata(ie)
result = call_raw :get_md, pds_handle: @pds_handle, 'PID' => ie
- Libis::Tools::MetsFile.parse(result[:get_md])
+ Libis::Tools::MetsFile.parse(result)
end
end
end
end
\ No newline at end of file