Description
Split shelfmark by nonempty delimiter and return the valid zero-based componentIndex plus componentCount.
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 shelfmark by nonempty delimiter and return the valid zero-based componentIndex plus componentCount.
When to use this tool
Use Shelfmark Sort Component when you need one explicit catalog-label parsing or formatting step.
How to use the tool and how it works
- Enter shelfmark, delimiter, componentIndex. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read component, componentCount. Use the output convention below.
Split shelfmark by nonempty delimiter and return the valid zero-based componentIndex plus componentCount.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| shelfmark | Shelfmark | Required. Text; maximum UTF-16 length 8192. |
| delimiter | Delimiter | Required. Text; maximum UTF-16 length 8192. |
| componentIndex | Component Index | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| component | Component | Required. Text; maximum UTF-16 length 8192. |
| componentCount | Component Count | Required. Safe integer. |
{
"input": {
"shelfmark": "QA/76/2024",
"delimiter": "/",
"componentIndex": 1
},
"output": {
"component": "76",
"componentCount": 3
}
} Limitations and assumptions
- Empty components are retained; no classification scheme or numeric sorting is inferred.
- 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.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Consult the cataloging scheme and source record before assigning semantic meaning or a filing order.
References
Similar or alternative tools
- Shelf Label Numeric Sort Token
Preserve digits and normalize their exact integer value to numericDecimal.
- Item Copy Suffix Index
Split label at the final nonempty separator, requiring a nonempty base and a positive decimal suffix without leading zero.