[open-ils-commits] r18424 - branches/rel_2_0/Open-ILS/web/opac/extras/selfcheck (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 20 16:15:38 EDT 2010
Author: phasefx
Date: 2010-10-20 16:15:33 -0400 (Wed, 20 Oct 2010)
New Revision: 18424
Modified:
branches/rel_2_0/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
Log:
don't allow inactive cards with web-selfcheck
Modified: branches/rel_2_0/Open-ILS/web/opac/extras/selfcheck/selfcheck.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2010-10-20 20:15:01 UTC (rev 18423)
+++ branches/rel_2_0/Open-ILS/web/opac/extras/selfcheck/selfcheck.js 2010-10-20 20:15:33 UTC (rev 18424)
@@ -224,6 +224,15 @@
$('selfck-patron-login-input').select();
return;
}
+ for (var i =0; i < patron.cards().length; i++) {
+ if (patron.cards()[i].barcode() == barcode) {
+ if (!isTrue(patron.cards()[i].active())) {
+ unHideMe($('selfck-patron-not-found'));
+ $('selfck-patron-login-input').select();
+ return;
+ }
+ }
+ }
$('selfck-patron-login-input').value = ''; // reset the input
hideMe($('selfck-patron-login-container'));
More information about the open-ils-commits
mailing list