Sha256: 5dce2da75f8cbc04c92bf1260c4a1901a737ff96e48c8934bdeb19bc40ee56bd

Contents?: true

Size: 699 Bytes

Versions: 6

Compression:

Stored size: 699 Bytes

Contents

# coding: utf-8
require 'libis-tools'

require 'libis/services/rest_client'

module Libis
  module Services
    module Primo

      class Limo
        include ::Libis::Services::RestClient

        def initialize(url = 'http://limo.libis.be')
          configure(url)
        end

        def get_marc(alma_id)
          get 'primo_library/libweb/jqprimo/helpers/record_helper.jsp', id: "#{alma_id}.xml"
        end

        def get_pnx(alma_id)
          get 'primo_library/libweb/jqprimo/helpers/record_helper.jsp', id: "#{alma_id}.pnx"
        end

        protected

        def result_parser(response)
          Libis::Tools::XmlDocument.parse(response)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
libis-services-0.1.3 lib/libis/services/primo/limo.rb
libis-services-0.1.2 lib/libis/services/primo/limo.rb
libis-services-0.1.1 lib/libis/services/primo/limo.rb
libis-services-0.1.0-java lib/libis/services/primo/limo.rb
libis-services-0.0.3 lib/libis/services/primo/limo.rb
libis-services-0.0.2 lib/libis/services/primo/limo.rb