[open-ils-commits] r17898 - in branches/rel_2_0/Open-ILS/xul/staff_client: chrome/content/util server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Sep 22 16:03:14 EDT 2010


Author: phasefx
Date: 2010-09-22 16:03:09 -0400 (Wed, 22 Sep 2010)
New Revision: 17898

Modified:
   branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/print.js
   branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/spine_labels.js
Log:
merge r17896-17897 from trunk for printing fixes

Modified: branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/print.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/print.js	2010-09-22 20:01:59 UTC (rev 17897)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/print.js	2010-09-22 20:03:09 UTC (rev 17898)
@@ -16,6 +16,10 @@
     var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']);
     var key = 'oils.printer.external.cmd.' + this.context;
     var has_key = prefs.prefHasUserValue(key);
+    if(!has_key && this.context != 'default') {
+        key = 'oils.printer.external.cmd.default';
+        has_key = prefs.prefHasUserValue(key);
+    }
     this.oils_printer_external_cmd = has_key ? prefs.getCharPref(key) : '';
 
     return this;

Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/spine_labels.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/spine_labels.js	2010-09-22 20:01:59 UTC (rev 17897)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/spine_labels.js	2010-09-22 20:03:09 UTC (rev 17898)
@@ -580,6 +580,7 @@
             w.xulG = { 
                 'url' : 'about:blank',
                 'show_print_button' : 1,
+                'printer_context' : 'label',
                 'alternate_print' : 1,
                 'no_xulG' : 1,
                 'title' : $("catStrings").getString('staff.cat.spine_labels.preview.title'),
@@ -609,6 +610,7 @@
                     'url' : 'data:text/html;charset=utf-8,'+window.escape(html),
                     'html_source' : html,
                     'show_print_button' : 1,
+                    'printer_context' : 'label',
                     'no_xulG' : 1
                 }
             );



More information about the open-ils-commits mailing list