[Bug 7563] New: Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Bug #: 7563 Summary: Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 - low Component: Circulation AssignedTo: kyle.m.hall@gmail.com ReportedBy: veron@veron.ch QAContact: koha.sekjal@gmail.com CC: gmcharlt@gmail.com This is a proposition to implement silent printing for slips. In opposition to the solution with an additional Firefox (Portable) installation (see: http://wiki.koha-community.org/wiki/Using_Portable_Firefox_as_a_Koha_Client), this solution works with the standard Firefox installation (+ PlugIn jsPrintSetup) . jsPrintSetup e.g. allows to set printer, print silent, change header and footer, see: http://jsprintsetup.mozdev.org/ The overall concept is to have a new staff client preference where one can enter the necessary JavaScript. If this preference is empty, Koha falls back to te default behaviour. I did a proof of concept with the following steps: --Step 1 -------------------------- Add somewhere to staff_client.pref, e.g. near intranetstylesheet: ---------------------------------- - - "Use the following JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/:" - pref: intranetslipprinterjs type: textarea class: code ---------------------------------- (Suppose this will be pootleized to have translations?) --Step 2--------------------------- Add somewhere to moremember.pl: ---------------------------------- $template->param( intranetslipprinterjs => C4::Context->preference('intranetslipprinterjs' ) ); ---------------------------------- --Step 3---------------------------------------------- Replace hard coded JavaScript function printThenClose() in moremember-print.tt and moremember-receipt.tt with: ------------------------------------------------------ <script language="javascript"> [% IF ( intranetslipprinterjs ) %] [% intranetslipprinterjs %] [% ELSE %] function printThenClose() { window.print(); window.close(); } [% END %] </script> --Step 4---------------------------------------------------------------------- Login to Koha, go to Home › Administration › System Preferences (Staff Client) and edit the new field intranetslipprinterjs to print silent, set printer etc. ------------------------------------------------------------------------------ function printThenClose() { try { //Try to print using jsPrintSetup Plug-In in Firefox //If it is not installed fall back to default prnting jsPrintSetup.clearSilentPrint(); jsPrintSetup.setOption('printSilent', 1); //Choose printer using one or more of the following functions //jsPrintSetup.getPrintersList... //jsPrintSetup.setPrinter... //Set Header and footer... jsPrintSetup.setOption('headerStrLeft', ''); jsPrintSetup.setOption('headerStrCenter', ''); jsPrintSetup.setOption('headerStrRight', ''); jsPrintSetup.setOption('footerStrLeft', ''); jsPrintSetup.setOption('footerStrCenter', ''); jsPrintSetup.setOption('footerStrRight', ''); jsPrintSetup.print(); window.close(); } catch(err) { //Default printing if jsPrint-setup is not available window.print(); window.close(); } } --Step 5--------------------------------------------- ...and install jsPrintSetup PlugIn in Firefox... -----------------------------------------------
From now on, slips will print silently with Firefox and will show default behaviour if jsPrintSetup is not installed or if you make use of an other browser. All other printing will behave like before.
-- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Balmer <marc@msys.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marc@msys.ch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|kyle.m.hall@gmail.com |veron@veron.ch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #1 from Marc Véron <veron@veron.ch> --- Created attachment 9290 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=9290&action=edit Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Marc Veron <veron@veron.ch> modified: mysql/sysprefs.sql modified: mysql/updatedatabase.pl modified: ../../koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt modified: ../../koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt modified: ../../members/printslip.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |In Discussion -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #2 from Marc Véron <veron@veron.ch> --- Please do not use first patch (mistaked with files). New patch will follow. Marc -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Marc, you can obsolete the patch, so that noone uses it. It will still be accesssible. Details > edit details (behind bug title) > obsolete checkbox -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #9290|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #4 from Marc Véron <veron@veron.ch> --- Created attachment 9306 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=9306&action=edit Bug 7563 [ENH] : Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Koha 3.8.0 bump Marc Veron <veron@veron.ch> modified: installer/data/mysql/updatedatabase.pl modified: kohaversion.pl modified: installer/data/mysql/sysprefs.sql modified: installer/data/mysql/updatedatabase.pl modified: koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref modified: koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt modified: members/printslip.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #9306|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #9306|1 |0 is patch| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #9290|1 |0 is patch| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #5 from Marc Véron <veron@veron.ch> --- Created attachment 9307 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=9307&action=edit Bug 7563 [ENH] : Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 modified: installer/data/mysql/sysprefs.sql modified: installer/data/mysql/updatedatabase.pl modified: koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref modified: koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt modified: members/printslip.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #6 from Marc Véron <veron@veron.ch> --- Created attachment 9981 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=9981&action=edit Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 i# Please enter the commit message for your changes. Lines starting -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #9307|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #7 from Marc Véron <veron@veron.ch> --- Did not longer apply. Remade patch, would be nice to get a signoff. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #9981|0 |1 is obsolete| | --- Comment #8 from Marc Véron <veron@veron.ch> --- Created attachment 10063 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10063&action=edit Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 i# Please enter the commit message for your changes. Lines starting Signed-off-by: Marc Veron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #9 from Marc Véron <veron@veron.ch> --- Did not longer apply, redone patch. "Signed off by " in last comment by mistake. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10063|0 |1 is obsolete| | --- Comment #10 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 10068 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10068&action=edit Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: Signed-off-by: Marc Veron <veron@veron.ch> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |chris@bigballofwax.co.nz -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10068|0 |1 is obsolete| | --- Comment #11 from Marc Véron <veron@veron.ch> --- Created attachment 10071 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10071&action=edit Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10071|0 |1 is obsolete| | --- Comment #12 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 10073 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10073&action=edit Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA CC| |paul.poulain@biblibre.com --- Comment #13 from Paul Poulain <paul.poulain@biblibre.com> --- QA comment: I think this change was not really wanted: - SetVersion($DBversion); -} as it result in updatedatabase not compiling: Missing right curly or square bracket at installer/data/mysql/updatedatabase.pl line 5434, at end of line syntax error at installer/data/mysql/updatedatabase.pl line 5434, at EOF installer/data/mysql/updatedatabase.pl had compilation errors. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #14 from Chris Cormack <chris@bigballofwax.co.nz> --- Fixed, was a bad merge conflict fix -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10073|0 |1 is obsolete| | --- Comment #15 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 10104 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10104&action=edit Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> http://bugs.koha-community.org/show_bug.cgi?id=7653 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #16 from Paul Poulain <paul.poulain@biblibre.com> --- QA Comment: small new feature, introduced nicely through a systempreference, in a nice and extensible way I think. It would be worth to add it also on other places where we do a window.print() for consistency. grep -R "window.print()" * shows that we print in the following pages: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detailprint.tt: window.print(); koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt: window.print(); koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt: window.print(); koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt: window.print(); koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt: window.print(); koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt: <body id="labels_spinelabel-print" class="tools labels" onLoad="window.print()"> koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt:<button onclick="window.print()">Print this label</button> koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfer-slip.tt:window.print(); koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt:window.print(); koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt: <a class="button" href="javascript:window.print();self.close()">Print</a> <a class="button" href="javascript:self.close()">Close</a> koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt:<p class="noprint"><a href="#" onclick="window.print(); return false;">Print</a> <a href="#" class="close">Close</a></p> koha-tmpl/intranet-tmpl/prog/en/xslt/oilsMARC21slim2HTML.xsl:<div><button onclick='window.print();'>Print Page</button></div> I hesitate failing QA because of this non consistent behaviour, I won't mark it passed QA nor failed QA, to get another QA team opinion. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m --- Comment #17 from Jonathan Druart <jonathan.druart@biblibre.com> --- Paul, I agree with you, this feature must be used for all occurrences of "window.print". But it is not blocking. I think this patch could be pushed though a followup is required asap. I let you make the decision ;-) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #18 from Marc Véron <veron@veron.ch> --- Paul and Jonathan, Thank you for your comments. When I introduced this feature, I was aware that it could be used at other places as well. This version is just for the use case where a lot of printing occurs, and it was made by advice of the librarians in our group who often work at the front desk and who told me that not having this feature could be a killer argument against Koha. I really would appreciate if you could push it, and I will be happy to deliver follow ups for the other use cases as well. Thanks again Marc -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10104|0 |1 is obsolete| | --- Comment #19 from Marc Véron <veron@veron.ch> --- Created attachment 10427 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10427&action=edit [REBASED] Bug 8272 - OPAC : date expiration format Adding TT date filter to output of expiration date on OPAC user page. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Delaye Stephane <stephane.delaye@biblibre.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10427|1 |0 is patch| | Attachment #10427|0 |1 is obsolete| | --- Comment #20 from Marc Véron <veron@veron.ch> --- Comment on attachment 10427 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10427 [REBASED] Bug 8272 - OPAC : date expiration format Something went wrong with teh attachment... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10104|1 |0 is obsolete| | --- Comment #21 from Marc Véron <veron@veron.ch> --- Comment on attachment 10104 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10104 Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference REstoring previous attachment... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10104|0 |1 is obsolete| | --- Comment #22 from Marc Véron <veron@veron.ch> --- Created attachment 10428 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10428&action=edit [REBASED] Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference Configure slip printers to print slips (silently) to a special printer using the Firefox PlugIn jsPrintSetUp. All other print actions are not affected. See http://jsprintsetup.mozdev.org/ for all the possibilities (e.g. change header/footer, get a list of printers, set printer etc.). The overall concept is to have a new staff client preference (IntranetSlipPrinterJS) where one can enter the necessary JavaScript. If the preference is empty, Koha falls back to te default behaviour. An example of JavaScript can be found on: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> http://bugs.koha-community.org/show_bug.cgi?id=7653 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10428|0 |1 is obsolete| | --- Comment #23 from Marc Véron <veron@veron.ch> --- Created attachment 10557 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10557&action=edit [REBASED] Bug 7563 [ENH] - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference (Rebased to Koha version: 3.09.00.018) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10557|0 |1 is obsolete| | --- Comment #24 from Marc Véron <veron@veron.ch> --- Created attachment 10570 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10570&action=edit [REBASED] Bug 7563 - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference ...to version 3.09.00.021 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA Version|master |rel_3_10 --- Comment #25 from Paul Poulain <paul.poulain@biblibre.com> --- QA comment, my concern has been answered in comment #18
Paul and Jonathan,
Thank you for your comments. When I introduced this feature, I was aware that it could be used at other places as well. This version is just for the use case where a lot of printing occurs, and it was made by advice of the librarians in our group who often work at the front desk and who told me that not having this feature could be a killer argument against Koha.
I really would appreciate if you could push it, and I will be happy to deliver follow ups for the other use cases as well.
Passed QA then -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|koha.sekjal@gmail.com |paul.poulain@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #26 from Marc Véron <veron@veron.ch> --- Thanks for QA-ing, Paul. I will work on the follow-ups you suggested after my vacation. Marc -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nengard@gmail.com --- Comment #27 from Nicole C. Engard <nengard@gmail.com> --- I'm trying to document this and am having trouble. The preference says "Define at least function printThenClose()." which makes me think that this preference must have that function in there for Koha to work. We might need to make it clearer. Can someone write a short description of this preference in librarianese (aka not developer talk) so that I can edit it and put it in the manual? Nicole -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #28 from Nicole C. Engard <nengard@gmail.com> --- via IRC: [10:34] <oleonard> nengard it looks like there's two basic steps: Install the jsPrintSetup addon, and populate the pref [10:35] <oleonard> That first comment gives you an example for what to populate the pref with in Step 4 [10:35] <nengard> THANK YOU [10:35] <nengard> :) [10:35] <nengard> I was missing the whole install the add on part [10:35] <nengard> we should update the description on that preference to make it clearer [10:35] <oleonard> Hmmm... not sure about the "Choose printer using one or more of the following functions" step -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #29 from Owen Leonard <oleonard@myacpl.org> --- Yeah, this part is cryptic: //Choose printer using one or more of the following functions //jsPrintSetup.getPrintersList... //jsPrintSetup.setPrinter... Is this something I must configure in order for this feature to work? I installed the Firefox addon (https://addons.mozilla.org/en-US/firefox/addon/js-print-setup/) and populated the system preference with the JS code exactly as it appears in Step four of comment 0. Then I went to a patron record and chose "Print quick slip." A new tab appeared for a split second and disappeared, but no print job started. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #30 from Marc Véron <veron@veron.ch> --- Created attachment 11149 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11149&action=edit Settings for Firefox Add-on JSPrintSetup Screenshot with settings to make work Firefox add-on jsprintsetup with a specific web site. For security reasons, the website must be in a list of allowed sites. The pre-installed JavaScript in the system preference should then work with the default printer. To create more sophisticated solutions you find the function reference of jsprintsetup at: http://jsprintsetup.mozdev.org/reference.html I will set up a Wiki page for this as soon as possible. Marc -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #31 from Owen Leonard <oleonard@myacpl.org> --- (In reply to comment #30)
The pre-installed JavaScript in the system preference should then work with the default printer.
By this do mean that the getPrintersList and setPrinter settings are not required? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #32 from Marc Véron <veron@veron.ch> --- Regarding: //Choose printer using one or more of the following functions //jsPrintSetup.getPrintersList... //jsPrintSetup.setPrinter... Here I wanted to indicate where a more sophisticated solution can be implemented. The lines are commented out (//) and ar ignored by the JavaScript. You can savely remove them. The function jsPrintSetup.getPrintersList retuns a list of installed printers. One could then check if e.g. a printer with the name "Slipprinter" is available and if yes print on this printer using jsPrintSetup.setPrinter('Slipprinter), otherwise print on the default printer. For full reference see: http://jsprintsetup.mozdev.org/reference.html -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7563 --- Comment #33 from Marc Véron <veron@veron.ch> --- Please refer to the following wiki page for setup and usage instructions: http://wiki.koha-community.org/wiki/Setting_up_slip_printer_to_print_silentl... -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org