Error checks to correctly validated MARC field 041 (repeatable field)
- Article Type: Q&A
- Product: Aleph
- Product Version: 21
Question
When adding more than one field 041 [language code, repeatable field] to a BIB record an error message appears. A warning is setup in xxx01/tab/check_doc.lng but it should only appear when field 041 is missing and not when it's added more than once.:
xxx01/tab/check_doc.eng
5123 L Required 041 field is missing.
Are there any other tables to setup?
Answer
The relevant table to check is check_doc_doc which checks field occurences and dependencies between fields. For the required purpose you should add a line like ...
Xxx01/tab/check_doc_doc
! col.1 : Section ID: OC
! col.2 : Record format
! col.3 : Error message code (between 5000 - 7000)
! col.4 : Minimum number of occurrences. "00" indicates that field
! is not mandatory. Any number from "01" indicates that the
! field must be present.
! col.5 : Maximum number of occurrences. The upper limit is "99",
! it is not possible to define unlimited number of
! occurrences.
! col.6,7,8,9,10: Field(s) for which number of occurrences is being defined.
! Up to 5 field codes with "OR" implied.
OC XX 5123 01 99 041##
In addition create also a new line in check_doc.lng (which holds the warnings and error messages) if you want a specific text for the warning ...
Xxx01/tab/check_doc.lng
5123 L Required field 041 is missing.
Category: Cataloging (500) - ALEPH
Subject: Create / Edit records (500) - ALEPH
- Article last edited: 1/20/2014