Sha256: 97e2e4d7abeef6120e7b36a2297f4245f22a4889d99359f1436719d730beb9e6

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

require "transformator/transformation/step"
require_relative "../doc_transformation"

class Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::
  SetSource < Transformator::Transformation::Step

  def call
    target.record.source = transformation.read_source_values(".//display/source").first
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skala-1.1.0 lib/skala/primo_adapter/search/result_transformation/doc_transformation/set_source.rb