Module: ScientificNameClean::SimpleAuthorship1

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4720
4721
4722
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4720

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = "basionymAuthorTeam") ⇒ Object



4724
4725
4726
4727
4728
4729
4730
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4724

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



4716
4717
4718
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4716

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

#valueObject



4712
4713
4714
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4712

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