Module: ScientificNameClean::SimpleAuthorship1

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4706
4707
4708
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4706

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = "basionymAuthorTeam") ⇒ Object



4710
4711
4712
4713
4714
4715
4716
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4710

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



4702
4703
4704
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4702

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

#valueObject



4698
4699
4700
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4698

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