]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/copy_browser.xul
rethinking record bucket interface
[Evergreen.git] / Open-ILS / xul / staff_client / server / cat / copy_browser.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Copy Browser -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
10 <?xml-stylesheet href="/xul/server/skin/cat.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window PUBLIC "" ""[
15         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21
22 <window id="cat_copy_browser" 
23         onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
24         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
25
26         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
27         <!-- BEHAVIOR -->
28         <script type="text/javascript">
29                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
30         </script>
31         <scripts id="openils_util_scripts"/>
32
33         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
34         <script>
35         <![CDATA[
36                 function my_init() {
37                         try {
38                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
39                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
40                                 JSAN.errorLevel = "die"; // none, warn, or die
41                                 JSAN.addRepository('/xul/server/');
42                                 JSAN.use('util.error'); g.error = new util.error();
43                                 g.error.sdump('D_TRACE','my_init() for cat_copy_browser.xul');
44
45                                 JSAN.use('cat.copy_browser'); g.copy_browser = new cat.copy_browser();
46
47                                 g.copy_browser.init( { 'docid' : xul_param('docid') } );
48
49                                 //if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
50                                 //      try { window.xulG.set_tab_name('Holdings Maintenance'); } catch(E) { alert(E); }
51                                 //}
52
53                         } catch(E) {
54                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
55                                         "system administrator or software developer the following:\ncat/copy_browser.xul\n" + E + '\n';
56                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
57                                 alert(err_msg);
58                         }
59                 }
60
61         ]]>
62         </script>
63
64         <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
65
66         <commandset id="cat_copy_browser">
67                 <command id="save_columns" />
68                 <command id="cmd_broken" />
69                 <command id="sel_copy_details"/>
70                 <command id="sel_patron"/>
71                 <command id="sel_clip" />
72                 <command id="cmd_clear" />
73                 <command id="cmd_show_my_libs" />
74                 <command id="cmd_show_all_libs" />
75                 <command id="cmd_show_libs_with_copies" />
76
77                 <command id="sel_mark_items_damaged" />
78                 <command id="sel_mark_items_missing" />
79                 <command id="cmd_add_items"/>
80                 <command id="cmd_add_items_to_buckets"/>
81                 <command id="cmd_edit_items"/>
82                 <command id="cmd_replace_barcode"/>
83                 <command id="cmd_delete_items"/>
84                 <command id="cmd_transfer_items"/>
85                 <command id="cmd_print_spine_labels"/>
86                 <command id="cmd_add_volumes"/>
87                 <command id="cmd_edit_volumes"/>
88                 <command id="cmd_delete_volumes"/>
89                 <command id="cmd_mark_volume"/>
90                 <command id="cmd_mark_library"/>
91                 <command id="cmd_transfer_volume"/>
92                 <command id="cmd_refresh_list"/>
93         </commandset>
94
95         <popupset>
96                 <popup id="copy_browser_actions">
97                         <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C"/>
98                         <menuitem command="cmd_add_items_to_buckets" label="Add Items to Buckets" accesskey="B"/>
99                         <menuitem command="sel_copy_details" label="Show Item Details" accesskey="I" />
100                         <menuitem command="sel_patron" label="Show Last Few Circulations" accesskey="L"/>
101                         <menuseparator/>
102                         <menuitem command="cmd_edit_items" label="Edit Item Attributes" accesskey="E"/>
103                         <menuitem command="cmd_transfer_items" label="Transfer Items to Previously Marked Volume" accesskey="T"/>
104                         <menuseparator/>
105                         <menuitem command="cmd_add_volumes" label="Add Volumes" accesskey="V"/>
106                         <menuitem command="cmd_mark_library" label="Mark Library as Volume Transfer Destination" accesskey="M"/>
107                         <menuseparator/>
108                         <menuitem command="cmd_add_items" label="Add Items" accesskey="A"/>
109                         <menuitem command="cmd_edit_volumes" label="Edit Volumes" accesskey="E"/>
110                         <menuitem command="cmd_mark_volume" label="Mark Volume as Item Transfer Destination" accesskey="M"/>
111                         <menuitem command="cmd_transfer_volume" label="Transfer Volumes to Previously Marked Library" accesskey="T"/>
112                         <menuseparator/>
113                         <menuitem command="cmd_delete_items" label="Delete Items" accesskey=""/>
114                         <menuitem command="cmd_delete_volumes" label="Delete Volumes" accesskey=""/>
115                         <menuseparator/>
116                         <menuitem command="sel_mark_items_damaged" label="Mark Item Damaged" accesskey="D"/>
117                         <menuitem command="sel_mark_items_missing" label="Mark Item Missing" accesskey="g"/>
118                         <menuseparator/>
119                         <menuitem command="cmd_print_spine_labels" label="Print Item Spine Labels" accesskey="P"/>
120                         <menuitem command="cmd_replace_barcode" label="Replace Barcode" accesskey=""/>
121                         <menuitem command="save_columns" label="Save Columns"/>
122                         <menuitem command="cmd_refresh_list" label="Refresh Listing" accesskey="R"/>
123                 </popup>
124         </popupset>
125
126         <groupbox flex="1" class="my_overflow">
127                 <caption label="Holdings Maintenance"/>
128                 <hbox><label id="legend" style="font-size: large" class="has_copies" value="Green in the list below means the library has volumes for this record." hidden="true"/></hbox>
129                 <hbox>
130                         <hbox id="x_lib_menu"/>
131                         <spacer flex="1"/>
132                         <label value="Consortial Total:"/><label id="consortial_total"/>
133                         <label value="Available:"/><label id="consortial_available"/>
134                 </hbox>
135                 <hbox>
136                         <checkbox id="show_acns" label="Show Volumes" />
137                         <checkbox id="show_acps" label="Show Items" />
138                         <button id="refresh_button" label="Refresh" command="cmd_refresh_list" />
139                         <button label="Show Libs With Items" command="cmd_show_libs_with_copies" accesskey="L"/>
140                         <!-- <button label="Show My Libs" command="cmd_show_my_libs" accesskey="M"/>-->
141                         <!--
142                         <button label="Show All Libs" command="cmd_show_all_libs" accesskey=""/>
143                         -->
144                         <spacer flex="1"/>
145                         <menubar>
146                                 <menu label="Actions for Selected Rows" accesskey="f">
147                                         <menupopup>
148                                                 <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C"/>
149                                                 <menuitem command="cmd_add_items_to_buckets" label="Add Items to Buckets" accesskey="B"/>
150                                                 <menuitem command="sel_copy_details" label="Show Item Details" accesskey="I" />
151                                                 <menuitem command="sel_patron" label="Show Last Few Circulations" accesskey="L"/>
152                                                 <menuseparator/>
153                                                 <menuitem command="cmd_edit_items" label="Edit Item Attributes" accesskey="E"/>
154                                                 <menuitem command="cmd_transfer_items" label="Transfer Items to Previously Marked Volume" accesskey="T"/>
155                                                 <menuseparator/>
156                                                 <menuitem command="cmd_add_volumes" label="Add Volumes" accesskey="V"/>
157                                                 <menuitem command="cmd_mark_library" label="Mark Library as Volume Transfer Destination" accesskey="M"/>
158                                                 <menuseparator/>
159                                                 <menuitem command="cmd_add_items" label="Add Items" accesskey="A"/>
160                                                 <menuitem command="cmd_edit_volumes" label="Edit Volumes" accesskey="E"/>
161                                                 <menuitem command="cmd_mark_volume" label="Mark Volume as Item Transfer Destination" accesskey="M"/>
162                                                 <menuitem command="cmd_transfer_volume" label="Transfer Volumes to Previously Marked Library" accesskey="T"/>
163                                                 <menuseparator/>
164                                                 <menuitem command="cmd_delete_items" label="Delete Items" accesskey=""/>
165                                                 <menuitem command="cmd_delete_volumes" label="Delete Volumes" accesskey=""/>
166                                                 <menuseparator/>
167                                                 <menuitem command="sel_mark_items_damaged" label="Mark Item Damaged" accesskey="D"/>
168                                                 <menuitem command="sel_mark_items_missing" label="Mark Item Missing" accesskey="g"/>
169                                                 <menuseparator/>
170                                                 <menuitem command="cmd_print_spine_labels" label="Print Item Spine Labels" accesskey="P"/>
171                                                 <menuitem command="cmd_replace_barcode" label="Replace Barcode" accesskey=""/>
172                                                 <menuitem command="save_columns" label="Save Columns"/>
173                                                 <menuitem command="cmd_refresh_list" label="Refresh Listing" accesskey="R"/>
174                                         </menupopup>
175                                 </menu>
176                         </menubar>
177                 </hbox>
178                 <tree id="copy_tree" flex="1" enableColumnDrag="true" context="copy_browser_actions"/>
179         </groupbox>
180
181 </window>
182