Skip to content

Main content

Item Copy Suffix Index Tool

Calculate item copy suffix index from explicit caller-supplied inputs.

Loading tool…

Description

Split label at the final nonempty separator, requiring a nonempty base and a positive decimal suffix without leading zero.

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.

Split label at the final nonempty separator, requiring a nonempty base and a positive decimal suffix without leading zero.

When to use this tool

Use Item Copy Suffix Index when you need one explicit catalog-label parsing or formatting step.

How to use the tool and how it works

  1. Enter label, separator. 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 base, copyIndex. Use the output convention below.

Split label at the final nonempty separator, requiring a nonempty base and a positive decimal suffix without leading zero. Return base and numeric copyIndex.1

Input fieldMeaning and unitsAccepted input
labelLabelRequired. Text; maximum UTF-16 length 8192.
separatorSeparatorRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
baseNumeric base or source quantity interpreted under the specific calculation above.Required. Text; maximum UTF-16 length 8192.
copyIndexCopy IndexRequired. Safe integer.
json
{
  "input": {
    "label": "BOOK/c3",
    "separator": "/c"
  },
  "output": {
    "base": "BOOK",
    "copyIndex": 3
  }
}

Limitations and assumptions

  • This is a caller-defined label convention, not accession identity or a complete catalog identifier validator.
  • 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/item-copy-suffix-index — tool.io

Similar or alternative tools