class Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchResultTransformation::SetTotalHits

Public Instance Methods

call() click to toggle source
# File lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/set_total_hits.rb, line 7
def call
  if docset = (search_brief_return.locate("JAGROOT/RESULT/DOCSET") || []).first
    target["hits"]["total"] = docset[:TOTALHITS].to_i
  end
end