Pagination feature on Results page

Closes T399974

Note: This implementation does not change the query fetching mechanism. Maximum number of results fetched is limited to 200 only. Kindly let me know if I should modify it.

I implement splicing of the search_results for pagination

Changes made:

  1. Creation of Previous and Next button. Both on Author and Works Results page. On the first page, "Previous" button remains disabled, and likewise on the last page, "Next" remains disabled.
  2. If someone tries to enter a page no. which is a negative number, of a number greater than the total no of pages, they are redirected to first and last page respectively.
  3. No. of results per page is limited to 10.
  4. The button design is coherent with the rest of the elements on the page.

Screencast_from_2025-10-10_14-53-43

Edited by Shreya-bhagat

Merge request reports

Loading