precedingRecordsCount is ignored while browsing

Description

Overview:
The value of precedingRecordsCount is being ignored and the match always defaults to limit/2. This works ok if the limit is small (like 10 records) but if the limit is set to 100 then the user will need to scroll down a lot to see the match.

Steps to Reproduce:
https://folio-snapshot-2-okapi.dev.folio.org:443/browse/call-numbers/instances?precedingRecordsCount=1&highlightMatch=true&limit=100&query=callNumber%3E%3Ddk1%20or%20callNumber%3Cdk1

Expected Results:
The match will be fifth
Actual Results:
totalRecords is five and the match is always third

Additional Information:
If the total record count is less than the precedingRecordsCount, the value should default to number for records/2
URL:
Interested parties:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Magda ZacharskaMarch 18, 2022 at 7:01 PM

In the snapshot environment there is not enough data. I have verified in Lotus snapshot and it works as expected.

Cannot Reproduce

Details

Assignee

Reporter

Priority

Development Team

Falcon

Release

Lotus (R1 2022) Bug Fix

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created March 15, 2022 at 7:09 PM
Updated March 18, 2022 at 7:01 PM
Resolved March 18, 2022 at 7:01 PM
TestRail: Cases
TestRail: Runs