Sha256: 8d7e74d5a3164f473e36a03520bf083552a0a45b9578a55c6dd8cb2ab731187f
Contents?: true
Size: 771 Bytes
Versions: 4
Compression:
Stored size: 771 Bytes
Contents
# encoding: utf-8 require 'libis/tools/xml_document' require 'libis/tools/mets_file' require_relative 'client' module Libis module Services module Rosetta class IeHandler < Libis::Services::Rosetta::Client 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) end def get_metadata(ie) result = call_raw :get_md, pds_handle: @pds_handle, 'PID' => ie Libis::Tools::MetsFile.parse(result) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems