Class: CDMDEXER::KeywordFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/cdmdexer/formatters.rb

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



47
48
49
50
51
52
53
# File 'lib/cdmdexer/formatters.rb', line 47

def self.format(value)
  vals = []
  vals << value['genera'].split(';') if value['genera'].respond_to?(:split)
  vals << value['specif'].split(';') if value['specif'].respond_to?(:split)
  vals << value['subjec'].split(';') if value['subjec'].respond_to?(:split)
  vals.flatten.uniq.sort
end