Pager area reports incorrect number of items when mini pager is selected

Created on 27 February 2024, 10 months ago

Problem/Motivation

Getting back incorrect pager totals when using the mini pager. I get a value of page_number * number_of_items per page + 1 for the number of results when the mini pager is utilised.

From investigation it relies on pager to inform what the result count is and mini pager does not have this data.

When I initially tested the module it did appear to work with mini-pager but I think I only had 2 pages of results so perhaps that worked. Now that I have 5 pages of data it is not reporting back on total number of items.

The fix is to use the full pager but this should be advised to the end user when setting up.

Steps to reproduce

1. Use the Mini Pager for the view when utilising `Serializer with pagination, facets, and extra metadata` for a view with many pages

Proposed resolution

1. Add a README.md document or have a warning on the view page when configuring the view.

I am happy to implement a fix or improvement - let me know what you would prefer.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia RichardGaunt Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024