269e584389a189dc24c5e387f5b71ef6a39d3e19
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / cat / browse_list_overlay.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
3 <overlay id="browse_list_overlay" 
4         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5
6 <!-- The javascript logic for the staff client -->
7 <Evergreen id="browse_list_js">
8         <!--<script src="chrome://evergreen/content/evergreen/fieldmapper.js" />-->
9         <util id="util_js"/>
10         <script src="browse_list.js" />
11 </Evergreen>
12
13 <!-- Some logic abstracted a bit.  Sort of like an API list -->
14 <commandset id="browse_list_cmds">
15         <command id="cmd_edit_browse" oncommand="spawn_editors();"/>
16         <command id="cmd_volume_add" oncommand="volume_add(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
17         <command id="cmd_volume_edit" oncommand="volume_edit(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
18         <command id="cmd_volume_delete" oncommand="volume_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
19         <command id="cmd_copy_add" oncommand="copy_add(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
20         <command id="cmd_copy_edit" oncommand="spawn_batch_copy_editor(window.app_shell, 'new_tab', 'main_tabbox', { 'tree' : document.getElementById('browse_list_tree') , 'refresh_func' : refresh_browse_list });"/>
21         <command id="cmd_copy_delete" oncommand="copy_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
22         <command id="cmd_toggle_my_libs" oncommand="button_toggle_my_libraries(event);"/>
23         <command id="cmd_toggle_libs" oncommand="button_toggle_libraries(event);"/>
24         <command id="cmd_refresh" oncommand="refresh_browse_list();"/>
25         <command id="cmd_alert" oncommand="alert('Not Yet Implemented');"/>
26 </commandset>
27
28 <!-- Context menus -->
29 <popupset id="browse_list_popupset">
30         <popup id="browse_menu" onpopupshowing="build_CopyBrowser_Context(event);">
31         <!--
32                 <menuitem id="browse_menu1" label="Add Volume" command="cmd_volume_add"/>
33                 <menuitem id="browse_menu2" label="Edit Volume" command="cmd_alert" disabled="true"/>
34                 <menuseparator id="browse_menu_sep1"/>
35                 <menuitem id="browse_menu3" label="Add Copy" command="cmd_copy_add" disabled="true"/>
36                 <menuitem id="browse_menu4" label="Edit Copy" command="cmd_copy_edit"/>
37                 <menuseparator id="browse_menu_sep2"/>
38                 <menuitem id="browse_menu5" label="Refresh Display" command="cmd_refresh"/>
39         -->
40         </popup>
41 </popupset>
42
43 <!-- The top level widget for the cat client -->
44 <vbox id="browse_list_vbox" flex="1">
45         <hbox id="browse_list_buttonbox"/>
46         <tree id="browse_list_tree"/>
47 </vbox>
48
49 <hbox id="browse_list_buttonbox">
50         <!--
51         <button id="browse_list_button1" label="Hide My Libraries" alt_label="Show My Libraries" toggle="1" command="cmd_toggle_my_libs"/>
52         -->
53         <button id="browse_list_button3" label="Refresh" command="cmd_refresh"/>
54         <button id="browse_list_button2" label="Show Other Libraries With Copies" alt_label="Show Just My Libraries" toggle="1" command="cmd_toggle_libs"/>
55         <label id="browse_libs"/>
56         <progressmeter id="browse_meter" mode="normal" value="0" flex="1"/>
57 </hbox>
58
59 <tree id="browse_list_tree" enableColumnDrag="true" flex="1">
60         <treecols id="browse_list_treecols">
61                 <treecol id="browse1" label="&browse_list.location;" flex="2" primary="true"/> <splitter class="tree-splitter"/>
62                 <treecol id="browse1b" label="Volumes" flex="0"/> <splitter class="tree-splitter"/>
63                 <treecol id="browse1a" label="Copies" flex="0"/> <splitter class="tree-splitter"/>
64                 <treecol id="browse2" label="&browse_list.library;" flex="1"/> <splitter class="tree-splitter"/>
65                 <treecol id="browse3" label="&browse_list.callnumber;" flex="1"/> <splitter class="tree-splitter"/>
66                 <treecol id="browse4" label="&browse_list.copy_number;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
67                 <treecol id="browse4aa" label="&browse_list.location2;" flex="1"/> <splitter class="tree-splitter"/>
68                 <treecol id="browse4a" label="&browse_list.circ_lib;" flex="1"/> <splitter class="tree-splitter"/>
69                 <treecol id="browse4b" label="&browse_list.circulate;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
70                 <treecol id="browse4bb" label="&browse_list.ref;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
71                 <treecol id="browse4bbb" label="&browse_list.opac_visible;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
72                 <treecol id="browse4c" label="&browse_list.circ_as_type;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
73                 <treecol id="browse4d" label="&browse_list.circ_modifier;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
74                 <treecol id="browse4e" label="&browse_list.loan_duration;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
75                 <treecol id="browse4f" label="&browse_list.fine_level;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
76                 <treecol id="browse5" label="&browse_list.create_date;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
77                 <treecol id="browse6" label="&browse_list.creator;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
78                 <treecol id="browse7" label="&browse_list.edit_date;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
79                 <treecol id="browse8" label="&browse_list.editor;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
80                 <treecol id="browse9" label="&browse_list.deposit;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
81                 <treecol id="browse10" label="&browse_list.deposit_amount;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
82                 <treecol id="browse11" label="&browse_list.price;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
83                 <treecol id="browse12" label="&browse_list.status;" flex="1" hidden="false"/> <splitter class="tree-splitter"/>
84         </treecols>
85         <treechildren id="browse_list_tree_children" context="browse_menu"/>
86 </tree>
87
88 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
89 <keyset id="browse_list_keys">
90         <key id="" modifiers="accel" key="A" command="cmd_"/>
91 </keyset>
92
93 </overlay>