@@ -, +, @@ record --- koha-tmpl/intranet-tmpl/js/browser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/js/browser.js +++ a/koha-tmpl/intranet-tmpl/js/browser.js @@ -81,9 +81,10 @@ 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 && me.curPos + me.offset === me.searchCookie.pagelen - 1) { nextbutton = '' + BROWSER_NEXT + ' »'; - } else { + } + else { nextbutton = '' + BROWSER_NEXT + ' »'; } $('#menu').before('
' + prevbutton + nextbutton + '
'); --