quickMARC: MARC Validation (UXPROD-3985)

[MODQM-388] BE - MARC validation\Bib Rec.\Only one 1xx is allowed Created: 15/Jun/23  Updated: 31/Jan/24

Status: Blocked
Project: mod-quick-marc
Components: None
Affects versions: None
Fix versions: None
Parent: quickMARC: MARC Validation

Type: Story Priority: P3
Reporter: Khalilah Gambrell Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: back-end, epam-spitfire, marc-validation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Blocks
blocks UXPROD-4549 MARC21 record validation support - Ph... Open
blocks UXPROD-3940 MARC21 record validation support - Ph... Draft
Cloners
is cloned by UIQM-600 FE - MARC validation\Bib Rec.\Only on... Open
Sprint:
Development Team: Spitfire
Epic Link: quickMARC: MARC Validation

 Description   

Requirements

  1. Can only have one 1XX field in a MARC bib record. 
  2. If user attempts to create/edit/derive a MARC bib record with multiple 1XXs then display the error message: Record cannot be saved with multiple 1XXs. 
  3. If the record was imported and/or loaded directly to the database AND has multiple 1XXs then allow the user to view and edit the record AND if the user attempts to save the record then display the error message: Record cannot be saved with multiple 1XXs.

 

Scenarios for testing

1. Some bib rec. have got field: 100, 110, 111, 130

Librarian can not save record with more than one field from group: 1xx.

So:

  1. If the record has got: 100, 110, 111, 130 - it can't be saved
  2. If the record has got: 100, 110, 111 - it can't be saved
  3. If the record has got: 100, 110 - it can't be saved
  4. If the record has got: 110, 111, 130 - it can;t be saved
  5. If the record has got: 111, 130 - it can;t be saved
  6. etc.

2. Record can be saved with only one 1XX:

100 (one) or 110 (one) or 111 (one) or 130 (one) or none

Non-repeatable rule is for whole group not for each fields separately - https://www.loc.gov/marc/bibliographic/bd1xx.html 

3. Import a record with multiple 1XXs 

IF a user creates or updates a bib record with multiple 1XXs via data import
Then the user should be able to view the MARC record AND edit the MARC record

IF a user creates or updates a bib record with multiple 1XXs via data import
When the user edits the record via quickMARC UI 
AND hits Save without removing the multiple 1XXs 
Then display the error message  - Record cannot be saved with multiple 1XXs. 

IF a user creates or updates a bib record with multiple 1XXs via data import
Then user should be able to View MARC source 



 Comments   
Comment by Khalilah Gambrell [ 29/Dec/23 ]

Marcin Mystkowski  - when you have a moment, can you review this requirement and let me know if this requirement meets your expectations? 

Comment by Christine Schultz-Richert [ 04/Jan/24 ]

Refinement 1/4/23: Blocked until overall solution for MARC validation is defined.

Comment by Khalilah Gambrell [ 05/Jan/24 ]

Pavlo Smahin and Valery_Pilko, I removed the checking if the 1XX is valid requirement. Will handle in a separate story.

Generated at Fri Feb 09 00:39:17 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.