Lines 1-3
Link Here
|
|
|
1 |
/* global BROWSER_PREVIOUS BROWSER_NEXT BROWSER_RETURN_TO_SEARCH */ |
2 |
|
1 |
if ( KOHA === undefined ) var KOHA = {}; |
3 |
if ( KOHA === undefined ) var KOHA = {}; |
2 |
|
4 |
|
3 |
KOHA.browser = function (searchid, biblionumber) { |
5 |
KOHA.browser = function (searchid, biblionumber) { |
Lines 70-76
KOHA.browser = function (searchid, biblionumber) {
Link Here
|
70 |
if ( ev.which == 2 || ev.which == 1 && ev.ctrlKey ) { |
72 |
if ( ev.which == 2 || ev.which == 1 && ev.ctrlKey ) { |
71 |
// Middle click or ctrl + click |
73 |
// Middle click or ctrl + click |
72 |
ev.preventDefault(); |
74 |
ev.preventDefault(); |
73 |
var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' ) |
75 |
var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' ); |
74 |
newwindow.blur(); |
76 |
newwindow.blur(); |
75 |
window.focus(); |
77 |
window.focus(); |
76 |
} else if ( ev.which == 1 ) { |
78 |
} else if ( ev.which == 1 ) { |
Lines 102-108
KOHA.browser = function (searchid, biblionumber) {
Link Here
|
102 |
} else { |
104 |
} else { |
103 |
nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>'; |
105 |
nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>'; |
104 |
} |
106 |
} |
105 |
$('#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 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">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>'); |
106 |
$('a#browse-previous').click(function (ev) { |
108 |
$('a#browse-previous').click(function (ev) { |
107 |
ev.preventDefault(); |
109 |
ev.preventDefault(); |
108 |
browseRecords(-1); |
110 |
browseRecords(-1); |