Skip to content

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 - between part1 and part2: TMe-419
  • IRRI uses space : IRGC 123123
  • Some don't use space: PI3232
  • Some use between part2 and part3: 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information