From 6ada219fa5dda82c17c7e58f2366cb94a8b6cc4b Mon Sep 17 00:00:00 2001 From: JaTara Barnes Date: Wed, 8 Jan 2014 23:10:26 -0600 Subject: [PATCH] [SIGNED OFF] Bug 11415: Add syspref to toggle SCO receipt printing Added code to update prog theme with same changes as the bootstrap theme. Signed-off-by: Mark Tompsett --- .../opac-tmpl/prog/en/modules/sco/sco-main.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt index 6ab8b11..c8ceef1 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] › Self checkout @@ -90,8 +91,10 @@ $(document).ready(function() { })); $("#logout_form").submit(function(){ clearTimeout(mainTimeout); + [% IF Koha.Preference('SelfCheckReceiptPrompt') %] if(confirm("Would you like to print a receipt?")){ window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); + [%END %] } return true; }); -- 1.7.9.5