Issue 17905

Dataset search: paging broken when using facet

17905
Reporter: kbraak
Type: Bug
Summary: Dataset search: paging broken when using facet
Priority: Critical
Resolution: CantReproduce
Status: Closed
Created: 2015-10-21 14:45:36.034
Updated: 2017-10-10 11:10:48.386
Resolved: 2017-10-10 11:10:01.226
        
Description: To reproduce the issue:

Do a dataset search for "ILS"

http://www.gbif.org/dataset/search?q=ILS

Today there are 74 results. 20 per page, 4 pages. So that's working fine.

Then filter by HOST "Israel Nature and Parks Auth.." (facet on right sidebar)

http://www.gbif.org/dataset/search?q=ILS&hosting_org=4f160e00-329d-11d9-8439-b8a03c50a862

Today there are 22 results. 20 per page, 2 pages of results. So that's working fine.

Then, click on "Last" button, and you get 2 results. That's also fine.

But you'll see there are now 4 pages of results (First, 9, 10, Last) to choose from which is wrong.

Click on "10" and you get (First, 4, 5, Last)

Click on "9" and you get (First, 2, 3, Last) ]]>
    


Author: hoefft
Comment: I remember this indeed failed at the time. It was concluded that it was an API issue. I haven't seen it since and the example works
Created: 2017-10-10 11:10:48.386
Updated: 2017-10-10 11:10:48.386