|
Lines 32-40
KOHA.browser = function (searchid, biblionumber) {
Link Here
|
| 32 |
var browseRecords = function (movement) { |
32 |
var browseRecords = function (movement) { |
| 33 |
var newSearchPos = me.curPos + movement; |
33 |
var newSearchPos = me.curPos + movement; |
| 34 |
if (newSearchPos > current_search.results.length - 1) { |
34 |
if (newSearchPos > current_search.results.length - 1) { |
| 35 |
window.location = '/cgi-bin/koha/catalogue/search.pl?' + decodeURIComponent(current_search.query) + '&limit=' + decodeURIComponent(current_search.limit) + '&sort_by=' + current_search.sort + '&gotoPage=detail.pl&gotoNumber=first&searchid=' + me.searchid + '&offset=' + newSearchPos; |
35 |
window.location = '/cgi-bin/koha/catalogue/search.pl?' + current_search.query + '&limit=' + current_search.limit + '&sort_by=' + current_search.sort + '&gotoPage=detail.pl&gotoNumber=first&searchid=' + me.searchid + '&offset=' + newSearchPos; |
| 36 |
} else if (newSearchPos < 0) { |
36 |
} else if (newSearchPos < 0) { |
| 37 |
window.location = '/cgi-bin/koha/catalogue/search.pl?' + decodeURIComponent(current_search.query) + '&limit=' + decodeURIComponent(current_search.limit) + '&sort_by=' + current_search.sort + '&gotoPage=detail.pl&gotoNumber=last&searchid=' + me.searchid + '&offset=' + (me.offset - current_search.pagelen); |
37 |
window.location = '/cgi-bin/koha/catalogue/search.pl?' + current_search.query + '&limit=' + current_search.limit + '&sort_by=' + current_search.sort + '&gotoPage=detail.pl&gotoNumber=last&searchid=' + me.searchid + '&offset=' + (me.offset - current_search.pagelen); |
| 38 |
} else { |
38 |
} else { |
| 39 |
window.location = window.location.href.replace('biblionumber=' + biblionumber, 'biblionumber=' + current_search.results[newSearchPos]); |
39 |
window.location = window.location.href.replace('biblionumber=' + biblionumber, 'biblionumber=' + current_search.results[newSearchPos]); |
| 40 |
} |
40 |
} |
|
Lines 81-87
KOHA.browser = function (searchid, biblionumber) {
Link Here
|
| 81 |
|
81 |
|
| 82 |
$(document).ready(function () { |
82 |
$(document).ready(function () { |
| 83 |
if (me.curPos > -1) { |
83 |
if (me.curPos > -1) { |
| 84 |
var searchURL = '/cgi-bin/koha/catalogue/search.pl?' + current_search.query + '&limit=' + decodeURIComponent(current_search.limit) + '&sort_by=' + current_search.sort + '&searchid=' + me.searchid + '&offset=' + me.offset; |
84 |
var searchURL = '/cgi-bin/koha/catalogue/search.pl?' + current_search.query + '&limit=' + current_search.limit + '&sort_by=' + current_search.sort + '&searchid=' + me.searchid + '&offset=' + me.offset; |
| 85 |
var prevbutton; |
85 |
var prevbutton; |
| 86 |
var nextbutton; |
86 |
var nextbutton; |
| 87 |
if (me.curPos === 0 && parseInt(current_search.offset) === 1) { |
87 |
if (me.curPos === 0 && parseInt(current_search.offset) === 1) { |
|
Lines 116-122
KOHA.browser = function (searchid, biblionumber) {
Link Here
|
| 116 |
me.show_back_link = function () { |
116 |
me.show_back_link = function () { |
| 117 |
if (current_search) { |
117 |
if (current_search) { |
| 118 |
$(document).ready(function () { |
118 |
$(document).ready(function () { |
| 119 |
var searchURL = '/cgi-bin/koha/catalogue/search.pl?' + decodeURIComponent(current_search.query) + '&limit=' + decodeURIComponent(current_search.limit) + '&sort_by=' + current_search.sort + '&searchid=' + me.searchid; |
119 |
var searchURL = '/cgi-bin/koha/catalogue/search.pl?' + current_search.query + '&limit=' + current_search.limit + '&sort_by=' + current_search.sort + '&searchid=' + me.searchid; |
| 120 |
$('#previous_search_link').replaceWith('<div><div class="browse-label"><a href="' + searchURL + '"><i class="fa fa-list"></i> ' + __("Go back to the results") + '</a></div></div>'); |
120 |
$('#previous_search_link').replaceWith('<div><div class="browse-label"><a href="' + searchURL + '"><i class="fa fa-list"></i> ' + __("Go back to the results") + '</a></div></div>'); |
| 121 |
}); |
121 |
}); |
| 122 |
} |
122 |
} |
| 123 |
- |
|
|