@@ -, +, @@
record
---
koha-tmpl/intranet-tmpl/js/browser.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/koha-tmpl/intranet-tmpl/js/browser.js
+++ a/koha-tmpl/intranet-tmpl/js/browser.js
@@ -81,7 +81,7 @@ KOHA.browser = function (searchid, biblionumber) {
} else {
prevbutton = '« ' + BROWSER_PREVIOUS + '';
}
- if (me.curPos === me.searchCookie.results.length && me.searchCookie.total == me.curPos + me.searchCookie.offset) {
+ if (me.curPos === me.searchCookie.pagelen - 1) {
nextbutton = '' + BROWSER_NEXT + ' »';
} else {
nextbutton = '' + BROWSER_NEXT + ' »';
--