[open-ils-commits] r17464 - in trunk/Open-ILS: web/opac/locale/en-US xul/staff_client/chrome/content/main xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 2 19:57:52 EDT 2010
Author: phasefx
Date: 2010-09-02 19:57:51 -0400 (Thu, 02 Sep 2010)
New Revision: 17464
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
trunk/Open-ILS/xul/staff_client/server/patron/holds.js
trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul
Log:
wire up the alternate print approach for full pull lists
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-09-02 23:57:47 UTC (rev 17463)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-09-02 23:57:51 UTC (rev 17464)
@@ -2977,6 +2977,8 @@
<!ENTITY staff.patron.holds_overlay.holds_export.label "Export">
<!ENTITY staff.patron.holds_overlay.print.label "Print">
<!ENTITY staff.patron.holds_overlay.print.accesskey "P">
+<!ENTITY staff.patron.holds_overlay.print_full_pull_list.label "Print Full Pull List">
+<!ENTITY staff.patron.holds_overlay.print_full_pull_list.accesskey "u">
<!ENTITY staff.patron.holds_overlay.place_hold.label "Place Hold">
<!ENTITY staff.patron.holds_overlay.place_hold.accesskey "H">
<!ENTITY staff.patron.holds_overlay.show_cancelled_holds.label "Show Cancelled Holds">
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2010-09-02 23:57:47 UTC (rev 17463)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2010-09-02 23:57:51 UTC (rev 17464)
@@ -129,6 +129,7 @@
'FM_AHR_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.retrieve' },
'FM_AHR_PULL_LIST_COUNT' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.retrieve.count' },
'FM_AHR_ID_LIST_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.id_list.retrieve', 'secure' : false },
+ 'HTML_HOLD_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.print' },
'FM_AHR_ONSHELF_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.captured_holds.on_shelf.retrieve' },
'FM_AHR_ID_LIST_ONSHELF_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.captured_holds.id_list.on_shelf.retrieve', 'secure' : false },
'FM_AHR_ID_LIST_EXPIRED_ONSHELF_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.captured_holds.id_list.expired_on_shelf.retrieve', 'secure' : false },
Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2010-09-02 23:57:47 UTC (rev 17463)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2010-09-02 23:57:51 UTC (rev 17464)
@@ -289,7 +289,31 @@
);
}
],
-
+ 'cmd_holds_print_full' : [
+ ['command'],
+ function() {
+ var x_print_full_pull_list = document.getElementById('print_full_btn');
+ try {
+ if (progressmeter) {
+ progressmeter.mode = 'undetermined';
+ progressmeter.hidden = false;
+ x_print_full_pull_list.disabled = true;
+ }
+ JSAN.use('util.print');
+ var print = new util.print('default');
+ var robj = obj.network.simple_request('HTML_HOLD_PULL_LIST',[ses()]);
+ if (typeof robj.ilsevent != 'undefined') { throw(robj); }
+ print.simple( robj.template_output().data() );
+ } catch(E) {
+ obj.error.standard_unexpected_error_alert('cmd_holds_print_full',E);
+ }
+ if (progressmeter) {
+ progressmeter.mode = 'determined';
+ progressmeter.hidden = true;
+ x_print_full_pull_list.disabled = false;
+ }
+ }
+ ],
'cmd_holds_print' : [
['command'],
function() {
@@ -1259,6 +1283,7 @@
var x_show_cancelled_deck = document.getElementById('show_cancelled_deck');
var x_clear_shelf_widgets = document.getElementById('clear_shelf_widgets');
var x_expired_checkbox = document.getElementById('expired_checkbox');
+ var x_print_full_pull_list = document.getElementById('print_full_btn');
switch(obj.hold_interface_type) {
case 'shelf':
obj.render_lib_menus({'pickup_lib':true});
@@ -1269,6 +1294,7 @@
break;
case 'pull' :
if (x_fetch_more) x_fetch_more.hidden = false;
+ if (x_print_full_pull_list) x_print_full_pull_list.hidden = false;
if (x_lib_type_menu) x_lib_type_menu.hidden = true;
if (x_lib_menu_placeholder) x_lib_menu_placeholder.hidden = true;
break;
Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul 2010-09-02 23:57:47 UTC (rev 17463)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul 2010-09-02 23:57:51 UTC (rev 17464)
@@ -18,6 +18,7 @@
<command id="cmd_csv_to_printer" />
<command id="cmd_csv_to_file" />
<command id="cmd_holds_print" />
+ <command id="cmd_holds_print_full" />
<command id="cmd_show_catalog" />
<command id="cmd_retrieve_patron" />
<command id="cmd_holds_edit_desire_mint_condition" />
@@ -186,6 +187,7 @@
</button>
<button id="holds_print" label="&staff.patron.holds_overlay.print.label;" command="cmd_holds_print" accesskey="&staff.patron.holds_overlay.print.accesskey;" />
+ <button id="print_full_btn" hidden="true" label="&staff.patron.holds_overlay.print_full_pull_list.label;" command="cmd_holds_print_full" accesskey="&staff.patron.holds_overlay.print_full_pull_list.accesskey;" />
<spacer flex="1"/>
</hbox>
More information about the open-ils-commits
mailing list