Pagination buttons: add dot dot dot (...) to indicate there are more results than shown
12510
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 ( http://api.gbif.org/portal-web-dynamic/species/search?q=Plantae )
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 "..." ]]>
Author: kbraak@gbif.org
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.
Or
First, 1, 2, Last Depending if we want to always show First and Last.
Author: mdoering@gbif.org
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
Author: mdoering@gbif.org
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:
http://staging.gbif.org:8080/portal-web-dynamic/species/search?q=Fisher%2C+1933
Author: mdoering@gbif.org
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:
http://staging.gbif.org:8080/portal-web-dynamic/species/search?q=Fisher%2C+1933&dataset_key=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c
Author: kbraak@gbif.org
Created: 2012-12-18 14:20:32.318
Updated: 2012-12-18 14:20:32.318
http://staging.gbif.org:8080/portal-web-dynamic/species/search?q=Fisher%2C+1933&DATASET_KEY=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c
Just tried on a different browser (Chromse vs Firefox) with same result.
Author: kbraak@gbif.org
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)
Link: http://staging.gbif.org:8080/portal-web-dynamic/occurrence/search?TAXON_KEY=2435099
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 [~mdoering@gbif.org]?
Author: mdoering@gbif.org
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
Author: kbraak@gbif.org
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):
http://staging.gbif.org:8080/portal-web-dynamic/occurrence/search?TAXON_KEY=2435099&offset=7080
There are 4 paging buttons shown: First, 707, 708, Last
Click button 707:
http://staging.gbif.org:8080/portal-web-dynamic/occurrence/search?TAXON_KEY=2435099&offset=7060
Notice there are now 5 paging buttons shown: First, 352, 353, 354, Last.
It should be First, 706, 707, 708, Last
Author: mdoering@gbif.org
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:
http://staging.gbif.org:8080/occurrence-ws/occurrence/search?TAXON_KEY=2435099&limit=20&offset=7080
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
Author: mdoering@gbif.org
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