Module: ScientificNameClean::SimpleAuthorship1

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4434
4435
4436
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4434

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



4438
4439
4440
4441
4442
4443
4444
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4438

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



4430
4431
4432
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4430

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

#valueObject



4426
4427
4428
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4426

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