Bug 28324 - Pagination displays weirdly when there are more than 10 pages
Summary: Pagination displays weirdly when there are more than 10 pages
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-12 00:02 UTC by Aleisha Amohia
Modified: 2021-08-27 03:34 UTC (History)
1 user (show)

See Also:
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 (12.57 KB, image/png)
2021-05-12 00:02 UTC, Aleisha Amohia
Details
Pagination expands to show 20 pages (15.65 KB, image/png)
2021-05-12 00:02 UTC, Aleisha Amohia
Details

Note You need to log in before you can comment on or make changes to this bug.
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