Module: ScientificNameClean::SimpleAuthorship4

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



3210
3211
3212
3213
3214
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3210

def details
  details = details_with_arg(:basionymAuthorTeam)
  details[:basionymAuthorTeam].merge!(super)
  details
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



3216
3217
3218
3219
3220
3221
3222
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3216

def details_with_arg(authorTeamType = 'basionymAuthorTeam')
  { :authorship => text_value, 
    authorTeamType.to_sym => {
      :authorTeam => text_value,
    }
  }      
end