Module: ScientificNameClean::SimpleAuthorship3

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4760
4761
4762
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4760

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = "basionymAuthorTeam") ⇒ Object



4764
4765
4766
4767
4768
4769
4770
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4764

def details_with_arg(authorTeamType = "basionymAuthorTeam")
  { :authorship => text_value,
    authorTeamType.to_sym => {
      :authorTeam => a.text_value.strip
    }.merge(a.details).merge(b.details)
  }
end

#posObject



4756
4757
4758
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4756

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

#valueObject



4752
4753
4754
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4752

def value
  a.value + " " + b.value
end