Sha256: 6a166e9620992ec954d9b65d801742e8186d00b825274f8879172d4f81d26b89

Contents?: true

Size: 726 Bytes

Versions: 24

Compression:

Stored size: 726 Bytes

Contents

# encoding: utf-8

require 'libis/tools/xml_document'
require_relative 'client'

module Libis
  module Services
    module Rosetta

      class IeHandler < Libis::Services::Rosetta::Client

        def initialize(base_url = 'http://depot.lias.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

24 entries across 24 versions & 1 rubygems

Version Path
libis-services-1.0.5 lib/libis/services/rosetta/ie_handler.rb
libis-services-1.0.2 lib/libis/services/rosetta/ie_handler.rb
libis-services-1.0.1 lib/libis/services/rosetta/ie_handler.rb
libis-services-1.0.0 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.2.1 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.2.0 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.18 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.17 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.16 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.15 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.14 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.13 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.12 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.11 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.10 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.9 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.7 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.5 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.3 lib/libis/services/rosetta/ie_handler.rb
libis-services-0.1.2 lib/libis/services/rosetta/ie_handler.rb