We would like to include our institution acronym into our catalog number during DwCA export.
If we follow the guides the exported catalog number is the numeric one: eg. 896415, which is our default catalog number format (CatalogNumberNumeric #########) without the leading zeros.
Thanks for reaching out and for providing the details of your current setup and the workaround youâve found!
You are right that referring to the catalog number from the determination table to add the âNHMDâ prefix, while effective, isnât the most scalable or recommended solution. It bypasses the intended mechanism for formatting these fields.
The preferred and more robust approach to achieve this is indeed by editing the table format directly within the Schema Configuration for the CollectionObject table. This allows you to define how the catalogNumber field should be presented universally across Specify, including in your DwCA exports.
First, in the user tools go to the Schema Configuration and select collection object as your base table.
Dear Bhumika,
thank you for your reply!
Unfortunately the approach you suggested doesnât solve our problem.
Our table format is already has NHMD as a separator:
I believe the issue here is that you are trying to apply a table format to a field (collectionobject.catalogNumber) rather than mapping to the (formatted) table field itself (collectionobject.).
I defined a table format as described by @bhumikagupta, and once I did so, I was able to map the http://rs.tdwg.org/dwc/terms/catalogNumber term to the 1.collectionobject. string ID (corresponding to the â(formatted)â Collection Object record itself).
Actually, the leading zero behavior for the formatted catalog number was changed in v7.10.2, and after this request was made, we met as a team and recognized the need to have this be a configurable option.
So if you are using v7.9.6.2, the leading zeros should not appear, but in v7.10.2 or later, the leading zeros would appear after the prefix.
We are working on a change so that you can choose either to include leading zeroes or exclude them (as you intended in the NHMD896415 example), see #7080, stated for a new release in the next few months (v7.11.2).