debugging. spawn copy editor in second tabbed interface
[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_edit" oncommand="spawn_batch_copy_editor(window.parent_window.document, 'replace_iframe', 'copy_editor', { 'tree' : document.getElementById('browse_list_tree') , 'refresh_func' : refresh_browse_list }); window.parent_window.document.getElementById('copy_editor').disabled = false;"/>
22         <command id="cmd_copy_delete" oncommand="copy_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
23         <command id="cmd_toggle_my_libs" oncommand="button_toggle_my_libraries(event);"/>
24         <command id="cmd_toggle_libs" oncommand="button_toggle_libraries(event);"/>
25         <command id="cmd_refresh" oncommand="refresh_browse_list();"/>
26         <command id="cmd_alert" oncommand="alert('Not Yet Implemented');"/>
27 </commandset>
28
29 <!-- Context menus -->
30 <popupset id="browse_list_popupset">
31         <popup id="browse_menu" onpopupshowing="build_CopyBrowser_Context(event);">
32         <!--
33                 <menuitem id="browse_menu1" label="Add Volume" command="cmd_volume_add"/>
34                 <menuitem id="browse_menu2" label="Edit Volume" command="cmd_alert" disabled="true"/>
35                 <menuseparator id="browse_menu_sep1"/>
36                 <menuitem id="browse_menu3" label="Add Copy" command="cmd_copy_add" disabled="true"/>
37                 <menuitem id="browse_menu4" label="Edit Copy" command="cmd_copy_edit"/>
38                 <menuseparator id="browse_menu_sep2"/>
39                 <menuitem id="browse_menu5" label="Refresh Display" command="cmd_refresh"/>
40         -->
41         </popup>
42 </popupset>
43
44 <!-- The top level widget for the cat client -->
45 <vbox id="browse_list_vbox" flex="1">
46         <hbox id="browse_list_buttonbox"/>
47         <tree id="browse_list_tree"/>
48 </vbox>
49
50 <hbox id="browse_list_buttonbox">
51         <!--
52         <button id="browse_list_button1" label="Hide My Libraries" alt_label="Show My Libraries" toggle="1" command="cmd_toggle_my_libs"/>
53         -->
54         <button id="browse_list_button3" label="Refresh" command="cmd_refresh"/>
55         <button id="browse_list_button2" label="Show Other Libraries With Copies" alt_label="Show Just My Libraries" toggle="1" command="cmd_toggle_libs"/>
56         <label id="browse_libs"/>
57         <progressmeter id="browse_meter" mode="normal" value="0" flex="1"/>
58 </hbox>
59
60 <tree id="browse_list_tree" enableColumnDrag="true" flex="1">
61         <treecols id="browse_list_treecols">
62                 <treecol id="browse1" label="&browse_list.location;" flex="2" primary="true"/> <splitter class="tree-splitter"/>
63                 <treecol id="browse1b" label="Volumes" flex="0"/> <splitter class="tree-splitter"/>
64                 <treecol id="browse1a" label="Copies" flex="0"/> <splitter class="tree-splitter"/>
65                 <treecol id="browse2" label="&browse_list.library;" flex="1"/> <splitter class="tree-splitter"/>
66                 <treecol id="browse3" label="&browse_list.callnumber;" flex="1"/> <splitter class="tree-splitter"/>
67                 <treecol id="browse4" label="&browse_list.copy_number;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
68                 <treecol id="browse4aa" label="&browse_list.location2;" flex="1"/> <splitter class="tree-splitter"/>
69                 <treecol id="browse4a" label="&browse_list.circ_lib;" flex="1"/> <splitter class="tree-splitter"/>
70                 <treecol id="browse4b" label="&browse_list.circulate;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
71                 <treecol id="browse4bb" label="&browse_list.ref;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
72                 <treecol id="browse4bbb" label="&browse_list.opac_visible;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
73                 <treecol id="browse4c" label="&browse_list.circ_as_type;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
74                 <treecol id="browse4d" label="&browse_list.circ_modifier;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
75                 <treecol id="browse4e" label="&browse_list.loan_duration;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
76                 <treecol id="browse4f" label="&browse_list.fine_level;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
77                 <treecol id="browse5" label="&browse_list.create_date;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
78                 <treecol id="browse6" label="&browse_list.creator;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
79                 <treecol id="browse7" label="&browse_list.edit_date;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
80                 <treecol id="browse8" label="&browse_list.editor;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
81                 <treecol id="browse9" label="&browse_list.deposit;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
82                 <treecol id="browse10" label="&browse_list.deposit_amount;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
83                 <treecol id="browse11" label="&browse_list.price;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
84                 <treecol id="browse12" label="&browse_list.status;" flex="1" hidden="false"/> <splitter class="tree-splitter"/>
85         </treecols>
86         <treechildren id="browse_list_tree_children" context="browse_menu"/>
87 </tree>
88
89 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
90 <keyset id="browse_list_keys">
91         <key id="" modifiers="accel" key="A" command="cmd_"/>
92 </keyset>
93
94 </overlay>