From ba6a9a95d186c37e41b4a129ed14e68101710177 Mon Sep 17 00:00:00 2001 From: Steven Chan Date: Mon, 29 Jul 2013 16:27:13 -0700 Subject: [PATCH] Fix LP904860, Cannot print a patron address label The sequence of events for printing an address label is as follows. Staff client Code in the util/print.js file builds an HTML page of the address label. The page includes two vital components, 1) a source tag to pull 'print_win.js' file from the server, and 2) an onload event handler bound to the body tag to execute a 'print_init()' function that is defined in the source tag. However, print_init() is undefined because the source tag contains a badly formed URL. It needs to be prefixed by 'oils://remote' so that the new 'oils:' protocol can be used to pull the file remotely from the server. Signed-off-by: Steven Chan Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/chrome/content/util/print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/print.js b/Open-ILS/xul/staff_client/chrome/content/util/print.js index 21d3d8f782..e66e81d047 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/print.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/print.js @@ -167,7 +167,7 @@ util.print.prototype = { if(!params.type) { params.type = ''; } - var my_prefix = '/xul/server/'; + var my_prefix = 'oils://remote/xul/server/'; if(window.location.protocol == "chrome:") { // Likely in offline interface my_prefix = 'chrome://open_ils_staff_client/content/'; -- 2.11.0