"MARC authority" record is not found automatically in "Select MARC authority" modal when linked field has "$0"

Description

Overview: "MARC authority" record is not found automatically in "Select MARC authority" modal when linked field has "$0". 
When linkable MARC bib field has subfield "$0" GET request to '/search/authorities' fails with 400 error.

Steps to Reproduce:

  1. Log into Snapshot FOLIO environment as admin.

  2. Go to "Inventory" app.

  3. Find and open detail view if imported "MARC bib" record (

  1. ), ex.: "Britain's contribution to détente"

  2. Click on the "Actions" >> "Edit MARC bibliographic record"

  3. Click on the "Link to MARC Authority record" icon placed next to "240" field.

Expected Results: 
The modal window titled "Select MARC authority" is displayed with executed search:

  • Selected "Search" toggle

  • "Advanced search" is selected search option.

  • CQL query is being displayed in the search box: "keyword==Conf on Security & Cooperation in Europe or identifiers.value==n88606074"

  • Imported "MARC authority" record (

  • ) is displayed in the second pane.

Actual Results: 
The modal window titled "Select MARC authority" is displayed with:
UI - message" No results found for "keyword==Conf on Security & Cooperation in Europe or identifiers.value==n88606074". Please check your spelling and filters."
DevTools - 400 error for GET request '/search/authorities' with following message:

{     "errors": [         {             "message": "Failed to parse cql query [cql: '', resource: authority]",             "type": "SearchServiceException",             "code": "service_error"         }     ],     "total_records": 1 }

See attached screencast:

Interested parties:  

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

12
  • 05 Jan 2024, 08:13 AM
  • 05 Jan 2024, 08:13 AM
  • 22 Dec 2023, 09:31 AM
  • 22 Dec 2023, 09:31 AM
  • 22 Dec 2023, 09:25 AM
  • 22 Dec 2023, 09:25 AM
  • 22 Dec 2023, 09:18 AM
  • 22 Dec 2023, 09:18 AM
  • 13 Dec 2023, 10:46 AM
  • 13 Dec 2023, 10:45 AM
  • 13 Dec 2023, 10:39 AM
  • 13 Dec 2023, 10:39 AM

Checklist

hide

TestRail: Results

Activity

Show:

Valery_Pilko January 5, 2024 at 8:14 AM

Re-tested on Snapshot env - issue from description and found issue are fixed.
See attachments:

Dmytro Melnyshyn December 22, 2023 at 10:00 PM

Hi - the bug described in the comment above will be fixed after https://folio-org.atlassian.net/browse/STCOM-1242#icft=STCOM-1242 is deployed.

Valery_Pilko December 22, 2023 at 9:32 AM

Hi  
One issue found during testing: "Advanced search query which includes search by identifier return not only "Authorized" results when it was triggered by click on the "Link to MARC Authority record" icon"
Scenario: 

  1. Import MARC bib (

  1. ) and MARC authority (

  1. ) records 

  2. Go to "Inventory" app.

  3. Find and open detail view if imported "MARC bib" record, ex.: "Black Panther / writer, Ta-Nehisi Coates"

  4. Click on the "Actions" >> "Edit MARC bibliographic record"

  5. Click on the "Link to MARC Authority record" icon placed next to "700" field with following value in 4th box: "$a Lee, Stan, $d 1922-2018, $e creator. $0 http://id.loc.gov/authorities/names/n83169267".
    Expected result: only "Authorized" record is returned to the result list and detail view is opened automatically, ex.: "Lee, Stan, 1922-2018"
    Actual result: "Authorized" and "Reference" records are returned to the result list.
    See screenshot from Snapshot environment:

    See screenshot from Poppy BF environment:

    Note: Looks like automatically sent request doesn't include authRefType=="Authorized" which lead to the issue.

    But manually send request includes authRefType=="Authorized":

Christine Schultz-Richert December 13, 2023 at 4:33 PM

Hey   - yes, when searching by the $0 subfield value, we should search for an exact match

Denys Bohdan December 13, 2023 at 4:25 PM

Hey , should we search by exact match in this case?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Quesnelia (R1 2024)

RCA Group

Legitimate regression

Affected releases

Quesnelia (R1 2024)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created December 13, 2023 at 10:44 AM
Updated April 4, 2024 at 11:26 AM
Resolved January 5, 2024 at 6:36 PM
TestRail: Cases
TestRail: Runs

Flag notifications