This is mainly a heads-up. As of Firefox v57 (Quantum), the addon jsPrintSetup is no longer supported. From what I've been able to tell in the bug reports this is due to missing functionality in the WebExtensions API. Relevant bug reports: Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1385827 Addon: https://github.com/edabg/jsprintsetup/issues/39
And it looks like the needed api will not be implemented by Mozilla... But there are some possible solutions which could replace the jsPrintSetup in Koha: https://github.com/Tecdiary/ppp https://github.com/shantanubhadoria/perl-Printer-ESCPOS https://github.com/WICG/webusb (Chrome 61+) http://usbip.sourceforge.net/ https://github.com/mike42/escpos-php https://www.savapage.org/ https://qz.io/ I think it could be nice to have a solution working in Firefox and Chrome/Chromium, at least...
As a temporary solution see the following from: https://bugzilla.mozilla.org/show_bug.cgi?id=1385827 (Bug was filed by the author of JSPrintSetup afaik) ---Snip--- For all that need the functionality NOW: its better to install the current ESR version ( https://www.mozilla.org/en-US/firefox/organizations/faq/ ) instead of going back to version 56 and turning off updates: https://www.mozilla.org/en-US/firefox/organizations/faq/ ---End snip---
Hello, Firefox stop print without customer permission. It's look like end of silent printing in Firefox. ---Snip--- "Just to be clear, the goal of WebExtensions is an API in a web browser to improve users interaction with web content. Supporting POS systems is not part of the goal for WebExtensions. Every feature we add has a cost on Mozilla in terms of development and maintenance so we evaluate each API. There are some improvements that around printing that have landed and perhaps there's a couple of APIs that could be split out from that bug. If you want to provide more sophisticated printing solutions or support POS systems, you might need to find a different solution other than Firefox. You can pass data through the nativeMessaging API which can do the printing for you, as an example. For the moment, we'll close the comments on this bug as it's currently not being productive." Source: https://bugzilla.mozilla.org/show_bug.cgi?id=1385827 ---End snip--- So, now we can start debate about long time solution. Maybe outside Firefox or based on Firefox about:config setiings for smooth printing from Koha with printing dialog. WebUSB API can be solution, for many USB POS printers, but it's partially implemented in Chrome not in Firefox. https://wicg.github.io/webusb/#introduction But it brings too much questions about security how describe this article https://wicg.github.io/webusb/#security-and-privacy. Firefox decide cut off JS driven printing due security reasons.
(In reply to Mike from comment #3) (...) You > can pass data through the nativeMessaging API which can do the printing for > you, as an example. (...) See: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging
On JSprint Github was debate about implemenation via nativeMessaging API. But All was very skeptic about it. So, I've made some researh and QZ library looks like aceptable solution. It's very similar like JSprint on Koha side. He re is just one complication, because Java app must be sef-signed and compilated for each Koha domain instalation. More here: https://medium.com/@buddhiv/how-to-directly-print-from-your-browser-using-qz-tray-6c86ccd7b3f9 So community, can we accept QZ as solution? Side effect is better support for more browsers like Chrome.