Issue 12510

Pagination buttons: add dot dot dot (...) to indicate there are more results than shown

Reporter: kbraak
Assignee: mdoering
Type: Improvement
Summary: Pagination buttons: add dot dot dot (...) to indicate there are more results than shown
Environment: Firefox 17.0.1 Mac OS X
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-12-06 17:56:18.693
Updated: 2013-08-29 14:45:58.615
Resolved: 2012-12-19 22:19:42.401
Description: See the attached screenshot showing the pagination buttons for the species search results page for "Plantae with 4,530,441 results ( )

Without looking at the number of search results, one would think there are only 5 pages of results: First, 2, 3, 4, and Last.

Therefore, in order to indicate there are many more pages than the default number shown:

When looking at the first page:

If there are more than 5 pages of results, separate button 4, and button Last with "..."

When looking at the last page:

If there are more than 5 pages of results, separate button First, and the button in position 2, with "..."

When looking at some middle page (button in position 3 for example):

If there are more than 5 pages of results, separate the button First, and the button in position 2, with "..." AND separate the button Last, and the button in position 4, with "..." ]]>

Attachment Screen Shot 2012-12-06 at 5.44.42 PM.png

Attachment Screen Shot 2012-12-18 at 2.08.50 PM.png

Attachment Screen Shot 2012-12-18 at 3.02.13 PM.png

Attachment Screen Shot 2012-12-18 at 3.02.24 PM.png

Attachment Screen Shot 2012-12-18 at 3.28.07 PM.png

Created: 2012-12-17 18:21:47.997
Updated: 2012-12-17 18:21:47.997

Comment: Reopening. 
Created: 2012-12-18 14:11:53.397
Updated: 2012-12-18 14:11:53.397

Created: 2012-12-18 14:15:14.783
Updated: 2012-12-18 14:15:14.783
There are 24 results that match my species search for "Fisher, 1933".

The paging buttons that appear are:

First, 2, 1, Last

This should be either:

1, 2 OR First, Last.


First, 1, 2, Last Depending if we want to always show First and Last. 

Comment: Why did you reopen the issue? I just saw the proposal also wanted to see ... after the First button, but I would prefer to not do that. It's obvious from the page numbers and the ... clusters the design in my opinion and also increases the width which can get a problem with high page numbers in occurrence searches for example when you are in the thousandth or even ten thousandth page
Created: 2012-12-18 14:15:41.854
Updated: 2012-12-18 14:15:41.854

Created: 2012-12-18 14:18:46.469
Updated: 2012-12-18 14:18:46.469
Oh, thats a reason indeed.
Hm, can you paste a link please?

My search on staging returns 56 usages and shows the expected pages First,2,Last:

Created: 2012-12-18 14:19:21.245
Updated: 2012-12-18 14:19:21.245
Ah, limited to the nub of course. Yes, indeed broken:

Created: 2012-12-18 14:20:32.318
Updated: 2012-12-18 14:20:32.318

Just tried on a different browser (Chromse vs Firefox) with same result.

Created: 2012-12-18 14:31:31.709
Updated: 2012-12-18 14:31:31.709

Created: 2012-12-18 15:33:00.448
Updated: 2012-12-18 15:33:00.448
Please take a look at the 3 screenshots showing the First, Last, and 6th pages from the following occurrence search:

7,090 results filter by SCIENTIFIC NAME Puma concolor (Linnaeus, 1771)


The first page looks great.

The last page, I wonder why there are only 4 buttons: First, 707, 708, Last. Whey not: First, ... 704, 705, 706, 707, 708, Last ?

The 6th page, I think there should be a "..." between buttons First and 4, so that it looks like: First, ... 4, 5, 6, 7, 8 ... , Last.

What do you think []?

Created: 2012-12-18 15:38:43.213
Updated: 2012-12-18 15:38:43.213
Like I said above I'd prefer to not have dots after First - its obvious from the page number, doesnt look good and eats up space that might be needed for higher page numbers.

Having less page links when close to the end is sth I didnt implement - but would make sense indeed. Will try to add that

Created: 2012-12-19 14:32:52.25
Updated: 2012-12-19 14:32:52.25
Sorry, I think this needs to be reopened again.

Visit the last page (open link below):

There are 4 paging buttons shown: First, 707, 708, Last

Click button 707:

Notice there are now 5 paging buttons shown: First, 352, 353, 354, Last.

It should be First, 706, 707, 708, Last 

Created: 2012-12-19 22:13:54.888
Updated: 2012-12-19 22:19:17.141
wicket. The 3 hundreds are actually correct as there are 7.090 records in the result and 20 shown per page, the last page is wrong.
Looks to me like the search itself might be wrong, indeed:

Even though the request uses a limit of 20, the response says the limit was 10! Therefore the different number of total pages expected.
Created a new occurrence issue OCC-173 for this. Closing this one again

Comment: is an occurrence search issue, not a UI paging one
Created: 2012-12-19 22:19:42.422
Updated: 2012-12-19 22:19:42.422