Module: ScientificNameClean::SimpleAuthorship3

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4487
4488
4489
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4487

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = "basionymAuthorTeam") ⇒ Object



4491
4492
4493
4494
4495
4496
4497
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4491

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



4483
4484
4485
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4483

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

#valueObject



4479
4480
4481
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4479

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