Sha256: 97294b1ddfea959ad47dac3b4e4c49482d8b141f4bae6a3b8bad52a1f05206ae
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
require "ox" require "transformator/transformation/step" require_relative "../request_transformation" class Skala::PrimoAdapter::Search::RequestTransformation:: SetupInnerSearchRequest < Transformator::Transformation::Step # # setup inner search request that will be wrapped in a cdata element at the end # def call # we setup this skeleton instead of dynamic element creation because order matters with primo transformation.inner_search_request = Ox.parse( <<-xml <searchRequest xmlns="http://www.exlibris.com/primo/xsd/wsRequest" xmlns:uic="http://www.exlibris.com/primo/xsd/primoview/uicomponents"> <PrimoSearchRequest xmlns="http://www.exlibris.com/primo/xsd/search/request"> <QueryTerms> <BoolOpeator>AND</BoolOpeator> </QueryTerms> <StartIndex></StartIndex> <BulkSize></BulkSize> <DidUMeanEnabled>false</DidUMeanEnabled> <HighlightingEnabled>false</HighlightingEnabled> <Languages></Languages> <Locations></Locations> </PrimoSearchRequest> <onCampus></onCampus> <institution></institution> </searchRequest> xml ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skala-1.1.0 | lib/skala/primo_adapter/search/request_transformation/setup_inner_search_request.rb |