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

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

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
# File 'lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/process_facets.rb', line 7

def call
  if source_facets = search_brief_return.locate("JAGROOT/RESULT/FACETLIST/FACET")
    source_facets.each do |source_facet|
      target["facets"]["facet_#{source_facet["NAME"]}"] = target_facet(source_facet)
    end
  end
end