Recording Accession number changes
When the accession is inserted, register an AccessionInvName
with categoryCode = 'SITE'
, rank = 1080
and plantName = accessionNumber
. If a NameGroup
with name == accession.accessionNumberPart1
exists, then link it with the name group.
If accession number changes create accession_action
and accession_inv_name
records to document the change:
- Record an action with code
ACCNUMBERD
and note"Changed " + before + " to " +after
. - If the previous accession number is not yet registered as an
AccessionInvName
, add it.