quickMARC - MARC21 Validation

quickMARC - MARC21 Validation

In Progress

Table of Contents

 

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)

#

MARC tag number / indicator / subfield

Action

Validation rule

UI error message or UI response

JIRA issue(s)

1

 

Add a new field > Empty MARC tag and subfield text boxes

 

UI response: Record is saved and the field is removed.

 

2

 

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.

 

 

3

 

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.

 

4

 

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.

 

5

 

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

 

 

6

 

Saved field > Cleared MARC tag and subfield text boxes

 

UI response: Record is saved and the field is removed.

 

7

 

Saved field > MARC tag remains and subfield text box has been cleared

 

UI error message: Missing a subfield value for a MARC tag

 

8

 

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

 

 

9

 

Saved field > MARC tag remains and subfield code has been cleared but subfield value remains (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.

 

 

10

 

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

11

Tag number

 

Must be 3 numbers only

UI error message: Record cannot be saved. A MARC tag must contain three characters.

 

12

Tag number

 

No symbols, alphabet. Just numbers.

UI error message:  Invalid MARC tag. Please try again.   

 

13

Indicator 1 

 

  • An indicator must have a value.  

  • Not available for the following fields: 

UI response:  If not then auto-populate with / 

 

14

Indicator 2 

 

  • An indicator must have a value. 

  • Not available for the following fields:

UI response:  If not then auto-populate with / 

 

15

Subfield 

 

  • Leading subfield code a is autopopulated for all field except for Leader and fixed fields

UI response: Leading subfield code $a is autopopulated when adding a new field

 

16

005

 

  • Required 

  • Non-repeatable 

  • System generated

UI response: I was able to add a 005 but it was greyed out, could not edit. Saving deleted it.

 

17

008

 

  • Required 

 

https://folio-org.atlassian.net/browse/UIQM-459

18

 

 

  • Non-repeatable 

UI: error message Record cannot be saved with more than one 008 field

 

19

999 f f $s $i 

 

  • Required 

  • Non-repeatable

  • System generated 

UI response:  Automatically removes the duplicate 999 ff 

 

Bibliographic Record

 

MARC field number / indicator / subfield

Validation rule

UI error message or UI response

JIRA issue(s)

 

MARC field number / indicator / subfield

Validation rule

UI error message or UI response

JIRA issue(s)

1

Leader

  • Must have 24 characters

UI error message: Record cannot be saved. The Leader must contain 24 characters, including null spaces.
 

 

2

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

https://folio-org.atlassian.net/browse/UIQM-234

https://folio-org.atlassian.net/browse/MODQM-164

3

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. 

https://folio-org.atlassian.net/browse/MODQM-225

4

001

  • Required 

  • Non-repeatable (NR)

  • System generated 

UI response: I was able to add a 001 but it was greyed out, could not edit. Saving deleted it.

 

5

010

  • Non-repeatable (NR)

UI error message: Record cannot be saved with more than one 010 field.

https://folio-org.atlassian.net/browse/UIQM-382

6

245

  • Required

  • Non-repeatable (NR)

UI error message: Record cannot be saved without field 245.

UI error message: Record cannot be saved with more than one field 245.

 

7

1XX

  • Non-repeatable (NR) (Not yet implemented)

UI error message: Record cannot be saved with multiple 1XXs.  

 

https://folio-org.atlassian.net/browse/MODQM-388

https://folio-org.atlassian.net/browse/UIQM-600

8

Subfield 9

 

 

 

9

Subfield 0

 

 

 

Authority Record 

MARC field number / indicator / subfield 

Validation rule

UI error message or UI response

JIRA issue(s)

MARC field number / indicator / subfield 

Validation rule

UI error message or UI response

JIRA issue(s)

Leader

  • The Leader must contain 24 characters, including null spaces

 

 

https://folio-org.atlassian.net/browse/UIQM-419

https://folio-org.atlassian.net/browse/MODQM-229

https://folio-org.atlassian.net/browse/UIQM-381

 

  • 06 position must have a "z" value

 

 

 

  • Editable: 05,17, 18

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

  • Required 

  • Non-repeatable (NR)

  • System generated 

 

 

010 

  • Non-repeatable

UI error message: Record cannot be saved with more than one 010 field.

https://folio-org.atlassian.net/browse/UIQM-330https://folio-org.atlassian.net/browse/UIQM-196

010 $a 

  • Can only have one subfield a

UI error message:  010 can only have one $a. 

https://folio-org.atlassian.net/browse/UIQM-395

1XX

  • Required - Must have only one  1XX MARC Tag

  • Non-repeatable (NR)

UI error message:  Record cannot be saved. Cannot have multiple 1XXs. 

UIQM-584

 

Holdings Record

MARC field number /Ind 1 / Ind 2 / subfield

Validation rule

UI error message or UI response

JIRA issue(s)

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.

https://folio-org.atlassian.net/browse/MODQM-226

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

  • Required

  • Non-repeatable (NR)

  • System-generated

 

 

004

  • Required

  • Non-repeatable (NR)

UI response: Field is greyed out, no editing allowed

Removes duplicate 004

https://folio-org.atlassian.net/browse/UIQM-167

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 - AcqEndDate

Unexpected length of the field. Must have four characters

UI error message: Record not saved. Please check the character length of the fixed fields.

 

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

  • Required

a.) Record cannot be saved. An 852 is required.

https://folio-org.atlassian.net/browse/UIQM-165

852 $b

  • Valid $b value

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

  • Non-repeatable (NR)

UI error message: Record cannot be saved. Can only have one MARC 852.