Class: Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::SetYearOfPublication

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

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
# File 'lib/skala/primo_adapter/search/result_transformation/doc_transformation/set_year_of_publication.rb', line 7

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