Browse results are not updated when field with Subject/Contributor value is linked/unlinked unless page reloaded

Description

Overview: If "MARC bib" record's field with Subject or Contributor value (e.g. "600", "100") is being linked or unlinked, "MARC authority" icon is not removed/added for the corresponding line in browse results. Page reload is required for thus icon to be shown/removed as appropriate.

Pre-conditions:

  • Authorized user with the following permissions:

    • Inventory: All permissions

    • quickMARC: Can Link/unlink authority records to bib records

    • quickMARC: View, edit MARC bibliographic record

    • MARC Authority: View MARC authority record

  • The system must have the "MARC bibliographic" record with "110" field (you can import the attached "MARC_Bib_110(Beatles_edited).mrc").

  • The system must have the "MARC authority" record with "110" field (you can import the attached "MARC_Auth_110(Beatles_edited).mrc").

  • The "110" MARC field of imported "MARC Bibliographic" record must be linked to the "110" field of imported "MARC Authority" record.

  • Main page of "Inventory" app is opened.

  • "Browse" toggle selected.

Steps to Reproduce:

  1. Select "Contributors" in browse options dropdown.

  2. Input query in browse input field which matches "110" linked field value of "MARC bibliographic" record (for example: "Beatles").

  3. Click at "Search" button.

  4. Click on the highlighted in bold contributor name, which has "MARC authority" app icon.

  5. Click on the "Actions" button placed in the third pane, select "Edit MARC bibliographic record" option.

  6. Click at "Unlink from MARC authority record" to the right of "110" field → Click at "Unlink" button in modal → Click at "Save & close" button.

  7. Select "Browse" in "Search|Browse" toggle.

  8. Select "Contributors" in browse options dropdown.

  9. Input query in browse input field which matches the value in unlinked "110" field of "MARC bibliographic" record (for example: "Beatles").

  10. Click at "Search" button.

Expected Results:

  • Contributor entries list shown in second pane.

  • "Contributor" value which matches browse input query shown in bold text.

  • "Contributor" value which matches browse input query does NOT have "MARC authority" icon to the left of it.

Actual Results:

  • Contributor entries list shown in second pane.

  • "Contributor" value which matches browse input query shown in bold text.

  • "Contributor" value which matches browse input query still has "MARC authority" icon to the left of it.

Additional Information:

  • Please see attached screencasts:

    •  

  • If you reload the page, icon is removed as appropriate

  • The same is reproduced for when the icon should be added

  • Issue is also reproduced for Subject values

  • If browse query is not changed and "Search" button is clicked, results not updated at all (not just authority icon)  even if changes were made - in case if no updates were made in the same tab (for example, if you perform Browse in one tab, and update the record in second tab)

Interested parties: ,  

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

9
  • 16 Mar 2023, 03:46 PM
  • 16 Mar 2023, 03:46 PM
  • 15 Mar 2023, 03:36 PM
  • 15 Mar 2023, 03:36 PM
  • 15 Mar 2023, 03:35 PM
  • 03 Mar 2023, 08:10 AM
  • 03 Mar 2023, 08:10 AM
  • 03 Mar 2023, 08:08 AM
  • 03 Mar 2023, 08:08 AM

Checklist

hide

TestRail: Results

Activity

Show:

Valery_Pilko March 16, 2023 at 3:50 PM

Verified on Orchid Bugfest environment - works as expected.
See attached screencasts:

JenkinsNotifications March 15, 2023 at 11:02 PM

Deployed to Orchid bf env. Moved status to In bugfix review from status Awaiting deployment. Please proceed with verification

Yauhen Viazau March 15, 2023 at 3:40 PM

Verified on Snapshot-2 - issue is fixed

Results correctly updated in Browse → Subjects/Contributors if field was linked/unlinked/deleted (no page reload required).

Please see attached screencasts as examples:

  •  

- the following is still reproducible (not exactly in scope of this issue):

  • If browse query is not changed and "Search" button is clicked, results not updated at all (not just authority icon)  even if changes were made - in case if no updates were made in the same tab (for example, if you perform Browse in one tab, and update the record in second tab)

Do you think we should create a separate story/bug for this, or such behavior is appropriate?

Denys Bohdan March 15, 2023 at 11:56 AM

yes it should be fixed

Yauhen Viazau March 13, 2023 at 6:53 AM
Edited

Issue is also reproduced when corresponding field is deleted from record (value is still shown in results list until page reload).

- will this be fixed in scope of this bug?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Orchid (R1 2023) Bug Fix

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created March 3, 2023 at 8:07 AM
Updated March 23, 2023 at 4:41 PM
Resolved March 15, 2023 at 5:18 PM
TestRail: Cases
TestRail: Runs