[open-ils-commits] r11431 - in trunk/Open-ILS/xul/staff_client/server: patron skin
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Dec 5 22:19:04 EST 2008
Author: miker
Date: 2008-12-05 22:19:03 -0500 (Fri, 05 Dec 2008)
New Revision: 11431
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
trunk/Open-ILS/xul/staff_client/server/patron/util.js
trunk/Open-ILS/xul/staff_client/server/skin/patron_display.css
Log:
display juvenile indicator and modify DOB display based on new juvenile flag on user object
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2008-12-05 22:52:48 UTC (rev 11430)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2008-12-06 03:19:03 UTC (rev 11431)
@@ -117,6 +117,7 @@
removeCSSClass(document.documentElement,'PATRON_INACTIVE');
removeCSSClass(document.documentElement,'PATRON_EXPIRED');
removeCSSClass(document.documentElement,'PATRON_HAS_INVALID_DOB');
+ removeCSSClass(document.documentElement,'PATRON_JUVENILE');
removeCSSClass(document.documentElement,'PATRON_HAS_INVALID_ADDRESS');
removeCSSClass(document.documentElement,'PATRON_AGE_GE_65');
removeCSSClass(document.documentElement,'PATRON_AGE_LT_65');
Modified: trunk/Open-ILS/xul/staff_client/server/patron/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/util.js 2008-12-05 22:52:48 UTC (rev 11430)
+++ trunk/Open-ILS/xul/staff_client/server/patron/util.js 2008-12-06 03:19:03 UTC (rev 11431)
@@ -619,6 +619,9 @@
addCSSClass(document.documentElement,'PATRON_HAS_INVALID_DOB');
}
+ if ( get_bool( patron.juvenile() ) ) addCSSClass(document.documentElement,'PATRON_JUVENILE');
+ else removeCSSClass(document.documentElement,'PATRON_JUVENILE');
+
if (patron.mailing_address()) {
if (!get_bool(patron.mailing_address().valid())) {
addCSSClass(document.documentElement,'PATRON_HAS_INVALID_ADDRESS');
Modified: trunk/Open-ILS/xul/staff_client/server/skin/patron_display.css
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/skin/patron_display.css 2008-12-05 22:52:48 UTC (rev 11430)
+++ trunk/Open-ILS/xul/staff_client/server/skin/patron_display.css 2008-12-06 03:19:03 UTC (rev 11431)
@@ -74,3 +74,6 @@
.line_item { font-family: monospace; }
.checking_barcode { color: orange; text-decoration: blink; }
+.PATRON_JUVENILE .dob { color: purple; }
+.PATRON_JUVENILE label.juvenile_indicator { display: inline; color: purple; }
+
More information about the open-ils-commits
mailing list