for (var i = 0; i < penalties.length; i++) {
/* this comes from /opac/common/js/utils.js */
addCSSClass(document.documentElement,penalties[i].standing_penalty().name());
+ if (penalties[i].standing_penalty().id() >= 100) {
+ addCSSClass(document.documentElement,'PATRON_HAS_CUSTOM_PENALTY');
+ }
+ if (get_bool( penalties[i].standing_penalty().staff_alert() )) {
+ addCSSClass(document.documentElement,'PATRON_HAS_STAFF_ALERT');
+ }
+ var block_list = penalties[i].standing_penalty().block_list();
+ if (block_list) {
+ addCSSClass(document.documentElement,'PATRON_HAS_BLOCK');
+ // TODO: futureproofing, split and loop on block_list to produce these classnames
+ if (block_list.match('CIRC')) {
+ addCSSClass(document.documentElement,'PATRON_HAS_CIRC_BLOCK');
+ }
+ if (block_list.match('RENEW')) {
+ addCSSClass(document.documentElement,'PATRON_HAS_RENEW_BLOCK');
+ }
+ if (block_list.match('HOLD')) {
+ addCSSClass(document.documentElement,'PATRON_HAS_HOLD_BLOCK');
+ }
+ if (block_list.match('CAPTURE')) {
+ addCSSClass(document.documentElement,'PATRON_HAS_CAPTURE_BLOCK');
+ }
+ if (block_list.match('FULFILL')) {
+ addCSSClass(document.documentElement,'PATRON_HAS_FULFILL_BLOCK');
+ }
+ }
}
switch(penalties.length) {
.MULTIPLE_PENALTIES .patronNameLarge { background-color: #CC3300; }
*/
+.PATRON_HAS_STAFF_ALERT .patronNameLarge { border: solid thick blue; padding: 10px; }
+
.PATRON_HAS_BILLS .patronNameLarge { border: solid thick #FFC266; padding: 10px; }
.PATRON_HAS_BILLS label.bill { color: #AA4400; }
/* .PATRON_HAS_BILLS label.bill.label { text-decoration: underline; } */