offline printer role
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Sep 2010 17:02:52 +0000 (17:02 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Sep 2010 17:02:52 +0000 (17:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17869 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
Open-ILS/xul/staff_client/chrome/content/circ/offline.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
Open-ILS/xul/staff_client/server/admin/printer_settings.html

index ce08625..398e0e6 100644 (file)
 <!ENTITY staff.printing.context.radio.receipt.label "Receipt">
 <!ENTITY staff.printing.context.radio.label.label "Label">
 <!ENTITY staff.printing.context.radio.mail.label "Mail">
+<!ENTITY staff.printing.context.radio.offline.label "Offline">
 <!ENTITY staff.printing.normal_settings.header "Normal Settings">
 <!ENTITY staff.printing.advanced_settings.header "Advanced Settings">
 <!ENTITY staff.printing.advanced.mozilla_print "Use default print strategy (Mozilla Print)">
index d318ddb..0c51156 100644 (file)
@@ -272,7 +272,7 @@ OpenILS.data.prototype = {
         var obj = this;
         try {
             obj.print_strategy = {};
-            var print_contexts = [ 'default', 'receipt', 'label', 'mail' ];
+            var print_contexts = [ 'default', 'receipt', 'label', 'mail', 'offline' ];
             for (var i in print_contexts) {
                 JSAN.use('util.file'); var file = new util.file('print_strategy.' + print_contexts[i]);
                 if (file._file.exists()) {
index 5fdf26e..12fe1b7 100644 (file)
@@ -52,7 +52,7 @@ circ.offline.prototype = {
                         'cmd_print_last_receipt' : [
                             ['command'],
                             function() { 
-                                JSAN.use('util.print'); var print = new util.print();
+                                JSAN.use('util.print'); var print = new util.print('offline');
                                 print.reprint_last();
                             }
                         ],
@@ -78,7 +78,7 @@ circ.offline.prototype = {
         data.print_list_defaults();
         data.load_saved_print_templates();
         data.fetch_print_strategy();
-        JSAN.use('util.print'); (new util.print()).GetPrintSettings();
+        JSAN.use('util.print'); (new util.print('offline')).GetPrintSettings();
     },
 
     'patron_init' : function() {
index 6208f32..fd6b69f 100644 (file)
@@ -113,6 +113,7 @@ function next_patron() {
             try {
                 var params = {
                     'template' : 'offline_checkin',
+                    'printer_context' : 'offline',
                     'callback' : function() {
                         g.list.clear();
                         var x = $('i_barcode'); x.value = ''; x.focus();
index a1dd912..1b6e3e1 100644 (file)
@@ -271,6 +271,7 @@ function next_patron(cancel) {
                 var params = {
                     'patron_barcode' : $('p_barcode').value,
                     'template' : 'offline_checkout',
+                    'printer_context' : 'offline',
                     'callback' : function() {
                         g.list.clear();
                         var x = $('i_barcode'); x.value = '';
index 113189d..f842406 100644 (file)
@@ -116,6 +116,7 @@ function next_patron() {
             try {
                 var params = {
                     'template' : 'offline_inhouse_use',
+                    'printer_context' : 'offline',
                     'callback' : function() {
                         g.list.clear();
                         var x = $('i_barcode'); x.value = ''; x.focus();
index 601e3e9..3b20468 100644 (file)
@@ -226,6 +226,7 @@ function next_patron(cancel) {
                         var params = {
                             'patron_barcode' : $('p_barcode').value,
                             'template' : 'offline_renew',
+                            'printer_context' : 'offline',
                             'callback' : function() {
                                 g.list.clear();
                                 var x = $('i_barcode'); x.value = '';
index 8f6ac18..3ab42ec 100644 (file)
@@ -34,6 +34,7 @@
         <input type="radio" name="context" value="receipt" onclick="g.set_printer_context('receipt');">&staff.printing.context.radio.receipt.label;</input>
         <input type="radio" name="context" value="label" onclick="g.set_printer_context('label');">&staff.printing.context.radio.label.label;</input>
         <input type="radio" name="context" value="mail" onclick="g.set_printer_context('mail');">&staff.printing.context.radio.mail.label;</input>
+        <input type="radio" name="context" value="offline" onclick="g.set_printer_context('offline');">&staff.printing.context.radio.offline.label;</input>
     </form> 
     <h1>&staff.printing.normal_settings.header;</h1>
     <iframe id="sample" src="printer_settings.txt"></iframe><br />