keybord shortcuts for circulation
authorMarijana Glavica <mglavica@ffzg.hr>
Tue, 26 Jun 2012 11:39:36 +0000 (13:39 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 Mar 2019 14:43:14 +0000 (15:43 +0100)
koha-tmpl/intranet-tmpl/prog/js/staff-global.js

index d86b994..c6fa5c8 100644 (file)
@@ -44,6 +44,11 @@ $.fn.selectTabByID = function (tabID) {
     if($("#header_search #catalog_search").length > 0){ shortcut.add('Alt+q',function (){ $("#header_search").selectTabByID("#catalog_search"); $("#search-form").focus(); }); } else { shortcut.add('Alt+q',function(){ location.href="/cgi-bin/koha/catalogue/search.pl"; }); }
     if($("#header_search #renew_search").length > 0){ shortcut.add('Alt+w',function (){ $("#header_search").selectTabByID("#renew_search"); $("#ren_barcode").focus(); }); } else { shortcut.add('Alt+w',function(){ location.href="/cgi-bin/koha/circ/renew.pl"; }); }
 
+       // FFZG customized shortcuts (both z and y for different keyboard mappings)
+    if($("#header_search #circ_search").length > 0){ shortcut.add('Alt+z',function (){ $("#header_search").selectTabByID("#circ_search"); $("#findborrower").focus(); }); } else { shortcut.add('Alt+z',function(){ location.href="/cgi-bin/koha/circ/circulation.pl"; }); }
+    if($("#header_search #circ_search").length > 0){ shortcut.add('Alt+y',function (){ $("#header_search").selectTabByID("#circ_search"); $("#findborrower").focus(); }); } else { shortcut.add('Alt+y',function(){ location.href="/cgi-bin/koha/circ/circulation.pl"; }); }
+    if($("#header_search #catalog_search").length > 0){ shortcut.add('Alt+k',function (){ $("#header_search").selectTabByID("#catalog_search"); $("#search-form").focus(); }); } else { shortcut.add('Alt+k',function(){ location.href="/cgi-bin/koha/catalogue/search.pl"; }); }
+
     $("#header_search > ul > li").show();
 
     $(".focus").focus();