Description
Count exact requestedTag matches in tags and return max(0, occurrences - 1) as repeatsBeyondFirst.
Inclusive labels, repeated records, and serial restarts describe different counting bases. A numeric span is not automatically the count of existing physical or bibliographic items.
Count exact requestedTag matches in tags and return max(0, occurrences - 1) as repeatsBeyondFirst.
When to use this tool
Use Catalogue Field Repeat Count when you need a catalog count under a declared endpoint or restart convention.
How to use the tool and how it works
- Enter tags, requestedTag. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read occurrences, repeatsBeyondFirst. Use the output convention below.
Count exact requestedTag matches in tags and return max(0, occurrences - 1) as repeatsBeyondFirst.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| tags | Tags | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| requestedTag | Requested Tag | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| occurrences | Occurrences | Required. Safe integer. |
| repeatsBeyondFirst | Repeats Beyond First | Required. Safe integer. |
{
"input": {
"tags": [
"650",
"245",
"650"
],
"requestedTag": "650"
},
"output": {
"occurrences": 2,
"repeatsBeyondFirst": 1
}
} Limitations and assumptions
- No tag vocabulary, field order, or repeatability rule is checked.
- 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
Compare the computed count with the original serial or item record, including missing and unnumbered material.
References
Similar or alternative tools
- Authority Heading Language Count
Select exact heading matches, count those records, and count distinct language strings among them.
- MARC Subfield Empty Value Flag
Test value for exact emptiness and code for one lowercase ASCII letter or digit.