|
Lines 95-110
KOHA.browser = function (searchid, biblionumber) {
Link Here
|
| 95 |
var prevbutton; |
95 |
var prevbutton; |
| 96 |
var nextbutton; |
96 |
var nextbutton; |
| 97 |
if (me.curPos === 0 && current_search.offset === 1) { |
97 |
if (me.curPos === 0 && current_search.offset === 1) { |
| 98 |
prevbutton = '<span id="browse-previous" class="browse-button">« ' + BROWSER_PREVIOUS + '</span>'; |
98 |
prevbutton = '<span id="browse-previous" class="browse-button" title="' + BROWSER_PREVIOUS + '"><i class="fa fa-arrow-left"></i></span>'; |
| 99 |
} else { |
99 |
} else { |
| 100 |
prevbutton = '<a href="#" id="browse-previous" class="browse-button">« ' + BROWSER_PREVIOUS + '</a>'; |
100 |
prevbutton = '<a href="#" id="browse-previous" class="browse-button" title="' + BROWSER_PREVIOUS + '"><i class="fa fa-arrow-left"></i></a>'; |
| 101 |
} |
101 |
} |
| 102 |
if (current_search.offset + me.curPos == current_search.total) { |
102 |
if (current_search.offset + me.curPos == current_search.total) { |
| 103 |
nextbutton = '<span id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</span>'; |
103 |
nextbutton = '<span id="browse-next" class="browse-button" title="' + BROWSER_NEXT + '"><i class="fa fa-arrow-right"></i></span>'; |
| 104 |
} else { |
104 |
} else { |
| 105 |
nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>'; |
105 |
nextbutton = '<a href="#" id="browse-next" class="browse-button" title="' + BROWSER_NEXT + '"><i class="fa fa-arrow-right"></i></a>'; |
| 106 |
} |
106 |
} |
| 107 |
$('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="searchwithcontext">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>'); |
107 |
$('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="searchwithcontext"><i class="fa fa-list"></i> ' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>'); |
| 108 |
$('a#browse-previous').click(function (ev) { |
108 |
$('a#browse-previous').click(function (ev) { |
| 109 |
ev.preventDefault(); |
109 |
ev.preventDefault(); |
| 110 |
browseRecords(-1); |
110 |
browseRecords(-1); |