[open-ils-commits] r11848 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 15 13:25:06 EST 2009
Author: phasefx
Date: 2009-01-15 13:25:03 -0500 (Thu, 15 Jan 2009)
New Revision: 11848
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
show penalties with a .block_list in the "stop sign" page
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-01-15 18:08:43 UTC (rev 11847)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-01-15 18:25:03 UTC (rev 11848)
@@ -511,6 +511,12 @@
obj.stop_checkouts = true;
}
}
+ var penalties = obj.patron.standing_penalties();
+ for (var i = 0; i < penalties.length; i++) {
+ if (penalties[i].standing_penalty().block_list()) {
+ msg += obj.OpenILS.data.hash.aou[ penalties[i].org_unit() ].shortname() + ' : ' + penalties[i].standing_penalty().label() + '<br/>';
+ }
+ }
var holds = req.getResultObject();
if (holds.ready && holds.ready > 0) {
msg += $("patronStrings").getFormattedString('staff.patron.display.init.holds_ready', [holds.ready]);
More information about the open-ils-commits
mailing list