]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Fix LP904860, Cannot print a patron address label
authorSteven Chan <schan@sitka.bclibraries.ca>
Mon, 29 Jul 2013 23:27:13 +0000 (16:27 -0700)
committerBen Shum <bshum@biblio.org>
Fri, 19 Sep 2014 00:00:39 +0000 (20:00 -0400)
commitba6a9a95d186c37e41b4a129ed14e68101710177
treeff5e5f8170162bc7d9adcc9cdf67af89c5e1855e
parent4dd61e04d95752acda26bb05ef826c9711820559
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 <schan@sitka.bclibraries.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/xul/staff_client/chrome/content/util/print.js