]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/copy_browser.xul
b9b6e96d2a31a68109f245923c3bd2388c05881b
[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                                 g.cgi = new CGI();
46
47                                 JSAN.use('cat.copy_browser'); g.copy_browser = new cat.copy_browser();
48
49                                 g.copy_browser.init( { 'docid' : g.cgi.param('docid') } );
50
51                                 //if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
52                                 //      try { window.xulG.set_tab_name('Holdings Maintenance'); } catch(E) { alert(E); }
53                                 //}
54
55                         } catch(E) {
56                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
57                                         "system administrator or software developer the following:\ncat/copy_browser.xul\n" + E + '\n';
58                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
59                                 alert(err_msg);
60                         }
61                 }
62
63         ]]>
64         </script>
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                 </hbox>
132                 <hbox>
133                         <checkbox id="show_acns" label="Show Volumes" />
134                         <checkbox id="show_acps" label="Show Items" />
135                         <button label="Refresh" command="cmd_refresh_list" />
136                         <button label="Show Libs With Items" command="cmd_show_libs_with_copies" accesskey="L"/>
137                         <!-- <button label="Show My Libs" command="cmd_show_my_libs" accesskey="M"/>-->
138                         <!--
139                         <button label="Show All Libs" command="cmd_show_all_libs" accesskey=""/>
140                         -->
141                         <spacer flex="1"/>
142                         <menubar>
143                                 <menu label="Actions for Selected Rows" accesskey="f">
144                                         <menupopup>
145                                                 <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C"/>
146                                                 <menuitem command="cmd_add_items_to_buckets" label="Add Items to Buckets" accesskey="B"/>
147                                                 <menuitem command="sel_copy_details" label="Show Item Details" accesskey="I" />
148                                                 <menuitem command="sel_patron" label="Show Last Few Circulations" accesskey="L"/>
149                                                 <menuseparator/>
150                                                 <menuitem command="cmd_edit_items" label="Edit Item Attributes" accesskey="E"/>
151                                                 <menuitem command="cmd_transfer_items" label="Transfer Items to Previously Marked Volume" accesskey="T"/>
152                                                 <menuseparator/>
153                                                 <menuitem command="cmd_add_volumes" label="Add Volumes" accesskey="V"/>
154                                                 <menuitem command="cmd_mark_library" label="Mark Library as Volume Transfer Destination" accesskey="M"/>
155                                                 <menuseparator/>
156                                                 <menuitem command="cmd_add_items" label="Add Items" accesskey="A"/>
157                                                 <menuitem command="cmd_edit_volumes" label="Edit Volumes" accesskey="E"/>
158                                                 <menuitem command="cmd_mark_volume" label="Mark Volume as Item Transfer Destination" accesskey="M"/>
159                                                 <menuitem command="cmd_transfer_volume" label="Transfer Volumes to Previously Marked Library" accesskey="T"/>
160                                                 <menuseparator/>
161                                                 <menuitem command="cmd_delete_items" label="Delete Items" accesskey=""/>
162                                                 <menuitem command="cmd_delete_volumes" label="Delete Volumes" accesskey=""/>
163                                                 <menuseparator/>
164                                                 <menuitem command="sel_mark_items_damaged" label="Mark Item Damaged" accesskey="D"/>
165                                                 <menuitem command="sel_mark_items_missing" label="Mark Item Missing" accesskey="g"/>
166                                                 <menuseparator/>
167                                                 <menuitem command="cmd_print_spine_labels" label="Print Item Spine Labels" accesskey="P"/>
168                                                 <menuitem command="cmd_replace_barcode" label="Replace Barcode" accesskey=""/>
169                                                 <menuitem command="save_columns" label="Save Columns"/>
170                                                 <menuitem command="cmd_refresh_list" label="Refresh Listing" accesskey="R"/>
171                                         </menupopup>
172                                 </menu>
173                         </menubar>
174                 </hbox>
175                 <tree id="copy_tree" flex="1" enableColumnDrag="true" context="copy_browser_actions"/>
176         </groupbox>
177
178 </window>
179