Hold, Transit, and Hold/Transit Slips used to suppress the printer dialog, but we...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Apr 2011 20:44:11 +0000 (20:44 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Apr 2011 20:44:11 +0000 (20:44 +0000)
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
Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul
Open-ILS/xul/staff_client/server/circ/util.js

index 582673b..405dcca 100644 (file)
 <!ENTITY staff.circ.checkin_overlay.actions.label "Actions for Selected Items">
 <!ENTITY staff.circ.checkin_overlay.actions.accesskey "S">
 <!ENTITY staff.circ.checkin_overlay.checkin_export.label "Export">
+<!ENTITY staff.circ.checkin_overlay.printer_prompt.label "Printer Prompt">
 <!ENTITY staff.circ.checkin_overlay.trim_list.label "Trim List (20 rows)">
 <!ENTITY staff.circ.checkin_overlay.async_checkin.label "Fast Entry (Asynchronous)">
 <!ENTITY staff.circ.checkin_overlay.strict_barcode.label "Strict Barcode">
index e208d5b..522a740 100644 (file)
         label="&staff.checkin.print_receipt.label;" 
         command="cmd_checkin_print"
         accesskey="&staff.checkin.print_receipt.accesskey;"/>
+    <checkbox id="printer_prompt" label="&staff.circ.checkin_overlay.printer_prompt.label;" checked="true" oils_persist="checked"/>
     <checkbox id="trim_list" label="&staff.circ.checkin_overlay.trim_list.label;" checked="true" oils_persist="checked"/> 
     <checkbox id="async_checkin" label="&staff.circ.checkin_overlay.async_checkin.label;" checked="false" oils_persist="checked"/> 
     <checkbox id="strict_barcode" label="&staff.circ.checkin_overlay.strict_barcode.label;" checked="false" oils_persist="checked"/> 
index 3e13c55..35870e4 100644 (file)
@@ -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) {