From d5ac9f7d661631e5d9efea2975800175bfc3acf1 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 26 Apr 2011 20:44:11 +0000 Subject: [PATCH] Hold, Transit, and Hold/Transit Slips used to suppress the printer dialog, but we lost that when we moved to templated slips. This adds a sticky Printer Prompt checkbox to Check In for controlling that behavior. git-svn-id: svn://svn.open-ils.org/ILS/trunk@20327 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 1 + Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul | 1 + Open-ILS/xul/staff_client/server/circ/util.js | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 582673bd65..405dccabbc 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2176,6 +2176,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul index e208d5b606..522a740a1d 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul @@ -155,6 +155,7 @@ label="&staff.checkin.print_receipt.label;" command="cmd_checkin_print" accesskey="&staff.checkin.print_receipt.accesskey;"/> + diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 3e13c55600..35870e4ef7 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2819,6 +2819,9 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che 'list' : print_list, 'data' : print_data }; + if ($('printer_prompt')) { + if (! $('printer_prompt').checked) { params.no_prompt = true; } + } print.tree_list( params ); } } catch(E) { @@ -3209,6 +3212,9 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che 'list' : print_list, 'data' : print_data }; + if ($('printer_prompt')) { + if (! $('printer_prompt').checked) { params.no_prompt = true; } + } print.tree_list( params ); } } catch(E) { -- 2.43.2