class Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchRequestTransformation

Attributes

inner_search_request[RW]
institution[RW]
languages[RW]
locations[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation.rb, line 33
def initialize(options = {})
  @languages = options[:languages]
  @locations = options[:locations]
  @institution = options[:institution]
end

Public Instance Methods

index_field_mapping(index_field) click to toggle source
# File lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation.rb, line 39
def index_field_mapping(index_field)
  case index_field
  when "_all"       then "any"
  when "created"    then "cdate"
  when "identifier" then "any"
  when "language"   then "lang"
  when "subject"    then "sub"
  else index_field
  end
end
sort_field_mapping(sort_field) click to toggle source
# File lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation.rb, line 50
def sort_field_mapping(sort_field)
  case sort_field
  when "_score"  then "relevance"
  when "created" then "scdate"
  when "creator" then "screator"
  when "title"   then "stitle"
  else sort_field
  end
end