View | Details | Raw Unified | Return to bug 11415
Collapse All | Expand All

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 332-337 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
332
('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice'),
332
('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice'),
333
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
333
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
334
('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'),
334
('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'),
335
('SelfCheckReceiptPrompt','0','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'),
335
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
336
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
336
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
337
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
337
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
338
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 7885-7890 if(CheckVersion($DBversion)) { Link Here
7885
    SetVersion($DBversion);
7885
    SetVersion($DBversion);
7886
}
7886
}
7887
7887
7888
$DBversion = "3.15.00.XXX";
7889
if(CheckVersion($DBversion)) {
7890
   $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('SelfCheckReceiptPrompt', '0', 'NULL', 'If ON, print receipt dialog pops up when self checkout is finished.', 'YesNo');");
7891
    print "Upgrade to $DBversion done (Bug 11415: add system preference for self checkout receipt print)\n";
7892
    SetVersion($DBversion);
7893
}
7894
7895
7888
=head1 FUNCTIONS
7896
=head1 FUNCTIONS
7889
7897
7890
=head2 TableExists($table)
7898
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+7 lines)
Lines 592-597 Circulation: Link Here
592
            - and this password
592
            - and this password
593
            - pref: AutoSelfCheckPass
593
            - pref: AutoSelfCheckPass
594
            - .
594
            - .
595
        -
596
            - pref: SelfCheckReceiptPrompt
597
              choices:
598
                  yes: Show 
599
                  no: "Don't show"
600
            - "the print receipt popup dialog when self checkout is finished" 
601
	    
595
    Course Reserves:
602
    Course Reserves:
596
        -
603
        -
597
            - pref: UseCourseReserves
604
            - pref: UseCourseReserves
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-1 / +3 lines)
Lines 356-363 Link Here
356
356
357
            $("#logout_form").submit(function(){
357
            $("#logout_form").submit(function(){
358
                clearTimeout(mainTimeout);
358
                clearTimeout(mainTimeout);
359
            [% IF ( SelfCheckReceiptPrompt ) %] 
359
                if(confirm("Would you like to print a receipt?")){
360
                if(confirm("Would you like to print a receipt?")){
360
                    window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
361
                    window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
362
	    [% END %]
363
361
                }
364
                }
362
                return true;
365
                return true;
363
            });
366
            });
364
- 

Return to bug 11415