Class: Exlibris::Primo::WebService::Request::Search

Inherits:
Base
  • Object
show all
Includes:
DisplayFields, Languages, Locations, QueryTerms, SearchElements, SortBys
Defined in:
lib/exlibris/primo/web_service/request/search.rb

Overview

Search Primo

Direct Known Subclasses

FullView

Constant Summary

Constants inherited from Base

Base::DEFAULT_WRAPPER

Instance Attribute Summary

Attributes included from QueryTerms

#boolean_operator

Attributes inherited from Base

#base_url, #institution

Instance Method Summary collapse

Methods included from SortBys

#add_sort_by, #sort_bys

Methods included from SearchElements

included, #method_missing, #respond_to?

Methods included from QueryTerms

#add_query_term, #query_terms

Methods included from Locations

#add_location, #locations

Methods included from Languages

#add_language, #languages

Methods included from DisplayFields

#add_display_field, #display_fields

Methods inherited from Base

#initialize

Methods included from XmlUtil

included, #to_hash, #to_json

Methods included from Exlibris::Primo::WriteAttributes

#initialize, #write_attributes

Methods included from SoapAction

included

Methods included from Namespaces

included

Methods included from Config::Attributes

#availability_statuses, #base_url, #config, #facet_collections, #facet_labels, #facet_resource_types, #facet_top_level, #institution, #institutions, #libraries, #sources

Methods included from Call

#call

Methods included from BaseElements

included, #method_missing, #respond_to?

Methods included from Abstract

included, #initialize

Constructor Details

This class inherits a constructor from Exlibris::Primo::WebService::Request::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Exlibris::Primo::WebService::Request::SearchElements

Instance Method Details

#to_xmlObject



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/exlibris/primo/web_service/request/search.rb', line 24

def to_xml
  super { |xml|
    xml.PrimoSearchRequest("xmlns" => "http://www.exlibris.com/primo/xsd/search/request") {
      query_terms_xml.call xml
      search_elements_xml.call xml
      languages_xml.call xml
      sort_bys_xml.call xml
      display_fields_xml.call xml
      locations_xml.call xml
    }
  }
end