Return to menu
Validation routines are used by conditions for comparisons and do not transform or copy values. For lists of transformation routines, see
Transformation Routines
.
The following validation routines are available.
Spaces are indicated by a ^.
Validation Routines
Routine Name
Description
Example
Check characters at position
Validates that the string contains any of the character/s in the position specified in the parameter. Starting from the left, the first position is 0.
Parameter:
<position>@@<characters>
This routine can be useful to check values of MARC control fields.
The following setting makes sure that the seventh character is either a or b:
Parameter: 6@@ab
The following setting makes sure that the twenty-second character is either a space ( ) or a caret (^):
Parameter: 21@@ ^
There is a space between the last at sign (@) and the caret (^).
Validates a specified string from a specified position. Starting from the left, the first position is 0.
Parameter:
<position>@@<string>
Parameter: 35@@eng
Validates that any of the strings (which are separated by @@ in the Parameter field) are contained in the field.
Parameter: <string 1>@@<string 2>@@<string n>...
Parameter: whatever@@nothing@@something
Checks to see if the input string is not in the specified normalization mapping table. This table can be used – for example, to prevent the creation of dedup or FRBR keys for certain titles.
Parameter - The name of the normalization mapping table that contains the strings to check.
For example, you can create a normalization mapping table called
commontitles
and include a list of common titles to validate:
Validates that the length of the field is the same as the specified length in the parameter.
Parameter: 10