[open-ils-commits] r10672 - trunk/Open-ILS/xul/staff_client/server/circ

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 22 00:36:45 EDT 2008


Author: phasefx
Date: 2008-09-22 00:36:43 -0400 (Mon, 22 Sep 2008)
New Revision: 10672

Modified:
   trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js
   trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul
Log:
toward standardizing some list actions

Modified: trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js	2008-09-22 04:22:49 UTC (rev 10671)
+++ trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js	2008-09-22 04:36:43 UTC (rev 10672)
@@ -36,7 +36,7 @@
 				'map_row_to_columns' : circ.util.std_map_row_to_columns(),
 				'on_select' : function() {
 					var sel = obj.list.retrieve_selection();
-					document.getElementById('clip_button').disabled = sel.length < 1;
+					document.getElementById('sel_clip').disabled = sel.length < 1;
 				}
 			}
 		);
@@ -48,7 +48,10 @@
 					'save_columns' : [ [ 'command' ], function() { obj.list.save_columns(); } ],
 					'sel_clip' : [
 						['command'],
-						function() { obj.list.clipboard(); }
+						function() { 
+							obj.list.clipboard(); 
+							obj.controller.view.in_house_use_barcode_entry_textbox.focus();
+						}
 					],
 					'in_house_use_menu_placeholder' : [
 						['render'],
@@ -162,23 +165,19 @@
 							obj.list.print(p);
 						}
 					],
-					'cmd_in_house_use_export' : [
-						['command'],
-						function() {
-							obj.list.dump_csv_to_clipboard();
-						}
-					],
+					'cmd_csv_to_clipboard' : [ ['command'], function() { 
+                        obj.list.dump_csv_to_clipboard(); 
+                        obj.controller.view.in_house_use_barcode_entry_textbox.focus();
+                    } ],
+					'cmd_csv_to_printer' : [ ['command'], function() { 
+                        obj.list.dump_csv_to_printer(); 
+                        obj.controller.view.in_house_use_barcode_entry_textbox.focus();
+                    } ],
+					'cmd_csv_to_file' : [ ['command'], function() { 
+                        obj.list.dump_csv_to_file( { 'defaultFileName' : 'checked_in.txt' } ); 
+                        obj.controller.view.in_house_use_barcode_entry_textbox.focus();
+                    } ]
 
-					'cmd_in_house_use_reprint' : [
-						['command'],
-						function() {
-						}
-					],
-					'cmd_in_house_use_done' : [
-						['command'],
-						function() {
-						}
-					]
 				}
 			}
 		);

Modified: trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul	2008-09-22 04:22:49 UTC (rev 10671)
+++ trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul	2008-09-22 04:36:43 UTC (rev 10672)
@@ -72,11 +72,11 @@
 
 	<commandset id="in_house_use_cmds">
 		<command id="sel_clip" />
+		<command id="cmd_csv_to_clipboard" />
+		<command id="cmd_csv_to_printer" />
+		<command id="cmd_csv_to_file" />
 		<command id="cmd_in_house_use_submit_barcode" />
 		<command id="cmd_in_house_use_print" />
-		<command id="cmd_in_house_use_export" />
-		<command id="cmd_in_house_use_reprint" />
-		<command id="cmd_in_house_use_done" />
 		<command id="save_columns" />
 	</commandset>
 
@@ -105,19 +105,26 @@
 	<tree id="in_house_use_list" flex="1" enableColumnDrag="true" />
 
 	<hbox id="in_house_use_bottom_ui">
+        <button id="list_actions" oncommand="this.firstChild.showPopup();"
+            label="&staff.generic.list_actions.label;" 
+            accesskey="&staff.generic.list_actions.accesskey;" 
+            type="menu" allowevents="true">
+            <menupopup id="list_actions_popup">
+                <menuitem command="sel_clip" label="&staff.generic.list_actions.sel_clip.label;" accesskey="&staff.generic.list_actions.sel_clip.accesskey;" disabled="true" />
+                <menuitem command="cmd_csv_to_printer" label="&staff.generic.list_actions.csv_to_printer.label;" accesskey="&staff.generic.list_actions.csv_to_printer.accesskey;" />
+                <menuitem command="cmd_csv_to_clipboard" label="&staff.generic.list_actions.csv_to_clipboard.label;" accesskey="&staff.generic.list_actions.csv_to_clipboard.accesskey;" />
+                <menuitem command="cmd_csv_to_file" label="&staff.generic.list_actions.csv_to_file.label;" accesskey="&staff.generic.list_actions.csv_to_file.accesskey;" />
+                <menuitem command="save_columns" label="&staff.generic.list_actions.save_columns.label;" accesskey="&staff.generic.list_actions.save_columns.accesskey;" />
+            </menupopup>
+        </button>
+
 		<button id="in_house_use_print" 
 			label="&staff.circ.in_house_use.print.label;" 
 			command="cmd_in_house_use_print"
 			accesskey=""/>
-		<button id="in_house_use_export" 
-			label="&staff.circ.in_house_use.export.label;"
-			command="cmd_in_house_use_export"
-			accesskey=""/>
 		<checkbox id="trim_list" label="&staff.circ.in_house_use.trim_list.label;" checked="true" persist="checked"/> 
 		<checkbox id="strict_barcode" label="&staff.circ.in_house_use.strict_barcode.label;" checked="false" persist="checked"/> 
 		<spacer id="pcii3s" flex="1"/>
-		<button id="clip_button" disabled="true" command="sel_clip" label="&staff.circ.in_house_use.sel_clip.label;" />
-		<button id="save_cols_btn" command="save_columns" label="&staff.circ.in_house_use.save_cols_btn.label;" />
 	</hbox>
 
 </groupbox>



More information about the open-ils-commits mailing list