Class: Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::SetOpenurl

Inherits:
Transformator::Transformation::Step
  • Object
show all
Defined in:
lib/skala/primo_adapter/search/result_transformation/doc_transformation/set_openurl.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_openurl.rb', line 7

def call
  openurl = transformation.read_source_values(".//LINKS/openurl").first
  if openurl.present?
    openurl = remove_language_param(openurl)
    target.record.openurl = openurl
  end
end