Class: Krikri::Enrichments::MoveNonDcmiType

Inherits:
Object
  • Object
show all
Includes:
Audumbla::Enrichment
Defined in:
lib/krikri/enrichments/move_non_dcmi_type.rb

Overview

Copies non-DCMI Type values from the input fields to the output fields. If

Instance Method Summary collapse

Instance Method Details

#enrich_value(value) ⇒ Object?

Returns the existing value, if it is NOT a DCMI Type value.

Parameters:

  • value (Object)

    the value to enrich

Returns:

  • (Object, nil)

    the existing value, if it is NOT a DCMI Type value



12
13
14
15
# File 'lib/krikri/enrichments/move_non_dcmi_type.rb', line 12

def enrich_value(value)
  return nil if value.is_a? DPLA::MAP::Controlled::DCMIType
  value
end