[Bug 43114] New: When printing hold/transfer slips on return.tt print window does not auto close in Firfox
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Bug ID: 43114 Summary: When printing hold/transfer slips on return.tt print window does not auto close in Firfox Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: lucas@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com Target Milestone: --- 0. Use Firefox 1. Place a hold 2. Trigger the hold 3. Print the HOLD_SLIP 4. Notice the print window does not automatically close itself -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 David Kuhn <techservspec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |techservspec@gmail.com --- Comment #1 from David Kuhn <techservspec@gmail.com> --- The same also happens when printing a quick slip. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Sally Lodico <Slodico@knoxlib.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Slodico@knoxlib.org --- Comment #2 from Sally Lodico <Slodico@knoxlib.org> --- We're seeing this too. What changed to cause this? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Alex Carver [Acerock7] <alex@rcls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alex@rcls.org --- Comment #3 from Alex Carver [Acerock7] <alex@rcls.org> --- +1. Seems to affect all slips. Can replicate with issue slips and summary slips as well. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Sam Young <sam.young@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|When printing hold/transfer |When printing hold/transfer |slips on return.tt print |slips on return.tt print |window does not auto close |window does not auto close |in Firfox |in Firefox CC| |sam.young@bywatersolutions. | |com -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |41705 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41705 [Bug 41705] Popup blockers may be triggered by options to automatically display payment receipt for printing after making a payments -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Christopher Brannon <cbrannon@cdalibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cbrannon@cdalibrary.org --- Comment #4 from Christopher Brannon <cbrannon@cdalibrary.org> --- We're seeing this as well. I am noticing we are on 25.11.06 now, on both our test and production server. Didn't have this issue on .05. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 --- Comment #5 from Christopher Brannon <cbrannon@cdalibrary.org> --- My testing produced these results: This is the javascript the popup window generates: window.addEventListener('load', function() { window.print(); window.onafterprint = function () { window.close(); } }); Testing shows: afterprint fires correctly. window.close() works when run manually. Replacing the script with: window.onafterprint = function() { setTimeout(() => { window.close(); }, 100); }; window.print(); results in the window closing successfully. This appears to be a timing issue involving window.print() and registration/execution of the afterprint handler in Firefox. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 --- Comment #6 from Christopher Brannon <cbrannon@cdalibrary.org> --- Temporary workaround: In IntranetSlipPrinterJS window.addEventListener('load', function() { window.addEventListener('afterprint', function() { setTimeout(function() { window.close(); }, 100); }); window.print(); }); -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Rebecca Coert <rcoert@arlingtonva.us> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rcoert@arlingtonva.us -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 --- Comment #7 from Alex Carver [Acerock7] <alex@rcls.org> --- Christopher's JS tested and working on our site. Thank you! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Bug 43114 depends on bug 41705, which changed state. Bug 41705 Summary: Popup blockers may be triggered by options to automatically display payment receipt for printing after making a payments https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41705 What |Removed |Added ---------------------------------------------------------------------------- Status|Needs documenting |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Michelle Spinney <mspinney@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mspinney@clamsnet.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Samuel Sowanick <sam.sowanick@corvallisoregon.gov> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam.sowanick@corvallisorego | |n.gov --- Comment #8 from Samuel Sowanick <sam.sowanick@corvallisoregon.gov> --- +1. We too are having this issue. The work around is working for us too. Thank you Christopher. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Jonathan Field <jonathan.field@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.field@openfifth.co | |.uk --- Comment #9 from Jonathan Field <jonathan.field@openfifth.co.uk> --- We have also experienced this. We also mitigated it with Christopher's javascript fix in IntranetSlipPrinterJS. Between 25.11.04 and 25.11.06, bug 41705 removed a fallback line from koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc setTimeout('window.close()', 1000); //Hack from Chrome < 63 This fallback forced the print pop-up window closed one second after printing, regardless of whether the browser's afterprint event had fired. It was removed as part of 41705's clean-up, on the basis that it was an obsolete workaround for old Chrome versions. Unfortunately it still affects Firefox. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|When printing hold/transfer |When printing slips the |slips on return.tt print |print window does not auto |window does not auto close |close in Firefox |in Firefox | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org