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
-
betweenpart1
andpart2
: TMe-419 - IRRI uses space
- Some don't use space: PI3232
- Some use
part2
andpart3
: 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
).