Module: ScientificNameClean::AuthorSeparator0

Defined in:
lib/biodiversity/parser/scientific_name_clean.rb

Instance Method Summary collapse

Instance Method Details

#apply(a, b) ⇒ Object



3638
3639
3640
3641
3642
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3638

def apply(a,b)
  sep = text_value.strip
  sep = " et" if ["&","and","et"].include? sep
  a.value + sep + " " + b.value
end

#details(a, b) ⇒ Object



3648
3649
3650
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3648

def details(a,b)
  {:author => a.details[:author] + b.details[:author]}
end

#pos(a, b) ⇒ Object



3644
3645
3646
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3644

def pos(a,b)
  a.pos.merge(b.pos)
end