Flexible accession and inventoryNumber
Accession#accessionNumber and Inventory#inventoryNumber now use a Java method to generate the full name from name parts 1..3 (or 1..4).
The formatting style of these numbers is a sensitive issue and needs to correspond to current genebank practices.
Example accession number formats:
- IITA uses a dash
-betweenpart1andpart2: TMe-419 - IRRI uses space
: IRGC 123123 - Some don't use space: PI3232
- Some use
betweenpart2andpart3: TPt-6 A - Others use
.: ZZZ 531.A
GG-CE should make these separators configurable.
Ideas
We could use MessageFormat and a helper method to format the final string:
accession.number.format={0}-{1} {2}
inventory.number.format={0} {1}.{2} {3}
This would also allow for zero-padding part2 for some genebanks (e.g. ITC0001320).
Edited by Matija Obreza