Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
David Cook 789c562e18 Bug 11014 - Slip Print Problem in Chrome
Currently, slips cannot be printed in circulation, members, or the
self check out when using Chrome.

This patch adds a timer of 1ms which allows Chrome's custom code to
prevent "window.close" occuring before the user has dealt with the
print window.

This patch also allows admins to use the 'IntranetSlipPrinterJS'
system preference to override the slip printing code by centralizing
all the slip printing code in slip-print.inc, and including this JS
anywhere it's needed in the staff client.

I haven't used this include in the OPAC SCO but perhaps it would make
sense to do so as well (even if it isn't referred to in the syspref's
name).

_TEST PLAN_
1) Using Chrome on Windows (not sure if this is an issue on other OSes),
try to print a slip in the following locations:

Fines Tab -> Print button
koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt:

Details tab -> Print button -> Print slip || Print quick slip
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt:

Details tab -> Print button -> Print summary
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt:

Fines tab -> Accounts tab -> Print (Manual invoice of $5 sundry)
koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt:

Checkout tab -> Print button
koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt:

Finish button
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt

2) Note that each time you try to print, a new print page is created
but closed before you have a chance to print.

3) Apply the patch

4) Repeat Step 1

5) Note that the print page now doesn't close until after you've
chosen to print or cancel.

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-05-30 16:05:23 -03:00
..
bookcount.tt Bug 11616: remove jQuery tablesorter plugin 2014-01-31 15:24:01 +00:00
branchoverdues.tt Bug 11359: Add the borrower's cardnumber and phonenumber to the branch overdues report 2014-03-10 20:25:26 +00:00
branchtransfers.tt
circulation-home.tt Bug 10493: Add renewal script 2013-10-22 17:04:03 +00:00
circulation.tt Bug 12089: Remove use of dt_add_type_uk_date() - Circulation 2014-04-28 18:40:29 +00:00
offline-mf.tt Bug 12118 - remove unnecessary YUI assets included in offline circ manifest 2014-04-25 15:25:34 +00:00
offline.tt Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
overdue.tt Bug 11570 - Upgrade jQueryUI to latest version in the staff client 2014-04-07 15:37:27 +00:00
pendingreserves.tt Bug 12088: Improve date handling and sorting in holds to pull report 2014-04-28 18:31:29 +00:00
printslip.tt Bug 11014 - Slip Print Problem in Chrome 2014-05-30 16:05:23 -03:00
renew.tt Bug 7413: (follow-up) teach renew interface about too_soon 2014-04-08 23:22:05 +00:00
reserveratios.tt Bug 11665: An ability to place orders directly from hold ratios list 2014-05-04 19:13:39 +00:00
returns.tt Bug 11629: (follow-up) fix message displayed when item is made available 2014-05-26 03:26:02 +00:00
selectbranchprinter.tt Bug 10054 - When SingleBranchMode is enabled, allow superlibrarians to set logged in library 2013-05-12 10:11:42 -04:00
stats.tt
transfer-slip.tt Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
transferstoreceive.tt Bug 12089: Remove use of dt_add_type_uk_date() - Circulation 2014-04-28 18:40:29 +00:00
view_holdsqueue.tt Bug 11711 - Use new DataTables include in circ templates 2014-04-08 23:47:27 +00:00
waitingreserves.tt Bug 12089: Remove use of dt_add_type_uk_date() - Circulation 2014-04-28 18:40:29 +00:00