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