Class: Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::SetIsPartOf

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  is_part_of = transformation.read_source_values(".//display/ispartof").map do |superorder|
    { label: superorder }
  end

  target.record.is_part_of = is_part_of
end