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

Inherits:
Transformation::Step
  • Object
show all
Defined in:
lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/set_total_hits.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
# 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