Module: ScientificNameClean::SimpleAuthorship3

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4347
4348
4349
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4347

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



4351
4352
4353
4354
4355
4356
4357
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4351

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



4343
4344
4345
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4343

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

#valueObject



4339
4340
4341
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4339

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