expiration date in patron summary
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Jan 2007 21:26:28 +0000 (21:26 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Jan 2007 21:26:28 +0000 (21:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6803 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/summary.js
Open-ILS/xul/staff_client/server/patron/summary_overlay.xul
Open-ILS/xul/staff_client/server/skin/patron_display.css

index e092127..3329499 100644 (file)
@@ -292,6 +292,20 @@ patron.summary.prototype = {
                                                        };
                                                }
                                        ],
+                                       'patron_date_of_exp' : [
+                                               ['render'],
+                                               function(e) {
+                                                       return function() { 
+                                                               e.setAttribute('value',
+                                                                       'Expires on ' + (
+                                                                               obj.patron.expire_date() ?
+                                                                               obj.patron.expire_date().substr(0,10) :
+                                                                               '<Unset>'
+                                                                       )
+                                                               );
+                                                       };
+                                               }
+                                       ],
                                        'patron_date_of_birth' : [
                                                ['render'],
                                                function(e) {
index 1daedf4..2e0d23e 100644 (file)
@@ -48,6 +48,9 @@
                <row id="pdsgr5a">
                        <label id="patron_net_access" class="net_access value"/>
                </row>
+               <row id="pdsgr5aa">
+                       <label id="patron_date_of_exp" class="expire_date value"/>
+               </row>
        </rows></grid>
        <grid id="PatronSummaryStatus_grid" flex="1"/>
 
index 9413c4a..beac0fa 100755 (executable)
@@ -61,6 +61,7 @@ deck#patron_deck { border-left: solid thin black; }
 
 .PATRON_EXPIRED .patronNameLarge { background-color: #666666;  color: white;}
 .PATRON_EXPIRED label.expired_indicator { display: inline; color: black; }
+.PATRON_EXPIRED label.expire_date { background-color: #666666; color: white }
 
 .PATRON_BARRED .patronNameLarge { background-color: #CC3300; color: white; }
 .PATRON_BARRED label.barred_indicator { display: inline; color: #CC3300; }
@@ -69,3 +70,7 @@ deck#patron_deck { border-left: solid thin black; }
 .PATRON_NET_ACCESS_2 .net_access { color: green; } /* Unfiltered */
 .PATRON_NET_ACCESS_3 .net_access { color: #CC3300; } /* No Access */
 
+.bad_barcode { color: red; }
+.line_item { font-family: monospace; }
+.checking_barcode { color: orange; text-decoration: blink; }
+