Browse: focus wasn't switched to the first result, after clicking "Next" from the first page

Description

Overview: In Search for marc authority plug-in (Browse only): focus doesn't switch to the first record, after clicking on the "Next" pagination button from the first page with results (when "Previous" button is disabled).
This issue doesn't reproduce when user switches between pages not from the first browse page. 
Steps to Reproduce:

  1. Log into Orchid environment as User with the following permissions:
    Inventory: All permissions
    MARC Authority: View MARC authority record
    quickMARC: View, edit MARC authorities record
    quickMARC: View, edit MARC bibliographic record
    quickMARC: Can Link/unlink authority records to bib records

  2. Opened the "MARC Authority plug-in" by clicking on the "Link to MARC Authority record" icon at the editing window of "MARC Bibliographic" record.

  3. Selected "Browse" toggle

  4. Select any browse option from dropdown list

  5. Cancel the applied "Authority source" facet by clicking on the "X" icon next to the "Authority source" accordion button.

  6. Fill in the input field placed at the "Search & filter" pane with the search query, which will return first record from the list (for example: "1", the "Previous" button should be disabled in the result list)

  7.  Click on the "Search" button

  8. Scroll down to the end of the result list

  9. Click "Next" pagination button

Expected Results: 

  • Another page with records is being displayed on the result list.

  • The focus was switched to the first record of the result list.

**

Actual Results:  Next page with records is being displayed on the result list, but focus switched to the random list record.
Additional Information:
URL: https://bugfest-orchid.int.aws.folio.org/
Interested parties:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

3

Checklist

hide

TestRail: Results

Activity

Show:

Yauhen Viazau May 11, 2023 at 3:56 PM

Verified on Snapshot-2 - works as expected

Please see attached screencast as an example:

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Poppy (R2 2023)

RCA Group

Implementation coding issue

Affected releases

Orchid (R1 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created March 17, 2023 at 10:17 AM
Updated October 3, 2023 at 3:32 PM
Resolved May 16, 2023 at 12:08 PM
TestRail: Cases
TestRail: Runs