]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul
Patch from Thomas Berezansky to do the following:
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / patron / summary_overlay_horiz.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay PUBLIC "" ""[
3     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
4 ]>
5 <overlay id="patron_summary_overlay" 
6     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
7
8 <script>dump('loading patron/summary_overlay.xul\n');</script>
9
10 <commandset id="patron_summary_cmds">
11     <command id="group_tab_retrieve_patron"/>
12     <command id="spawn_group_interface"/>
13 </commandset>
14
15 <popupset id="patron_summary_popups">
16     <popup id="group_actions" position="at_pointer">
17         <menuitem command="group_tab_retrieve_patron"
18             label="&staff.patron.summary_overlay.group_tab.retrieve_patron.label;"
19             accesskey="&staff.patron.summary_overlay.group_tab.retrieve_patron.accesskey;" />
20     </popup>
21 </popupset>
22
23 <box id="patron_summary_main" flex="1" orient="vertical" class="my_overflow">
24     <hbox id="patron_info_sidebar" flex="1"/>
25 </box>
26
27 <hbox id="patron_info_sidebar" flex="1">
28     <image id="patron_photo_url" />
29     <vbox id="patron_info" flex="1" />
30     <vbox flex="1">
31         <vbox id="PatronSummaryContact_address" orient="vertical"/>
32         <vbox id="PatronSummaryContact_phone" />
33         <spacer flex="1"/>
34     </vbox>
35     <vbox id="contact_info" flex="1">
36         <tabbox flex="1">
37             <tabs>
38                 <tab label="&staff.patron_display.tab.account_info.label;" accesskey="&staff.patron_display.tab.account_info.accesskey;"/>
39                 <tab label="&staff.patron_display.tab.identification.label;" accesskey="&staff.patron_display.tab.identification.accesskey;"/>
40                 <tab id="group_tab" label="&staff.patron_display.tab.group.label;" accesskey="&staff.patron_display.tab.group.accesskey;"/>
41                 <tab id="stat_cat_tab" label="&staff.patron_display.tab.stat_cats.label;" accesskey="&staff.patron_display.tab.stat_cats.accesskey;"/>
42             </tabs>
43             <tabpanels flex="1">
44                 <tabpanel><vbox id="account_info" flex="1" /></tabpanel>
45                 <tabpanel><grid id="PatronSummaryContact_grid" flex="1"/></tabpanel>
46                 <tabpanel orient="vertical">
47                     <tree id="group_list" flex="1" enableColumnDrag="true" seltype="multiple" context="group_actions"/>
48                     <hbox>
49                         <hbox id="group_list_actions" />
50                         <spacer flex="1" />
51                         <button command="spawn_group_interface"
52                             label="&staff.patron.info.group.label;"
53                             accesskey="&staff.patron.info.group.accesskey;" />
54                         <button command="group_tab_retrieve_patron"
55                             label="&staff.patron.summary_overlay.group_tab.retrieve_patron.label;" 
56                             accesskey="&staff.patron.summary_overlay.group_tab.retrieve_patron.accesskey;" />
57                     </hbox>
58                 </tabpanel>
59                 <tabpanel orient="vertical">
60                     <tree id="stat_cat_list" flex="1" enableColumnDrag="true" seltype="multiple" />
61                     <hbox>
62                         <hbox id="stat_cat_list_actions" />
63                         <spacer flex="1" />
64                     </hbox>
65                 </tabpanel>
66                 <tabpanel hidden="true"><grid id="PatronSummaryStatus_grid" flex="1"/></tabpanel>
67             </tabpanels>
68         </tabbox>
69     </vbox>
70 </hbox>
71
72 <vbox id="account_info">
73     <grid flex="1">
74         <columns>
75             <column/>
76         </columns>
77         <rows>
78             <row id="pdsgr1">
79                 <description id="patron_profile" class="copyable profile value"/>
80             </row>
81             <row id="pdsgr5">
82                 <description id="patron_library" class="copyable homelib value"/>
83             </row>
84             <row id="pdsgr5a">
85                 <description id="patron_net_access" class="copyable net_access value"/>
86             </row>
87             <row id="pdsgr5aa">
88                 <description id="patron_date_of_exp" class="copyable expire_date value"/>
89             </row>
90         </rows>
91     </grid>
92 </vbox>
93
94 <vbox id="patron_info" flex="1">
95     <groupbox flex="1">
96         <caption label="&staff.patron_display.patron_info.caption;"/>
97         <description id="patron_name" />
98         <grid>
99             <columns>
100                 <column/>
101                 <column/>
102             </columns>
103             <rows id="patron_info_rows">
104                 <row>
105                     <label id="PatronSummaryContact_date_of_birth_label" click_to_hide_dob="true" class="copyable text_left dob label click_link" value="&staff.patron_display.date_of_birth.label;"/>
106                     <description id="patron_date_of_birth" class="copyable dob value" hide_value="true" oils_persist="hide_value"/>
107                 </row>
108                 <row>
109                     <label id="PatronSummaryContact_library_card_label" class="copyable text_left card label"
110                         value="&staff.patron_display.library_card.label;"/>
111                     <description id="patron_card" class="copyable card value click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
112                 </row>
113                 <row>
114                     <label id="PatronSummaryContact_hold_alias_label" class="copyable text_left" value="&staff.patron_display.hold_alias.label;"/>
115                     <description id="patron_hold_alias" class="copyable hold_alias value" />
116                 </row>
117                 <row>
118                     <label id="PatronSummaryContact_usrname_label" class="copyable text_left usrname label"
119                         value="&staff.patron.summary_overlay.opac_login.value;" />
120                     <description id="patron_usrname" class="copyable usrname value"/>
121                 </row>
122                 <row>
123                     <label id="PatronSummaryContact_email_label" class="copyable text_left email label"
124                         value="&staff.patron_display.email.label;" />
125                     <description id="patron_email" class="copyable email value" style="text-decoration: underline; color: blue; -moz-user-focus: normal;" onclick="copy_to_clipboard(event)"/>
126                 </row>
127             </rows>
128         </grid>
129         <spacer/><!-- bug workaround.. for some reason.. maybe timing with the overlay inserting children.. the patron_name label shows up beneath the grid when rendered -->
130     </groupbox>
131 </vbox>
132
133 <grid id="PatronSummaryStatus_grid">
134     <columns id="pdsgc">
135         <column id="pdsgc1" />
136         <column id="pdsgc2" />
137         <column id="pdsgc3" />
138         <column id="pdsgc4" />
139     </columns>
140     <rows id="pdsgr" flex="1">
141         <row id="pdsgr4">
142             <label id="PatronSummaryStatus_holds_label" class="copyable text_left holds label"
143                 value="&staff.patron_display.holds.label;" />
144             <hbox>
145                 <description id="patron_holds_available" class="copyable holds_ready value" />
146                 <label value="/" class="copyable holds" /> <!-- Would it be better to consolidate this into one label and use .getFormattedString? -->
147                 <description id="patron_holds" class="copyable holds value"/>
148             </hbox>
149         </row>
150         <row id="pdsgr2" class="hide_patron_credit" hidden="true">
151             <label id="PatronSummaryStatus_credit_label" class="copyable text_left credit label"
152                 value="&staff.patron_display.credit.label;" />
153             <description id="patron_credit" class="copyable credit value"/>
154         </row><row>
155             <label id="PatronSummaryStatus_bills_label" class="copyable text_left bill label"
156                 value="&staff.patron_display.bills.label;" />
157             <description id="patron_bill" class="copyable bill value"/>
158         </row>
159         <row id="pdsgr3">
160             <label id="PatronSummaryStatus_checkouts_label" class="copyable text_left items_out label"
161                 value="&staff.patron_display.checkouts.label;" />
162             <description id="patron_checkouts" class="copyable items_out value"/>
163         </row>
164         <row>
165             <hbox>
166                 <label id="PatronSummaryStatus_checkouts_overdue_label" class="copyable text_right items_overdue label" value="&staff.patron_display.checkouts_overdue.label;" />
167                 <label value="/"/>
168                 <label id="PatronSummaryStatus_long_overdue_label" value="&staff.patron.summary_overlay.overdue.value;" class="copyable text_right items_long_overdue label" />
169             </hbox>
170             <hbox>
171                 <description id="patron_overdue" class="copyable items_overdue value" />
172                 <label value="/"/>
173                 <description id="patron_long_overdue" class="copyable items_long_overdue value" />
174             </hbox>
175         </row>
176         <row id="pdsgr7">
177             <hbox>
178                 <label id="PatronSummaryStatus_claimed_returned_label" value="&staff.patron.summary_overlay.claimed_returned.value;" class="copyable text_right items_long_overdue label" />
179                 <label value="/"/>
180                 <label id="PatronSummaryStatus_lost_label" value="&staff.patron.summary_overlay.lost_label.value;" class="copyable text_left items_lost label"/>
181             </hbox>
182             <hbox>
183                 <description id="patron_claimed_returned" class="copyable items_claimed_returned value" />
184                 <label value="/"/>
185                 <description id="patron_lost" class="copyable items_lost value"/>
186             </hbox>
187         </row>
188         <row id="pdsgr6a">
189             <label id="PatronSummaryStatus_noncat_label" value="&staff.patron.summary_overlay.noncat_label.value;" class="copyable text_left items_noncat label"/>
190             <description id="patron_noncat" class="copyable items_noncat value"/>
191         </row>
192     </rows>
193 </grid>
194
195 <grid id="PatronSummaryContact_grid">
196     <columns id="pdsgc">
197         <column id="pdsgc1" />
198         <column id="pdsgc2" />
199     </columns>
200     <rows id="pdsgr" flex="1">
201         <row id="pdsgr1">
202             <label id="PatronSummaryContact_ident_label" class="copyable text_left"
203                 value="&staff.patron_display.ident1.label;"/>
204             <vbox id="pdsgr0h">
205                 <description id="patron_ident_type_1" class="copyable ident ident_type ident1 value"/>
206                 <description id="patron_ident_value_1" class="copyable ident ident_value ident1 value"/>
207             </vbox>
208         </row>
209         <row id="pdsgr2">
210             <label id="PatronSummaryContact_ident_label2" class="copyable text_left"
211                 value="&staff.patron_display.ident2.label;"/>
212             <vbox id="pdsgr0ah">
213                 <description id="patron_ident_type_2" class="copyable ident ident_type ident2 value"/>
214                 <description id="patron_ident_value_2" class="copyable ident ident_value ident2 value"/>
215             </vbox>
216         </row>
217         <row id="pdsgr4"><label id="pdsgr4l" value=" "/></row>
218     </rows>
219 </grid>
220
221 <vbox id="PatronSummaryContact_phone">
222     <groupbox>
223         <caption label="&staff.patron_display.phone_numbers.caption;"/>
224         <grid id="PatronSummaryContact_grid_phone">
225             <columns id="pdcgpc">
226                 <column id="pdcgpc1" />
227                 <column id="pdcgpc2" />
228             </columns>
229             <rows id="pdcgpr" flex="1">
230                 <row id="pdcgpr1">
231                     <label id="PatronSummaryContact_day_phone_label" class="copyable text_left phone label day_phone"
232                         value="&staff.patron_display.day_phone.label;" />
233                     <description id="patron_day_phone" class="copyable phone value day_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/> 
234                 </row>
235                 <row id="pdcgpr2">
236                     <label id="PatronSummaryContact_evening_phone_label" class="copyable text_left phone label evening_phone"
237                         value="&staff.patron_display.evening_phone.label;" />
238                     <description id="patron_evening_phone" class="copyable phone value evening_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
239                 </row>
240                 <row id="pdcgpr3">
241                     <label id="PatronSummaryContact_other_phone_label" class="copyable text_left phone label other_phone"
242                         value="&staff.patron_display.other_phone.label;" />
243                     <description id="patron_other_phone" class="copyable phone value other_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/> 
244                 </row>
245             </rows>
246         </grid>
247     </groupbox>
248 </vbox>
249
250 <popupset id="patron_summary_popups">
251     <popup id="addr_export_popup" oncommand="export_address(event);">
252         <menuitem id="addr_export_copy" label="&staff.patron_display.address_export_popup.copy;"/>
253         <menuitem id="addr_export_print" label="&staff.patron_display.address_export_popup.print;"/>
254     </popup>
255 </popupset>
256
257 <vbox id="PatronSummaryContact_address">
258     <groupbox>
259         <caption label="&staff.patron_display.addresses.caption;"/>
260         <deck id="address_deck">
261             <vbox>
262                 <description id="patron_mailing_address_street1" tooltiptext="&staff.patron_display.mailing.street1.label;" class="copyable address street street1 mailing value"/>
263                 <description id="patron_mailing_address_street2" tooltiptext="&staff.patron_display.mailing.street2.label;" class="copyable address street street2 mailing value"/>
264                 <hbox id="pdcmah">
265                     <description id="patron_mailing_address_city" tooltiptext="&staff.patron_display.mailing.city.label;" class="copyable address city mailing value"/>
266                     <description id="patron_mailing_address_state" tooltiptext="&staff.patron_display.mailing.state.label;" class="copyable address state mailing value"/>
267                     <description id="patron_mailing_address_post_code" tooltiptext="&staff.patron_display.mailing.post_code.label;" class="copyable address post_code mailing value"/>
268                 </hbox>
269             </vbox>
270             <vbox>
271                 <description id="patron_physical_address_street1" tooltiptext="&staff.patron_display.physical.street1.label;" class="copyable address street street1 physical value" />
272                 <description id="patron_physical_address_street2" tooltiptext="&staff.patron_display.physical.street2.label;"  class="copyable address street street2 physical value"/>
273                 <hbox id="pdcpah">
274                     <description id="patron_physical_address_city" tooltiptext="&staff.patron_display.physical.city.label;" class="copyable address city physical value"/>
275                     <description id="patron_physical_address_state" tooltiptext="&staff.patron_display.physical.state.label;" class="copyable address state physical value"/>
276                     <description id="patron_physical_address_post_code" tooltiptext="&staff.patron_display.physical.post_code.label;" class="copyable address post_code physical value"/>
277                 </hbox>
278             </vbox>
279         </deck>
280         <hbox>
281             <radiogroup id="radio_address" orient="horizontal" oils_persist="value">
282                 <radio id="radio_address_mailing" selected="true" value="mailing"
283                     oncommand="oils_persist(this.parentNode); $('address_deck').selectedIndex = 0; $('address_action_deck').selectedIndex = 0;"
284                     label="&staff.patron_display.radio.mailing_address.label;" 
285                     accesskey="&staff.patron_display.radio.mailing_address.accesskey;" />
286                 <radio id="radio_address_physical" value="physical"
287                     oncommand="oils_persist(this.parentNode); $('address_deck').selectedIndex = 1; $('address_action_deck').selectedIndex = 1;"
288                     label="&staff.patron_display.radio.physical_address.label;"
289                     accesskey="&staff.patron_display.radio.physical_address.accesskey;" /> 
290             </radiogroup>
291             <spacer flex="1" />
292             <deck id="address_action_deck">
293                 <label id="addr_export_mailing" value="&staff.patron_display.address_export;" popup="addr_export_popup" class="copyable click_link"/>
294                 <label id="addr_export_physical" value="&staff.patron_display.address_export;" popup="addr_export_popup" class="copyable click_link"/>
295             </deck>
296         </hbox>
297     </groupbox>
298 </vbox>
299
300 </overlay>