Main Koha release repository https://koha-community.org
Find a file
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
acqui Bug 3050 - Add an option to upload scanned invoices #2/3 2014-05-25 21:14:42 +00:00
admin Bug 12230: (follow-up) maxsuspensiondays should be set to NULL if not set 2014-05-26 01:40:15 +00:00
authorities Bug 10862: Add search history to the intranet interface 2014-05-05 03:06:33 +00:00
basket Bug 12065: use encode_qp consistently when sending basket/shelf 2014-05-09 15:14:40 +00:00
C4 Bug 11826: Use XSLT handler object in showmarc, Record.pm 2014-05-26 03:52:45 +00:00
catalogue Bug 11826: Use XSLT handler object in showmarc, Record.pm 2014-05-26 03:52:45 +00:00
cataloguing Bug 10330 - Rename system preference authoritysep to AuthoritySeperator 2014-05-23 13:26:48 +00:00
circ Bug 11629: (follow-up) Add message for librarian that status was updated 2014-05-26 03:23:37 +00:00
course_reserves Bug 11866: (follow-up) repair security issue introduced by main patch 2014-03-10 14:57:17 +00:00
debian Bug 12312 - correctly upgrade under Apache 2.2 2014-05-26 03:41:55 +00:00
docs Bug 7143: Updating history with new developers 2014-04-14 14:37:48 +00:00
errors
etc Bug 9612: (follow-up) restore elementSetName in Context.pm 2014-05-19 16:46:57 +00:00
install_misc
installer Bug 11629: DBRev 3.17.00.007 2014-05-26 03:28:46 +00:00
Koha Bug 11826: (follow-up) run perltidy on Koha/XSLT_Handler.pm 2014-05-26 03:59:11 +00:00
koha-tmpl Bug 11014 - Slip Print Problem in Chrome 2014-05-30 16:05:23 -03:00
labels Bug 8375: Use TrueType fonts in PDF::Reuse 2014-05-05 21:53:18 +00:00
members Bug 12292: ensure that patrons are not displayed as restricted even when the last restriction has expired 2014-05-22 16:51:14 +00:00
misc Bug 12301: Remove warnings on translate scripts 2014-05-30 15:46:17 -03:00
offline_circ
opac Bug 11826: Use XSLT handler object in showmarc, Record.pm 2014-05-26 03:52:45 +00:00
OpenILS Bug 9239 QA follow-up: remove stray debug code 2013-03-16 21:32:34 -04:00
patron_lists
patroncards
plugins
reports Bug 12214: display SQL errors in reports to users 2014-05-09 14:40:01 +00:00
reserve
reviews
rotating_collections
selenium
serials Bug 11263: Use all languages instead of just the translated ones 2014-05-05 05:01:36 +00:00
services
skel
sms Bug 10611: Use mysql_auto_reconnect instead of ping 2014-03-10 23:15:35 +00:00
suggestion Bug 4068: (follow-up) use URI::Escape 2014-05-08 16:36:10 +00:00
svc Bug 12114: (QA Followup) Use JSON instead of JSON::XS 2014-04-25 15:32:06 +00:00
t Bug 6254: (follow-up) work-around to fix a failing test case 2014-05-26 04:19:19 +00:00
tags
test
tmp/modified_authorities
tools Bug 8970 - fix MARC import under plack 2014-05-25 23:51:12 +00:00
virtualshelves Bug 12065: use encode_qp consistently when sending basket/shelf 2014-05-09 15:14:40 +00:00
xt Bug 12271: (follow-up) teach valid-templates.t how to include specified templates 2014-05-19 16:14:28 +00:00
.htaccess
.mailmap 7439 Mailmap for master 2012-01-27 12:27:58 +01:00
about.pl Bug 11596: report warnings on the about patch if indexing options in koha-conf.xml are missing 2014-04-20 17:07:04 +00:00
changelanguage.pl
edithelp.pl
fix-perl-path.PL
help.pl
INSTALL
install-CPAN.pl
INSTALL.debian
INSTALL.fedora7
INSTALL.opensuse
INSTALL.ubuntu
koha_perl_deps.pl
kohaversion.pl Bug 11629: DBRev 3.17.00.007 2014-05-26 03:28:46 +00:00
LICENSE
mainpage.pl Bug 7567 - Use, display, filter News by library 2014-04-07 18:14:19 +00:00
Makefile.PL Bug 10729: Add phrases configuration for ICU 2014-05-05 04:10:57 +00:00
MANIFEST.SKIP
README
README.robots
rewrite-config.PL Bug 10729: Add phrases configuration for ICU 2014-05-05 04:10:57 +00:00

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 3 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/