Class: Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::SetId

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  target.record.id = source.at_xpath(".//control/recordid").text().gsub(/\ATN_/, "").split(":").last
end