Module: ScientificNameClean::AuthorSeparator0
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(a, b) ⇒ Object
5568 5569 5570 5571 5572 5573 5574 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5568 def apply(a,b) sep = text_value.strip sep = " &" if ["&", "&", "and", "et", ",&", ", &", ",and", ", and"].include? sep sep = " apud" if sep == "apud" a.value + sep + " " + b.value end |
#details(a, b) ⇒ Object
5580 5581 5582 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5580 def details(a,b) {:author => a.details[:author] + b.details[:author]} end |
#pos(a, b) ⇒ Object
5576 5577 5578 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5576 def pos(a,b) a.pos.merge(b.pos) end |