Class: Skala::PrimoAdapter::Search::ResultTransformation::SetTotalHits

Inherits:
Transformator::Transformation::Step
  • Object
show all
Defined in:
lib/skala/primo_adapter/search/result_transformation/set_total_hits.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
# File 'lib/skala/primo_adapter/search/result_transformation/set_total_hits.rb', line 7

def call
  target.total_hits =
  transformation.search_brief_response.at_xpath("//DOCSET").try do |_docset|
    _docset.attr("TOTALHITS").to_i
  end
end