Sha256: a930894c27af5f0093974c679c4ecff6aaf21412ee68014d59fa4b14726e91f1

Contents?: true

Size: 1.25 KB

Versions: 25

Compression:

Stored size: 1.25 KB

Contents

module Exlibris
  module Primo
    # 
    # Primo namespaces used in Primo XML
    # 
    module Namespaces
      def self.included(klass)
        klass.class_eval do
          extend ClassAttributes
        end
      end

      module ClassAttributes
        def response_namespaces
          @response_namespaces = {
            "search" => "http://www.exlibrisgroup.com/xsd/jaguar/search",
            "eshelf" => "http://www.exlibris.com/primo/xsd/primoeshelffolder",
            "pnx" => "http://www.exlibrisgroup.com/xsd/primo/primo_nm_bib",
            "tags_reviews" => "http://com/exlibris/primo/xsd/tagsAndReview/config"
          }
        end

        def request_namespaces
          @request_namespaces = {
            "xmlns" => "http://www.exlibris.com/primo/xsd/wsRequest",
            "xmlns:uic" => "http://www.exlibris.com/primo/xsd/primoview/uicomponents"
          }
        end
      end

      # Returns response namespaces
      def response_namespaces
        @response_namespaces ||= self.class.response_namespaces
      end
      protected :response_namespaces

      # Returns request namespaces
      def request_namespaces
        @request_namespaces ||= self.class.request_namespaces
      end
      protected :request_namespaces
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 lib/exlibris/primo/namespaces.rb
exlibris-primo-2.1.0 lib/exlibris/primo/namespaces.rb
exlibris-primo-2.0.0 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.9 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.8 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.7 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.6 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.5 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.4 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.3 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.2 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.1 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.1.0 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.0.11 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.0.10 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.0.9 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.0.8 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.0.7 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.0.6 lib/exlibris/primo/namespaces.rb
exlibris-primo-1.0.5 lib/exlibris/primo/namespaces.rb