Resolve T399974 "Results pagination"
Results Pagination
Summary:
This PR introduces a reusable pagination utility that has been integrated into both the list of works by an author and the main search results. The goal is to enhance usability, ensure smoother data presentation, and prevent overwhelming users with long lists.
Files Modified:
| File Path | Purpose |
|---|---|
| /app.py | Integrated the results and works_list routes with the new pagination utility. |
| /utils.py | Implemented the core paginate_results utility function to handle pagination logic. |
| /templates/works_list.html | Updated markup to include pagination controls (page numbers, next/previous buttons, and jump-to-page input). |
| /templates/results.html | Updated markup to include pagination controls (page numbers, next/previous buttons, and jump-to-page input). |
| /templates/layout.html | Added a JavaScript script to handle the "Go to Page" feature, which allows for direct navigation to specific pages. |
Before:
- Main Search Results
- List of Works by Mary Shelley
Now:
- Main Search Results
- List of Works by Mary Shelley



