Skip to content

Expand Auto-Numbering Functionality for Catalog Numbers #5234

@grantfitzsimmons

Description

@grantfitzsimmons

Description:
Enhance the auto-numbering system to allow for more complex numbering schemes, including the ability to incorporate prefixes and suffixes while maintaining unique identifiers.

Acceptance Criteria:

  • Allow users to define auto-numbering patterns that include prefixes and suffixes.

@realVinayak demonstrated that you can (mis)use the byyear numbering system to have an auto-incrementing system based on a generic prefix:

<format system="false" name="OSU CE Number Regexp" class="edu.ku.brc.specify.datamodel.CollectingEvent" fieldname="stationFieldNumber" default="true">
<autonumber>edu.ku.brc.af.core.db.AutoNumberGeneric</autonumber>
<field type="regex" size="4" value="[-|0-9]{4}" byyear="true"/>
<field type="constant" size="1" value=":"/>
<field type="numeric" size="4" inc="true"/>
</format>
  • Ensure that auto-incrementing can be based on the prefix without breaking existing functionality.
  • Provide clear documentation on how to set up and use the expanded auto-numbering features.

Metadata

Metadata

Assignees

Labels

1 - RequestA request made by a member of the communitygeospecify

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions