Module: Tasks::CollectionObjects::OutdatedNamesHelper

Defined in:
app/helpers/tasks/collection_objects/outdated_names_helper.rb

Instance Method Summary collapse

Instance Method Details

#outdated_names_target(collection_object) ⇒ TaxonName, ...

What CoL is asked about for a CollectionObject (Vendor::Colrapi .name_status): its current determination's TaxonName, else (no TaxonName) the Otu's name. An Otu's own name alongside a TaxonName (e.g. a morphospecies code, "Aus sp. 3") is deliberately left out - CoL can't know it.

Parameters:

Returns:



11
12
13
14
# File 'app/helpers/tasks/collection_objects/outdated_names_helper.rb', line 11

def outdated_names_target(collection_object)
  otu = collection_object.current_otu
  otu&.taxon_name || otu&.name
end