Skip to content

Main content

Shelf Label Numeric Sort Token Tool

Extract an exact decimal numeric shelf-label suffix while retaining its original digit spelling.

Loading tool…

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

  1. Enter token, prefix. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
tokenTokenRequired. Text; maximum UTF-16 length 8192.
prefixPrefixRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
digitsDigitsRequired. Text; maximum UTF-16 length 8192.
numericDecimalNumeric DecimalRequired. Text; maximum UTF-16 length 8192.
json
{
  "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

  1. Calculation and input contract: library-science/shelf-label-numeric-sort-token — tool.io

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.