Bug 28324

Summary: Pagination displays weirdly when there are more than 10 pages
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: hayleypelham
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Pagination not shifting along
Pagination expands to show 20 pages

Description Aleisha Amohia 2021-05-12 00:02:12 UTC
Created attachment 120854 [details]
Pagination not shifting along

I've attached screenshots to display the weird behaviour. The screenshots are only showing this problem in OPAC search results, but the same thing happens in the staff client search results, and in the staff client staged marc management, and probably any tables that use this pagination.

When there is a table that returns more than 10 results, we see pagination with links to pages 1 to 10. As you click along the page links from 1-9, the pagination doesn't shift along as you might expect it to. For example, clicking on page 9, the pagination still only shows pages 1-10, whereas I would expect it to show pages 5-15 with page 9 in the middle. This is the first problem.

The second problem is when you are viewing page 10, the pagination expands to show pages 1-21 with page 10 in the middle. When you click page 15, the pagination would expand to show pages 5-26 for example. So this time, the pagination is shifting along but it's showing links to 20 pages which is far too many. I expect it to show only 10 pages always. This is the second problem.
Comment 1 Aleisha Amohia 2021-05-12 00:02:30 UTC
Created attachment 120855 [details]
Pagination expands to show 20 pages
Comment 2 Hayley Pelham 2021-08-27 03:34:24 UTC
I can confirm this is an annoying display issue