Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
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
..
errors
sco Bug 11014 - Slip Print Problem in Chrome 2014-05-30 16:05:23 -03:00
search Bug 12271: (follow-up) fix minor errors in Bootstrap theme 2014-05-19 16:25:53 +00:00
svc Bug 11951: fix OPAC search suggestions template error 2014-04-09 22:50:53 +00:00
text
ilsdi.tt Bug 11497: remove TT construct for picking a default string that i18n toolchain fails to pick up 2014-04-27 21:23:01 +00:00
maintenance.tt
opac-account.tt Bug 12165: (follow-up) display record title 2014-05-23 13:46:08 +00:00
opac-addbybiblionumber.tt
opac-advsearch.tt Bug 10936: remove duplicate 'Standard number' option in Advanced search 2014-05-22 21:45:19 +00:00
opac-alert-subscribe.tt
opac-auth-detail.tt Bug 11794 - restore functioning of opacSerialDefaultTab 2014-03-10 15:29:04 +00:00
opac-auth-MARCdetail.tt
opac-auth.tt Bug 12211: fix wrong home link in bootstrap public catalog login page 2014-05-22 21:12:40 +00:00
opac-authorities-home.tt
opac-authoritiessearchresultlist.tt Bug 10691: (follow-up) restore behaviour for control field ($w) 2014-01-16 22:39:42 +00:00
opac-basket.tt
opac-blocked.tt Bug 10195: (follow-up) add blocked record template for Bootstrap 2014-05-05 15:46:48 +00:00
opac-browser.tt
opac-course-details.tt Bug 9723: display time due for hourly loans in the public catalog 2014-05-08 16:38:43 +00:00
opac-course-reserves.tt
opac-detail.tt Bug 7720: (follow-up) restore CSS selectors for the current/home location columns 2014-05-26 02:53:58 +00:00
opac-downloadcart.tt
opac-downloadshelf.tt
opac-full-serial-issues.tt
opac-imageviewer.tt
opac-ISBDdetail.tt
opac-main.tt
opac-MARCdetail.tt Bug 11878 - Eliminate use of deprecated jQuery .toggle() method usage 2014-03-26 19:25:11 +00:00
opac-memberentry-update-submitted.tt
opac-memberentry.tt Bug 11809: don't display 'Clear date' on OPAC patron details form if date of birth is required 2014-02-26 17:32:06 +00:00
opac-messaging.tt
opac-mymessages.tt
opac-opensearch.tt Bug 11308: fix RSS page in bootstrap theme 2013-11-27 15:50:19 +00:00
opac-overdrive-search.tt Bug 12058: make OverDrive search results page show cart, lists, and login links 2014-04-17 16:37:59 +00:00
opac-passwd.tt
opac-privacy.tt
opac-readingrecord.tt Bug 11684: avoid mixed content warnings using SSL with Amazon - opac-readingrecord and opac-user 2014-05-05 03:22:29 +00:00
opac-registration-confirmation.tt
opac-registration-email-sent.tt
opac-registration-invalid.tt
opac-reserve.tt Bug 7825: (follow-up) do not preselect item when OpacItemHolds is 'force' - bootstrap 2014-05-26 01:01:12 +00:00
opac-results-grouped.tt Bug 12271: (follow-up) fix minor errors in Bootstrap theme 2014-05-19 16:25:53 +00:00
opac-results.tt Bug 10944: follow-up for Bootstrap Amazon images on https OPAC 2014-05-05 03:31:06 +00:00
opac-review.tt Bug 11497: remove TT construct for picking a default string that i18n toolchain fails to pick up 2014-04-27 21:23:01 +00:00
opac-search-history.tt Bug 10807: (follow-up) change wording of tabs 2014-05-05 02:38:08 +00:00
opac-sendbasket.tt
opac-sendbasketform.tt
opac-sendshelf.tt Bug 11912: (refactoring followup) make GetMarcISBN implement its advertised API 2014-04-19 18:23:15 +00:00
opac-sendshelfform.tt
opac-serial-issues.tt Bug 11752: display the correct frequency for serial subscriptions in OPAC details 2014-04-18 21:28:03 +00:00
opac-shareshelf.tt Bug 9032: (follow-up) wording tweaks 2014-04-20 22:00:46 +00:00
opac-shelves.tt Bug 8262: explicitly warn that database admin account cannot create lists 2014-04-20 22:55:22 +00:00
opac-showmarc.tt
opac-showreviews-rss.tt
opac-showreviews.tt
opac-suggestions.tt Bug 11127: (follow-up) define a specific message for suggestions 2014-03-13 16:50:12 +00:00
opac-tags.tt
opac-tags_subject.tt Bug 11497: remove TT construct for picking a default string that i18n toolchain fails to pick up 2014-04-27 21:23:01 +00:00
opac-topissues.tt Bug 11692: fix display of additional bib information in OPAC "most popular" pag 2014-02-10 15:17:50 +00:00
opac-user.tt Bug 9723: display time due for hourly loans in the public catalog 2014-05-08 16:38:43 +00:00