Description
Preserve digits and normalize their exact integer value to numericDecimal.
Catalog identifiers and labels follow local formatting conventions. Splitting or recognizing a token's shape preserves structure without establishing that its identifier or classification is valid.
Preserve digits and normalize their exact integer value to numericDecimal.
When to use this tool
Use Shelf Label Numeric Sort Token when you need one explicit catalog-label parsing or formatting step.
How to use the tool and how it works
- Enter token, prefix. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read digits, numericDecimal. Use the output convention below.
Require token to begin with prefix and its remaining text to be ASCII digits. Preserve digits and normalize their exact integer value to numericDecimal.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| token | Token | Required. Text; maximum UTF-16 length 8192. |
| prefix | Prefix | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| digits | Digits | Required. Text; maximum UTF-16 length 8192. |
| numericDecimal | Numeric Decimal | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"token": "QA007",
"prefix": "QA"
},
"output": {
"digits": "007",
"numericDecimal": "7"
}
} Limitations and assumptions
- Leading zeros are preserved only in digits; the result is not a complete shelfmark sort key.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Consult the cataloging scheme and source record before assigning semantic meaning or a filing order.
References
Similar or alternative tools
- Cutter Sort Fraction Interval
Require 1-128 ASCII digits and return their exact integer numerator over 10 raised to the digit count as denominator.
- Accession Suffix Type Token
Classify empty suffix as none, ASCII digits as numeric, ASCII letters as alphabetic, and all other text as mixed.