task #7798
open[AM, ERS]: Import (freetext) nameInSource correctly
100%
Description
For occurrence sources and maybe also for common names and facts.
Occurrences:
- case: freetext exists parallel to link => if nameCache or fullnameCache are exactly equal then neglect freetext, otherwise store it parallel to name link; a list has been sent to ERS to clean up these cases (see #7798#note-4)
freetext is only name
a. name can not be found for any Name.nameCache => we could create new TaxonName for this, but will not as it polutes the DB, we better try to clean up theses cases over time (see #7798#note-6)
b. >1 name is mentioned, separated by '/'. We better clone these sources (now or later)
c. a name exists in DB, we try to find the best matching name by first searching in the synonymy and, if not exists use the single matching name, if >1 matching names exists, log the case and use the first matching name (prefer name without author)
Most important for import: try to reduce the number of names that only come via occurrence import. These are
- "Orphaned name: A similar name" : names that do not belong to any taxon but a matching name was found in "synonymy" * Decide for invalid designations (why do they show up?) and orthographic variants
- "Orphaned name: A similar misapplied name" : like above but for misapplications. * Decide on all
- TBC
open issues:
- test code
- test for facts and common names
Related issues