Sha256: dfbbd12d98b3b36818d47516d7146e718ddd3a56238e64aebf7550e7689daba7

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

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

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

  def call
    target.record.title = transformation.read_source_values(".//display/title").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_title.rb