Module: ScientificNameClean::SimpleAuthorship1

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



4307
4308
4309
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4307

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



4311
4312
4313
4314
4315
4316
4317
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4311

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



4303
4304
4305
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4303

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

#valueObject



4299
4300
4301
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4299

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