Module: ScientificNameClean::SimpleAuthorship1

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

Instance Method Summary collapse

Instance Method Details

#detailsObject



3156
3157
3158
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3156

def details
  details_with_arg(:basionymAuthorTeam)
end

#details_with_arg(authorTeamType = 'basionymAuthorTeam') ⇒ Object



3160
3161
3162
3163
3164
3165
3166
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3160

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



3152
3153
3154
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3152

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

#valueObject



3148
3149
3150
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 3148

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