Add validation for added by user subfield $9 in not linked field for create/update endpoints

Description

Overview:

On UI we have validation for cases when:

  • linkable (but not linked yet field) has $9

  • linked field has additional $9 added by user

See attached screenshots for example:

Requirement:

Add validation for ‘/records-editor/records’ endpoint for following case:

  • user tries to add “$9” subfield in linkable field (but not linked yet) of MARC bibliographic record via API request (POST, PUT to ‘/records-editor/records’)

No changes for linking or $9 handling.

 

Steps to reproduce:

  1. Send POST/PUT with $9 subfield in linkable (but not linked) field:

  2. Check status of started job:

Actual result: Error is returned with following message:


Expected result: Return sensible error message on for POST, PUT request, ex.: “$9 is an invalid subfield for linkable bibliographic fields.”

Approach

  1. Create ticket to add UUID format validation for $9 subfield in record specification. Possible options:

    1. Update Subfield entity definition to include valueFormatType(uuid, regex) enum and valueFormat fields

    2. Use invalidSubfieldValue rule for $9

  2. Check that all fields required for linking present if $9 present. If only $9 present - return expected error

Environment

None

Potential Workaround

None

Attachments

4

Checklist

hide

Activity

Show:

Khalilah Gambrell October 23, 2024 at 12:14 PM
Edited

Hey - depends on what the team points

Mukhiddin Yusupov October 23, 2024 at 9:31 AM

What is the desired release for this feature?

Details

Assignee

Reporter

Priority

Development Team

Spitfire

Affected releases

Quesnelia (R1 2024)
Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 9, 2024 at 3:30 PM
Updated March 11, 2025 at 12:32 PM
TestRail: Cases
TestRail: Runs