From d1ccf69bfe8ab232ea1d08558bce9e2c5c223ef5 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 17 Nov 2017 15:54:12 -0500 Subject: [PATCH] Add LIBRARY_PHONE XUL receipt template macro Signed-off-by: Bill Erickson --- Open-ILS/xul/staff_client/chrome/content/util/print.js | 2 ++ 1 file changed, 2 insertions(+) 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 1e4b7df5fd..372449ba9c 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/print.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/print.js @@ -436,6 +436,8 @@ util.print.prototype = { try{b = s; s = s.replace(/%LIBRARY%/g,this.escape_html(params.lib.name()));} catch(E){s = b; this.error.sdump('D_WARN','string = <' + s + '> error = ' + js2JSON(E)+'\n');} + try{b = s; s = s.replace(/%LIBRARY_PHONE%/g,this.escape_html(params.lib.phone()));} + catch(E){s = b; this.error.sdump('D_WARN','string = <' + s + '> error = ' + js2JSON(E)+'\n');} try{b = s; s = s.replace(/%PINES_CODE%/g,this.escape_html(params.lib.shortname()));} catch(E){s = b; this.error.sdump('D_WARN','string = <' + s + '> error = ' + js2JSON(E)+'\n');} try{b = s; s = s.replace(/%SHORTNAME%/g,this.escape_html(params.lib.shortname()));} -- 2.11.0