Module: ScientificNameClean::SimpleAuthorship3

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



3196
3197
3198
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3196

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



3200
3201
3202
3203
3204
3205
3206
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3200

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



3192
3193
3194
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3192

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

#valueObject



3188
3189
3190
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3188

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