]> git.evergreen-ils.org Git - Evergreen.git/blob - Evergreen/staff_client/chrome/content/evergreen/patron/patron_display_status_overlay.xul
more ripping of legacy code. seems to work :)
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / patron / patron_display_status_overlay.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/patron_display.dtd">
3 <overlay id="patron_display_status_overlay" 
4         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5
6         <script>mw.sdump('D_TRACE','Loading patron_display_status_overlay.xul\n');</script>
7
8 <commandset id="universal_cmds">
9
10         <command id="cmd_broken" oncommand="
11                 alert('Not Yet Implemented'); "/>
12
13 </commandset>
14
15 <!-- main widget for patron_display_status -->
16 <box id="PatronDisplayStatus_main" flex="1" orient="vertical">
17         <hbox id="PatronDisplayStatus_insert1"/>
18         <groupbox id="PatronDisplayStatus_groupbox" />
19         <hbox id="PatronDisplayStatus_insert5"/>
20 </box>
21
22 <groupbox id="PatronDisplayStatus_groupbox" orient="vertical">
23         <caption label="&patron_display.status.caption;"/>
24         <hbox id="PatronDisplayStatus_insert2"/>
25         <label id="PatronDisplayStatus_home_ou"
26                 tooltiptext="&patron_display.home_ou.label;"
27                 value=" "
28                 render="true" fm_class="au" 
29                 render_value="patron_get_home_ou_name($$)" />
30         <hbox id="PatronDisplayStatus_insert3"/>
31         <grid id="PatronDisplayStatus_grid" flex="1"/>
32         <hbox id="PatronDisplayStatus_insert4"/>
33         <label bug="without this here, the label and grid get swapped in the display"/>
34 </groupbox>
35
36 <grid id="PatronDisplayStatus_grid">
37         <columns id="pdsgc">
38                 <column id="pdsgc1" />
39                 <column id="pdsgc2" />
40                 <column id="pdsgc3" />
41                 <column id="pdsgc4" />
42         </columns>
43         <rows id="pdsgr" flex="1">
44                 <row id="pdsgr1" render="true" fm_class="au" render_css_style="patron_get_standing_css_style($$.standing())">
45                         <label id="PatronDisplayStatus_profile_label" class="text_right"
46                                 value="&patron_display.profile.label;" />
47                         <label id="PatronDisplayStatus_profile" 
48                                 render="true" fm_class="au" 
49                                 render_value="patron_get_profile_as_text($$)" />
50                         <label id="PatronDisplayStatus_standing_label" class="text_right"
51                                 value="&patron_display.standing.label;" />
52                         <label id="PatronDisplayStatus_standing" 
53                                 render="true" fm_class="au" 
54                                 render_value="patron_get_standing_as_text($$)" />
55                 </row>
56                 <row id="pdsgr2">
57                         <label id="PatronDisplayStatus_credit_label" class="text_right"
58                                 value="&patron_display.credit.label;" />
59                         <label id="PatronDisplayStatus_credit" 
60                                 render="true" fm_class="au" 
61                                 render_value="patron_get_credit_total($$)" />
62                         <label id="PatronDisplayStatus_bills_label" class="text_right"
63                                 value="&patron_display.bills.label;" />
64                         <label id="PatronDisplayStatus_bill" 
65                                 render="true" fm_class="au" 
66                                 render_value="patron_get_bills_total($$)" />
67                 </row>
68                 <row id="pdsgr3">
69                         <label id="PatronDisplayStatus_checkouts_label" class="text_right"
70                                 value="&patron_display.checkouts.label;" />
71                         <label id="PatronDisplayStatus_checkouts"
72                                 render="true" fm_class="au" 
73                                 render_value="patron_get_checkouts_total($$)" />
74                         <label id="PatronDisplayStatus_checkouts_overdue_label" class="text_right"
75                                 value="&patron_display.checkouts_overdue.label;" />
76                         <label id="PatronDisplayStatus_checkouts_overdue"
77                                 render="true" fm_class="au" 
78                                 render_value="patron_get_checkouts_overdue_total($$)" />
79                 </row>
80                 <row id="pdsgr4">
81                         <label id="PatronDisplayStatus_holds_label" class="text_right"
82                                 value="&patron_display.holds.label;" />
83                         <label id="PatronDisplayStatus_holds"
84                                 render="true" fm_class="au" 
85                                 render_value="patron_get_holds_total($$)" />
86                         <label id="PatronDisplayStatus_holds_available_label" class="text_right"
87                                 value="&patron_display.holds_available.label;" />
88                         <label id="PatronDisplayStatus_holds_available"
89                                 render="true" fm_class="au" 
90                                 render_value="patron_get_holds_available_total($$)" />
91                 </row>
92         </rows>
93 </grid>
94
95
96 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
97 <keyset id="PatronDisplayStatus_keys">
98 </keyset>
99
100 </overlay>