Re: [Koha] jsprint setup -
* Randall Rowe (r.r...@lincolnlibraries.org) wrote: Wow, now I understand why a lot of people repost. This took almost a full week from when I sent it until it hit the list. The reply to this post hit the list three days before this did. Kind of eliminates the ability to argue the top-post reply versus the bottom post reply to mailing lists when the order they get posted has nothing to do with time sent. The date on the original post is 3/29, I replied to it the day I saw it on the list 4/1 and that reply hit the list 4/7. That's some massive lag. Hi Randall No, that is not why a lot of people repost unfortunately, what you ran into was the mailman instance that administers the list had stopped processing for a few days. This is very rare, I think it has happened 3 or 4 times in the 13+ years it has been running. Once the queue processing started again it caught up. Hence a flurry of email. Fortunately this is very rare, and unfortunately, no there are still impatient people :) Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] jsprint setup -
Chad, This is overkill. If everything you do from this browser is going to be silently printed to the same printer, simply set up your printer prefs in FireFox. Then go to the about:config page and add a new boolean called print.always_print_silent and set it to true. Randy Original Message From: Chad Roseburg croseb...@ncrl.org Sent: 3/29/2013 3:30:56 PM To: koha@lists.katipo.co.nz Subject: [Koha] jsprint setup - I am trying to setup silent printing using the 'IntranetSlipPrinterJS' in Koha 3.10. Documentation found here: http://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silently My javascript looks like this: function printThenClose() { try { jsPrintSetup.setPrinter('TSP143-(STR_T-001)'); jsPrintSetup.clearSilentPrint(); jsPrintSetup.setOption('printSilent', 1); jsPrintSetup.setOption('headerStrLeft',); jsPrintSetup.setOption('headerStrCenter',); jsPrintSetup.setOption('headerStrRight',); jsPrintSetup.setOption('footerStrLeft',); jsPrintSetup.setOption('footerStrCenter',); jsPrintSetup.setOption('footerStrRight',); jsPrintSetup.print(); } catch(err) { //Default printing if jsPrint-setup is not available window.print(); window.close(); } } Using Firefox 19 on Ubuntu 12.04. It brings up the receipt window but that's it. I've tried commenting out the setprinter line ...no change. JSprint addon is set to allow any site access. Tried other permissions to no avail. Does anyone have complete instructions for getting this to work? Thanks! -- Chad Roseburg Automation Dept. North Central Regional Library ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] jsprint setup + Receipt printing on Linux clients
Thanks for all your input! I had this feature working on a test server running the dev channel of Koha maybe a month ago. It stopped working so, in frustration, I copied the code from the Wiki. My previous code contained the single quotes and worked as expected, but lacked the try/catch for falling back to normal printing if jsPrint was not present. My point is that, with or without the single quotes representing the 2nd argument, it is not working. Not working in 3.10 stable nor the latest packages for Debian. I thought maybe jsprint's security settings were to blame, or possibly I'd run into a bug ...but it could easily be the station I'm testing with. It sounds like the javascript [ /w empty single quotes ] is correct so I will move on to other possibilities. @Randall For many cases it's overkill, but there are scenarios where this would be very handy. 1. Allows staff to use a single browser. Only Koha related pages print silent to the receipt printer. Less confusion for substitutes and techphobic staff members. 2. Centralized printer settings. Name every receipt printer receipt, or whatever, and you're done. 3. If you have Linux staff stations --- Firefox/Chrome do not use Last Used Printer, so your method does not work at all! So this method allows easy, effortless and centralized receipt printer setups for Debian/Ubu staff stations. I have not tried portable Firefox, so that may be a way to get around the Last Used Printer issue, not sure. Thanks again for your input! Would appreciate some guidance from other libraries using staff Linux clients as to receipt setup. Chad On Mon, Apr 1, 2013 at 3:44 AM, Randall Rowe r.r...@lincolnlibraries.orgwrote: Chad, This is overkill. If everything you do from this browser is going to be silently printed to the same printer, simply set up your printer prefs in FireFox. Then go to the about:config page and add a new boolean called print.always_print_silent and set it to true. Randy Original Message From: Chad Roseburg croseb...@ncrl.org Sent: 3/29/2013 3:30:56 PM To: koha@lists.katipo.co.nz Subject: [Koha] jsprint setup - I am trying to setup silent printing using the 'IntranetSlipPrinterJS' in Koha 3.10. Documentation found here: http://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silently My javascript looks like this: function printThenClose() { try { jsPrintSetup.setPrinter('TSP143-(STR_T-001)'); jsPrintSetup.clearSilentPrint(); jsPrintSetup.setOption('printSilent', 1); jsPrintSetup.setOption('headerStrLeft',); jsPrintSetup.setOption('headerStrCenter',); jsPrintSetup.setOption('headerStrRight',); jsPrintSetup.setOption('footerStrLeft',); jsPrintSetup.setOption('footerStrCenter',); jsPrintSetup.setOption('footerStrRight',); jsPrintSetup.print(); } catch(err) { //Default printing if jsPrint-setup is not available window.print(); window.close(); } } Using Firefox 19 on Ubuntu 12.04. It brings up the receipt window but that's it. I've tried commenting out the setprinter line ...no change. JSprint addon is set to allow any site access. Tried other permissions to no avail. Does anyone have complete instructions for getting this to work? Thanks! -- Chad Roseburg Automation Dept. North Central Regional Library ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Chad Roseburg Automation Dept. North Central Regional Library ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] jsprint setup -
Greetings, http://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silently The code is not correctly displayed in the Wiki, it does not show ''. I tweaked the page, since it was not displaying correctly. It should now display the two single quotes correctly. I also removed the comment saying to view source. Hope this helps avoid this problem in the future. The RichEditor is your friend -- unless you like typing 4 single quotes. ;) And to reiterate, the code displayed should look like: jsPrintSetup.setOption('headerStrLeft',''); jsPrintSetup.setOption('headerStrCenter',''); jsPrintSetup.setOption('headerStrRight',''); jsPrintSetup.setOption('footerStrLeft',''); jsPrintSetup.setOption('footerStrCenter',''); jsPrintSetup.setOption('footerStrRight',''); GPML, Mark Tompsett -Original Message- From: Marc Véron Sent: Saturday, March 30, 2013 3:01 AM To: koha Subject: Re: [Koha] jsprint setup - Hi Chad, That's why I wrote: Please refer to 'view source' or 'edit' to correctly display the JavaScript code. To fix your code, pls. change the following lines to: jsPrintSetup.setOption('headerStrLeft',''); jsPrintSetup.setOption('headerStrCenter',''); jsPrintSetup.setOption('headerStrRight',''); jsPrintSetup.setOption('footerStrLeft',''); jsPrintSetup.setOption('footerStrCenter',''); jsPrintSetup.setOption('footerStrRight',''); Regards Marc Véron www.veron.ch Am 29.03.2013 21:30, schrieb Chad Roseburg: I am trying to setup silent printing using the 'IntranetSlipPrinterJS' in Koha 3.10. Documentation found here: http://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silently My javascript looks like this: function printThenClose() { try { jsPrintSetup.setPrinter('TSP143-(STR_T-001)'); jsPrintSetup.clearSilentPrint(); jsPrintSetup.setOption('printSilent', 1); jsPrintSetup.setOption('headerStrLeft',); jsPrintSetup.setOption('headerStrCenter',); jsPrintSetup.setOption('headerStrRight',); jsPrintSetup.setOption('footerStrLeft',); jsPrintSetup.setOption('footerStrCenter',); jsPrintSetup.setOption('footerStrRight',); jsPrintSetup.print(); } catch(err) { //Default printing if jsPrint-setup is not available window.print(); window.close(); } } Using Firefox 19 on Ubuntu 12.04. It brings up the receipt window but that's it. I've tried commenting out the setprinter line ...no change. JSprint addon is set to allow any site access. Tried other permissions to no avail. Does anyone have complete instructions for getting this to work? Thanks! ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] jsprint setup -
Thanks for tweaking, Mark. Code looks nice now. Marc Véron Am 30.03.2013 14:48, schrieb Mark Tompsett: Greetings, http://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silently The code is not correctly displayed in the Wiki, it does not show ''. I tweaked the page, since it was not displaying correctly. It should now display the two single quotes correctly. I also removed the comment saying to view source. Hope this helps avoid this problem in the future. The RichEditor is your friend -- unless you like typing 4 single quotes. ;) And to reiterate, the code displayed should look like: jsPrintSetup.setOption('headerStrLeft',''); jsPrintSetup.setOption('headerStrCenter',''); jsPrintSetup.setOption('headerStrRight',''); jsPrintSetup.setOption('footerStrLeft',''); jsPrintSetup.setOption('footerStrCenter',''); jsPrintSetup.setOption('footerStrRight',''); GPML, Mark Tompsett ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] jsprint setup -
I am trying to setup silent printing using the 'IntranetSlipPrinterJS' in Koha 3.10. Documentation found here: http://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silently My javascript looks like this: function printThenClose() { try { jsPrintSetup.setPrinter('TSP143-(STR_T-001)'); jsPrintSetup.clearSilentPrint(); jsPrintSetup.setOption('printSilent', 1); jsPrintSetup.setOption('headerStrLeft',); jsPrintSetup.setOption('headerStrCenter',); jsPrintSetup.setOption('headerStrRight',); jsPrintSetup.setOption('footerStrLeft',); jsPrintSetup.setOption('footerStrCenter',); jsPrintSetup.setOption('footerStrRight',); jsPrintSetup.print(); } catch(err) { //Default printing if jsPrint-setup is not available window.print(); window.close(); } } Using Firefox 19 on Ubuntu 12.04. It brings up the receipt window but that's it. I've tried commenting out the setprinter line ...no change. JSprint addon is set to allow any site access. Tried other permissions to no avail. Does anyone have complete instructions for getting this to work? Thanks! -- Chad Roseburg Automation Dept. North Central Regional Library ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha