[open-ils-commits] r10675 -
trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 22 01:04:48 EDT 2008
Author: phasefx
Date: 2008-09-22 01:04:45 -0400 (Mon, 22 Sep 2008)
New Revision: 10675
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/holds.js
trunk/Open-ILS/xul/staff_client/server/patron/holds.xul
trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul
Log:
toward standardizing some list actions
Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2008-09-22 04:51:37 UTC (rev 10674)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2008-09-22 05:04:45 UTC (rev 10675)
@@ -215,16 +215,9 @@
}
}
],
- 'cmd_holds_export' : [
- ['command'],
- function() {
- try {
- obj.list.dump_csv_to_clipboard();
- } catch(E) {
- obj.error.standard_unexpected_error_alert('export 1',E);
- }
- }
- ],
+ 'cmd_csv_to_clipboard' : [ ['command'], function() { obj.list.dump_csv_to_clipboard(); } ],
+ 'cmd_csv_to_printer' : [ ['command'], function() { obj.list.dump_csv_to_printer(); } ],
+ 'cmd_csv_to_file' : [ ['command'], function() { obj.list.dump_csv_to_file( { 'defaultFileName' : 'holds.txt' } ); } ],
'cmd_show_notifications' : [
['command'],
Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.xul 2008-09-22 04:51:37 UTC (rev 10674)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.xul 2008-09-22 05:04:45 UTC (rev 10675)
@@ -78,8 +78,11 @@
<command id="sel_copy_details" disabled="true"/>
<command id="sel_patron" disabled="true"/>
<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_holds_print" />
- <command id="cmd_holds_export" />
<command id="cmd_show_catalog" />
<command id="cmd_retrieve_patron" />
<command id="cmd_show_notifications" />
Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul 2008-09-22 04:51:37 UTC (rev 10674)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul 2008-09-22 05:04:45 UTC (rev 10675)
@@ -102,12 +102,21 @@
</hbox>
<hbox id="holds_bottom_ui" flex="1">
+ <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;" />
+ <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="holds_print" label="Print" command="cmd_holds_print" accesskey="P" />
<spacer flex="1"/>
- <button id="holds_print" label="Print" command="cmd_holds_print" accesskey="P" />
- <button id="holds_export"
- label="&staff.patron.holds_overlay.holds_export.label;"
- command="cmd_holds_export"
- accesskey=""/>
</hbox>
</overlay>
More information about the open-ils-commits
mailing list