@@ -, +, @@
- Perform a catalog search in the staff client.
- Click on one of the search results.
- On the bibliographic detail page there should be results browsing
controls in the left-hand sidebar.
- Resize the browser window and confirm that the controls work well
at various sizes.
- Test with both the first and last search result.
---
koha-tmpl/intranet-tmpl/js/browser.js | 6 +-
.../intranet-tmpl/prog/css/src/staff-global.scss | 78 ++++++++++++++--------
.../prog/en/modules/catalogue/results.tt | 2 +-
3 files changed, 57 insertions(+), 29 deletions(-)
--- a/koha-tmpl/intranet-tmpl/js/browser.js
+++ a/koha-tmpl/intranet-tmpl/js/browser.js
@@ -1,3 +1,5 @@
+/* global BROWSER_PREVIOUS BROWSER_NEXT BROWSER_RETURN_TO_SEARCH */
+
if ( KOHA === undefined ) var KOHA = {};
KOHA.browser = function (searchid, biblionumber) {
@@ -70,7 +72,7 @@ KOHA.browser = function (searchid, biblionumber) {
if ( ev.which == 2 || ev.which == 1 && ev.ctrlKey ) {
// Middle click or ctrl + click
ev.preventDefault();
- var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' )
+ var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' );
newwindow.blur();
window.focus();
} else if ( ev.which == 1 ) {
@@ -102,7 +104,7 @@ KOHA.browser = function (searchid, biblionumber) {
} else {
nextbutton = '' + BROWSER_NEXT + ' ยป';
}
- $('#menu').before('