[open-ils-commits] r12281 - trunk/Open-ILS/web/opac/skin/default/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 24 12:16:23 EST 2009
Author: erickson
Date: 2009-02-24 12:16:20 -0500 (Tue, 24 Feb 2009)
New Revision: 12281
Modified:
trunk/Open-ILS/web/opac/skin/default/js/holds.js
Log:
if the staff client provides the OPAC with a patron's barcode, bypass the barcode entry form
Modified: trunk/Open-ILS/web/opac/skin/default/js/holds.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/holds.js 2009-02-24 17:06:30 UTC (rev 12280)
+++ trunk/Open-ILS/web/opac/skin/default/js/holds.js 2009-02-24 17:16:20 UTC (rev 12281)
@@ -12,6 +12,10 @@
var noEmailMessageXUL;
function holdsHandleStaff() {
+
+ // if we know the recipient's barcode, use it
+ if(xulG.patron_barcode) return _holdsHandleStaff();
+
swapCanvas($('xulholds_box'));
$('xul_recipient_barcode').focus();
$('xul_recipient_barcode').onkeypress = function(evt)
@@ -38,7 +42,7 @@
}
function _holdsHandleStaff() {
- var barcode = $('xul_recipient_barcode').value;
+ var barcode = xulG.patron_barcode || $('xul_recipient_barcode').value;
var user = grabUserByBarcode( G.user.session, barcode );
var evt;
More information about the open-ils-commits
mailing list