Rules for handling 010 (MARC authority - 1XX)
This logic applies to data import (update MARC authority) and edit MARC authority via quickMARC UI (with additional validations)
Scenario | authority field 001 valid prefix | authority field 010 $a valid prefix | bib field $0 populated by | naturalid |
|---|---|---|---|---|
1 | N | N | 001 | 001 |
2 | N | Y | 010 $a | 010 $a |
3 | Y | Y | 010 $a | 010 $a |
4 | Y | N | 001 | 001 |
See table to revise test results:
Table 1: Edit in quickMARC; Linking is based on "001" field ("$0" of "MARC Bib" is controlled by "001" field of "MARC Authority")
https://folio-org.atlassian.net/browse/UIQM-386
Test # | Description | Expected result | Actual result | Passed? | Test-case |
|---|---|---|---|---|---|
1 | When "MARC Authority" doesn't have "010" >> | Show error | Successful save | Yes | |
2 | When "MARC Authority" doesn't have "010" >> | Successful save | Successful save | Yes | |
3 | When "MARC Authority" has "010 $z" | Successful save | Successful save | Yes | |
4 | When "MARC Authority" has "010 $z" | Successful save | Successful save | Yes | |
5 | When "MARC Authority" has "010 $z" | Show error | Show error | Yes | |
6 | When "MARC Authority" has "010 $a" | Show error | Show error | Yes | |
7 | When "MARC Authority" has "010 $a" | Successful save | Successful save | Yes | |
8 | When "MARC Authority" has "010 $a and $z" | Successful save | Successful save | Yes | |
9 | When "MARC Authority" has "010 $a and $z" | Successful save | Successful save | Yes | |
10 | When "MARC Authority" has "010 $a and $z" | Show error | Show error | Yes | |
11 | When "MARC Authority" has "010 $a" | Successful save | Successful save | Yes |
Table 2: Edit in quickMARC; Linking is based on "010" field ("$0" of "MARC Bib" is controlled by "010 $a" field of "MARC Authority")
https://folio-org.atlassian.net/browse/UIQM-348
Test # | Description | Expected result | Actual result | Passed? | Test-case |
|---|---|---|---|---|---|
1 | Edit "$a" in "010" field (from valid to valid prefix) >> save the record | successful save; | successful save; | Yes | |
2 | Edit "$a" in "010" field (from valid to NOT valid prefix) >> save the record | successful save; | successful save; | Yes | |
3 | Delete "010" field | Icon doesn't show | Icon doesn't show | Yes | |
4 | Delete "010" field via rename tag value to "009" >> Save the record | Show error | Successful save | Yes | |
5 | Add "$z" in "010" field >> save the record | successful save | successful save | Yes | |
6 | Edit "$z" in "010" field >> save the record | successful save | successful save | Yes | |
7 | Delete "$z" in "010" field >> save the record | successful save | successful save | Yes | |
8 | When "MARC Authority" has "010 $a and $z" | Show error | successful save; Linked bib update confirmation modal is shown; | Yes | |
9 | Delete value from "$a" in "010" field >> save the record | Show error | successful save; Linked bib update confirmation modal is shown; | Yes |
Table 3: Update MARC authority record via "Data import"; Linking is based on "010" field ("$0" of "MARC Bib" is controlled by "010 $a" field of "MARC Authority")
Test # | Description | Expected result | Actual result | Passed? | Test-case |
|---|---|---|---|---|---|
1 | Edit "$a" in "010" field (from valid to valid prefix) | Update MARC authority 010 $a Linked bib fields "$0" - updated with "010 $a" | Linked bib fields "$0" - updated with "010 $a" | Yes | |
2 | Edit "$a" in "010" field (from valid to NOT valid prefix) | Update MARC authority 010 $a Linked bib fields "$0" - updated with "001" | Linked bib fields "$0" - updated with "001" | Yes | |
3 | Delete "010" field | Update MARC authority without 010 Linked bib fields "$0" - updated with "001" | Linked bib fields "$0" - updated with "001" | Yes | |
5 | Add "$z" in "010" field | MARC authority 010 is updated with $z No change to linked bib fields $0 | Linked bib fields "$0" - not updated | Yes | |
6 | Edit "$z" in "010" field | MARC authority 010 is updated with $z No change to linked bib fields $0 | Linked bib fields "$0" - not updated | Yes | |
7 | Delete "$z" in "010" field | MARC authority 010 is updated without $z No change to linked bib fields $0 | Linked bib fields "$0" - not updated | Yes | |
8 | When "MARC Authority" has "010 $a and $z" | MARC authority 010 is updated without $a Linked bib fields "$0" - updated with "001" | Linked bib fields "$0" - updated with "001" | Yes | |
9 | Delete value from "$a" in "010" field | Could be an DI error that prevents the record from updating OR MARC authority is updated without 010 Linked bib fields "$0" - updated with "001" | Linked bib fields "$0" - updated with "001" MARC authority updated with empty "010" (without "$a"). "Something went wrong" screen when opening it for edit | No | https://foliotest.testrail.io/index.php?/cases/view/376943 (assumption: MARC authority is updated without 010) |
Table 4: Update via "Data import"; Linking is based on "001" field ("$0" of "MARC Bib" is controlled by "001" field of "MARC Authority")
Test # | Description | Expected result | Actual result | Passed? | Test-case |
|---|---|---|---|---|---|
1 | Given 001 has a valid prefix When "MARC Authority "create new "010" field with "$a" AND valid prefix | MARC authority updated with 010 $a AND the bib field $0 is also updated with 010 $a
| Linked bib fields "$0" - updated with "010" | Yes | |
2 | Given 001 has an invalid prefix When "MARC Authority" create new "010" field with "$a" AND valid prefix | MARC authority updated with 010 $a AND the bib field $0 is also updated with 010 $a | Linked bib fields "$0" - updated with "010" | Yes | |
3 | Given 001 has an invalid prefix When "MARC Authority" create new "010" field with "$a" AND invalid prefix | MARC authority updated with 010 $a AND the bib field $0 is not updated and 001 continues to populate the value | Linked bib fields "$0" - not updated | Yes | |
4 | Given 001 has an valid prefix When "MARC Authority" create new "010" field with "$a" AND invalid prefix | MARC authority updated with 010 $a AND the bib field $0 is not updated and 001 continues to populate the value | Linked bib fields "$0" - not updated | Yes | |
5 | When "MARC Authority" doesn't have "010" >> | MARC authority updated with 010 $z AND the bib field $0 is not updated and 001 continues to populate the value | Linked bib fields "$0" - not updated | Yes | |
6 | When "MARC Authority" has "010 $z" | MARC authority updated with 010 $z AND the bib field $0 is not updated and 001 continues to populate the value | Linked bib fields "$0" - not updated | Yes | |
7 | When "MARC Authority" has "010 $z" | MARC authority updated without 010 $z AND the bib field $0 is not updated and 001 continues to populate the value. Assuming that 010 $a has an invalid prefix. | Linked bib fields "$0" - not updated | Yes | |
8 | When "MARC Authority" has "010 $z" | MARC authority updated with 010 $a If 010 $a is valid then update linked bib fields $0 otherwise no change | If 010 $a is valid then update linked bib fields $0 otherwise no change | Yes | Add valid "$a": https://foliotest.testrail.io/index.php?/cases/view/376954 |
9 | When "MARC Authority" has "010 $a" | MARC authority updated with 010 $a If 010 $a is valid then update linked bib fields $0 otherwise no change
|