]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/copy_browser.xul
xul_param and modal xulG conversion
[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         <commandset id="cat_copy_browser">
65                 <command id="save_columns" />
66                 <command id="cmd_broken" />
67                 <command id="sel_copy_details"/>
68                 <command id="sel_patron"/>
69                 <command id="sel_clip" />
70                 <command id="cmd_clear" />
71                 <command id="cmd_show_my_libs" />
72                 <command id="cmd_show_all_libs" />
73                 <command id="cmd_show_libs_with_copies" />
74
75                 <command id="sel_mark_items_damaged" />
76                 <command id="sel_mark_items_missing" />
77                 <command id="cmd_add_items"/>
78                 <command id="cmd_add_items_to_buckets"/>
79                 <command id="cmd_edit_items"/>
80                 <command id="cmd_replace_barcode"/>
81                 <command id="cmd_delete_items"/>
82                 <command id="cmd_transfer_items"/>
83                 <command id="cmd_print_spine_labels"/>
84                 <command id="cmd_add_volumes"/>
85                 <command id="cmd_edit_volumes"/>
86                 <command id="cmd_delete_volumes"/>
87                 <command id="cmd_mark_volume"/>
88                 <command id="cmd_mark_library"/>
89                 <command id="cmd_transfer_volume"/>
90                 <command id="cmd_refresh_list"/>
91         </commandset>
92
93         <popupset>
94                 <popup id="copy_browser_actions">
95                         <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C"/>
96                         <menuitem command="cmd_add_items_to_buckets" label="Add Items to Buckets" accesskey="B"/>
97                         <menuitem command="sel_copy_details" label="Show Item Details" accesskey="I" />
98                         <menuitem command="sel_patron" label="Show Last Few Circulations" accesskey="L"/>
99                         <menuseparator/>
100                         <menuitem command="cmd_edit_items" label="Edit Item Attributes" accesskey="E"/>
101                         <menuitem command="cmd_transfer_items" label="Transfer Items to Previously Marked Volume" accesskey="T"/>
102                         <menuseparator/>
103                         <menuitem command="cmd_add_volumes" label="Add Volumes" accesskey="V"/>
104                         <menuitem command="cmd_mark_library" label="Mark Library as Volume Transfer Destination" accesskey="M"/>
105                         <menuseparator/>
106                         <menuitem command="cmd_add_items" label="Add Items" accesskey="A"/>
107                         <menuitem command="cmd_edit_volumes" label="Edit Volumes" accesskey="E"/>
108                         <menuitem command="cmd_mark_volume" label="Mark Volume as Item Transfer Destination" accesskey="M"/>
109                         <menuitem command="cmd_transfer_volume" label="Transfer Volumes to Previously Marked Library" accesskey="T"/>
110                         <menuseparator/>
111                         <menuitem command="cmd_delete_items" label="Delete Items" accesskey=""/>
112                         <menuitem command="cmd_delete_volumes" label="Delete Volumes" accesskey=""/>
113                         <menuseparator/>
114                         <menuitem command="sel_mark_items_damaged" label="Mark Item Damaged" accesskey="D"/>
115                         <menuitem command="sel_mark_items_missing" label="Mark Item Missing" accesskey="g"/>
116                         <menuseparator/>
117                         <menuitem command="cmd_print_spine_labels" label="Print Item Spine Labels" accesskey="P"/>
118                         <menuitem command="cmd_replace_barcode" label="Replace Barcode" accesskey=""/>
119                         <menuitem command="save_columns" label="Save Columns"/>
120                         <menuitem command="cmd_refresh_list" label="Refresh Listing" accesskey="R"/>
121                 </popup>
122         </popupset>
123
124         <groupbox flex="1" class="my_overflow">
125                 <caption label="Holdings Maintenance"/>
126                 <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>
127                 <hbox>
128                         <hbox id="x_lib_menu"/>
129                 </hbox>
130                 <hbox>
131                         <checkbox id="show_acns" label="Show Volumes" />
132                         <checkbox id="show_acps" label="Show Items" />
133                         <button label="Refresh" command="cmd_refresh_list" />
134                         <button label="Show Libs With Items" command="cmd_show_libs_with_copies" accesskey="L"/>
135                         <!-- <button label="Show My Libs" command="cmd_show_my_libs" accesskey="M"/>-->
136                         <!--
137                         <button label="Show All Libs" command="cmd_show_all_libs" accesskey=""/>
138                         -->
139                         <spacer flex="1"/>
140                         <menubar>
141                                 <menu label="Actions for Selected Rows" accesskey="f">
142                                         <menupopup>
143                                                 <menuitem command="sel_clip" label="Copy to Clipboard" accesskey="C"/>
144                                                 <menuitem command="cmd_add_items_to_buckets" label="Add Items to Buckets" accesskey="B"/>
145                                                 <menuitem command="sel_copy_details" label="Show Item Details" accesskey="I" />
146                                                 <menuitem command="sel_patron" label="Show Last Few Circulations" accesskey="L"/>
147                                                 <menuseparator/>
148                                                 <menuitem command="cmd_edit_items" label="Edit Item Attributes" accesskey="E"/>
149                                                 <menuitem command="cmd_transfer_items" label="Transfer Items to Previously Marked Volume" accesskey="T"/>
150                                                 <menuseparator/>
151                                                 <menuitem command="cmd_add_volumes" label="Add Volumes" accesskey="V"/>
152                                                 <menuitem command="cmd_mark_library" label="Mark Library as Volume Transfer Destination" accesskey="M"/>
153                                                 <menuseparator/>
154                                                 <menuitem command="cmd_add_items" label="Add Items" accesskey="A"/>
155                                                 <menuitem command="cmd_edit_volumes" label="Edit Volumes" accesskey="E"/>
156                                                 <menuitem command="cmd_mark_volume" label="Mark Volume as Item Transfer Destination" accesskey="M"/>
157                                                 <menuitem command="cmd_transfer_volume" label="Transfer Volumes to Previously Marked Library" accesskey="T"/>
158                                                 <menuseparator/>
159                                                 <menuitem command="cmd_delete_items" label="Delete Items" accesskey=""/>
160                                                 <menuitem command="cmd_delete_volumes" label="Delete Volumes" accesskey=""/>
161                                                 <menuseparator/>
162                                                 <menuitem command="sel_mark_items_damaged" label="Mark Item Damaged" accesskey="D"/>
163                                                 <menuitem command="sel_mark_items_missing" label="Mark Item Missing" accesskey="g"/>
164                                                 <menuseparator/>
165                                                 <menuitem command="cmd_print_spine_labels" label="Print Item Spine Labels" accesskey="P"/>
166                                                 <menuitem command="cmd_replace_barcode" label="Replace Barcode" accesskey=""/>
167                                                 <menuitem command="save_columns" label="Save Columns"/>
168                                                 <menuitem command="cmd_refresh_list" label="Refresh Listing" accesskey="R"/>
169                                         </menupopup>
170                                 </menu>
171                         </menubar>
172                 </hbox>
173                 <tree id="copy_tree" flex="1" enableColumnDrag="true" context="copy_browser_actions"/>
174         </groupbox>
175
176 </window>
177