Bug 19502: Limit pagination to first 10000 results when using ES
authorNick Clemens <nick@bywatersolutions.com>
Fri, 16 Mar 2018 11:10:37 +0000 (11:10 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 12 Jul 2018 13:04:20 +0000 (13:04 +0000)
commitcc131475eda2871afa2e5a4cf8f6f7191af06b31
treed5b5ddcb63a39224d27ef4edf1ccf47c1e03e569
parent2414a4e7056656843696aca19a75acebb577745a
Bug 19502: Limit pagination to first 10000 results when using ES

This patch is to avoid hitting an error page. We should eventually make the
max number returned configurable for ES.

To test:
1 - Have Koha running ES with 10,000+ records
2 - Search for '*'
3 - Click 'Last' to view last page of results
4 - 'Cannot perform search' error
5 - Apply patch
6 - Search again
7 - View 'Last' page
8 - No error, you go to the last of 10000
9 - Note the warning above the pagination buttons

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
catalogue/search.pl
koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
koha-tmpl/opac-tmpl/bootstrap/en/includes/page-numbers.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/search/page-numbers.inc
opac/opac-search.pl