View | Details | Raw Unified | Return to bug 12481
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/js/browser.js (-2 / +3 lines)
Lines 77-82 KOHA.browser = function (searchid, biblionumber) { Link Here
77
                    var searchURL = '/cgi-bin/koha/catalogue/search.pl?' + decodeURIComponent(me.searchCookie.query) + '&limit=' + decodeURIComponent(me.searchCookie.limit) + '&sort=' + me.searchCookie.sort + '&searchid=' + me.searchid + '&offset=' + me.offset;
77
                    var searchURL = '/cgi-bin/koha/catalogue/search.pl?' + decodeURIComponent(me.searchCookie.query) + '&limit=' + decodeURIComponent(me.searchCookie.limit) + '&sort=' + me.searchCookie.sort + '&searchid=' + me.searchid + '&offset=' + me.offset;
78
                    var prevbutton;
78
                    var prevbutton;
79
                    var nextbutton;
79
                    var nextbutton;
80
                    var returnbutton;
81
returnbutton = '<div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="browse-button">' + BROWSER_RETURN_TO_SEARCH + '</a></div>';
80
                    if (me.curPos === 0 && me.searchCookie.offset === 1) {
82
                    if (me.curPos === 0 && me.searchCookie.offset === 1) {
81
                        prevbutton = '<span id="browse-previous" class="browse-button">« ' + BROWSER_PREVIOUS + '</span>';
83
                        prevbutton = '<span id="browse-previous" class="browse-button">« ' + BROWSER_PREVIOUS + '</span>';
82
                    } else {
84
                    } else {
Lines 87-93 KOHA.browser = function (searchid, biblionumber) { Link Here
87
                    } else {
89
                    } else {
88
                        nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>';
90
                        nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>';
89
                    }
91
                    }
90
                    $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="browse-button">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>');
92
                    $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"></div>' +returnbutton + '<div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>');
91
                    $('a#browse-previous').click(function (ev) {
93
                    $('a#browse-previous').click(function (ev) {
92
                        ev.preventDefault();
94
                        ev.preventDefault();
93
                        browseRecords(-1);
95
                        browseRecords(-1);
94
- 

Return to bug 12481