IN PROGRESS
Documentation to review
NOTE: Validation rules only apply to Create/Edit/Derive via quickMARC. No impact to Data import.
Global Rules across all MARC record types
MARC tag number / indicator / subfield | Action | Validation rule | UI error message or UI response | JIRA issue(s) |
---|---|---|---|---|
Add a new field > Empty MARC tag and subfield text boxes | UI response: Record is saved and the field is removed. | |||
Add a new field >Empty subfield text box but MARC tag box is populated | Cannot save a field without a subfield | UI response: Record is updated/created and the field is removed. | ||
Add a new field > Empty MARC tag but subfield text box has a value (example $c c2016) | Cannot save a field without a valid MARC tag | UI error message: Record cannot be saved. A MARC tag must contain three characters. | ||
Add a new field > MARC tag is populated but subfield text box has only subfield code (example $c) | UI response: Record is saved and the field is removed. | |||
Add a new field > MARC tag is populated but subfield text box has value but no subfield code (example c2016) | UI response: Subfield code $a is populated before the value | |||
Saved field > Cleared MARC tag and subfield text boxes | UI response: Record is saved and the field is removed. | |||
Saved field > MARC tag remains and subfield text box has been cleared | UI error message: Missing a subfield value for a MARC tag | |||
Saved field >MARC tag remains and only subfield code entered (ex. $c) Assume all subfield values have been removed | Cannot save a field without a subfield value | UI response: Removes the entire field | ||
Saved field > MARC tag remains and subfield code has been cleared but value in subfield text box (ex. c2016) | non-Leader and fixed fields must have a subfield code | UI response: when only 1 subfield the record saves and populates the $a subfield code. UI response: when all the subfield codes are removed it saves the record and populates $a at the beginning of the subfield, the rest of the codes remain missing. | ||
Saved field > MARC tag cleared but subfield text box has a value (ex. $c c2016) | Cannot save a field without a valid MARC tag | UI error message: Record cannot be saved. A MARC tag must contain three characters. | UIQM-148 | |
Tag number | Must be 3 numbers only | UI error message: Record cannot be saved. A MARC tag must contain three characters. | ||
Tag number | No symbols, alphabet. Just numbers. | UI error message: Invalid MARC tag. Please try again. | ||
Indicator 1 |
| UI response: If not then auto-populate with / | ||
Indicator 2 |
| UI response: If not then auto-populate with / | ||
Subfield |
| UI response: Leading subfield is autopopulated | ||
005 |
| UI response: Unable to edit I was able to add a 005 but it was greyed out, could not edit. Saving deleted it. | ||
008 |
| when trying to add a second 008 UI: error message Record cannot be saved with more than one 008 field | Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration. | |
999 f f $s $i |
| UI response: Record saved with added 999 field (Chris will verify with duplicate 999 ff $s and $i) After adding the f indicators, the field greyed out and would not allow editing. Saving deletes the added field. |
Bibliographic Record
MARC field number / indicator / subfield | Validation rule | UI error message or UI response | JIRA issue(s) |
---|---|---|---|
Leader |
| UI error message: Record cannot be saved. The Leader must contain 24 characters, including null spaces. | |
Leader (editable positions) - invalid character entered | Must have a valid value for positions: 5, 6, 7, 8, 17, 18 and/or 19. See https://loc.gov/marc/bibliographic/bdleader.html | UI error message: Record cannot be saved. Please enter a valid Leader <<editable position number>>. Valid values are listed at https://loc.gov/marc/bibliographic/bdleader.html |
|
Leader (non-editable positions) | Only positions 5, 6, 7, 8, 17, 18 and/or 19 can be edited | UI error message: : Record cannot be saved. Please check the Leader. Only positions 5, 6, 7, 8, 17, 18 and/or 19 can be edited in the Leader. For certain positions (TBD): Upon hitting Save button then the quickMARC will automatically update to valid position value. |
|
001 |
| UI response: I was able to add a 005 but it was greyed out, could not edit. Saving deleted it. | |
010 |
| UI error message: Record cannot be saved with more than one 010 field. |
|
245 |
| UI error message: Record cannot be saved with more than one field 245. | |
1XX |
| UI error message: Record cannot be saved with multiple 1XXs. |
|
Subfield 9 | |||
Subfield 0 |
Authority Record
MARC field number / indicator / subfield | Validation rule | UI error message or UI response | JIRA issue(s) |
---|---|---|---|
Leader |
|
| |
| |||
| UI error message: Example - Entering an invalid Leader position 08 value. Record cannot be saved. Please enter a valid Leader 08. Valid values are listed at https://www.loc.gov/marc/authority/adleader.html | ||
001 |
| ||
008 | Unexpected length of the field | UI response: Deleting a character \ will be populated and record saved. Will not allow more than one character in a box. | |
010 |
| UI error message: Record cannot be saved with more than one 010 field. |
|
010 $a |
| UI error message: 010 can only have one $a. |
|
1XX |
| UI error message: Record cannot be saved. Cannot have multiple 1XXs. |
Holdings Record
MARC field number /Ind 1 / Ind 2 / subfield | Validation rule | UI error message or UI response | JIRA issue(s) |
---|---|---|---|
Leader | The Leader must contain 24 characters, including null spaces | UI error message: Record cannot be saved. The Leader must contain 24 characters, including null spaces. |
|
Leader | Only positions 05, 06, 17, and 18 can be edited in the Leader | UI error message: Record cannot be saved. Please check the Leader. Only positions 5, 6, 17, 18 can be edited in the Leader. | |
001 |
| ||
004 |
| UI response: Field is greyed out, no editing allowed Removes duplicate 004 |
|
006 | No change from MARC bib validation | Note Tried to add 006 [under 852] chose s for type, the rest autopopulated with \ add 852, saved Viewing the source record I saw that only the s saved | |
007 | Unexpected length of the field No change from MARC bib validation | Note Tried to add 007 [under 852] choose text for type, SMD box with a \ also appeared UI response: Record was created with 007 t | |
008 | Unexpected length of the field | remove 1 character from AcqEndDate UI error message: Record not saved. Please check the character length of the fixed fields. | |
008 | Unexpected length of the field | remove the u from AcqMethod UI response: The record saved and populated blank field with a \ | |
010 | Subfield length should be more than 3 characters No change from MARC bib validation | Add 010 [under 852] \\$a 1 with adding an 852 UI Response: record saved | |
852 $b |
| a.) Record cannot be saved. An 852 is required. |
|
852 $b |
| UI response: Location is in a drop down menu Entered subfields manually with an incorrect location - one that wasn't listed. UI response: 852 $b contains an invalid Location code. Please try again. | |
852 $b |
| UI error message: Record cannot be saved. Can only have one MARC 852. |