Timesaver Mod
-
I love WebLibrarian, but I found having to click “Circulation Desk”, then click the barcode input box, then scan the barcode, then click “Lookup Barcode”, then select Patron, then click “Lookup Patron” then finally click “Checkout Item” to be too many steps to simply check out a book. So I added a little simple jQuery to speed things up. Just add:
jQuery('#barcode').focus(); jQuery('#barcode').keypress(function (e) { var key = e.which; if(key == 13) // the enter key code { jQuery('input[name = barcodelookup]').click(); return false; } }); jQuery('#patronid').change(function() { jQuery('input[name = patronlookup]').click(); return false; });
right before the last
});
at the bottom of the file /wp-content/plugins/weblibrarian/js/admin.jsWhat this does:
1. Focus is automatically placed in the “Scanned Barcode” field when the Circ desk page is loaded.
2. When you use a barcode scanner to enter the barcode, it automatically clicks the “Barcode Lookup” button (this won’t work if your barcode scanner doesn’t emulate pressing the “enter” key after outputting the barcode, but most scanners do this).
3. Finally, when a patron id is selected, “Lookup Patron” is automatically clicked.
So to check out a book, you can now click “Circulation Desk”, scan your barcode, select your patron, and click “Checkout Item” without the intermediate clicks.
Hope this helps someone.
- The topic ‘Timesaver Mod’ is closed to new replies.