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

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 77-83 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
77
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
77
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
78
('checkdigit','none','none|katipo','If ON, enable checks on patron cardnumber: none or \"Katipo\" style checks','Choice'),
78
('checkdigit','none','none|katipo','If ON, enable checks on patron cardnumber: none or \"Katipo\" style checks','Choice'),
79
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'),
79
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'),
80
('CircAutoPrintQuickSlip','1',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window or Clear the screen.','YesNo'),
80
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
81
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
81
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
82
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
82
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
83
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
83
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 7743-7748 if(CheckVersion($DBversion)) { Link Here
7743
    SetVersion($DBversion);
7743
    SetVersion($DBversion);
7744
}
7744
}
7745
7745
7746
$DBversion = "XXX";
7747
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
7748
    $dbh->do("UPDATE systempreferences SET value='clear' where variable = 'CircAutoPrintQuickSlip' and value = '0'");
7749
    $dbh->do("UPDATE systempreferences SET value='qslip' where variable = 'CircAutoPrintQuickSlip' and value = '1'");
7750
    $dbh->do("UPDATE systempreferences SET explanation = 'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.', type = 'Choice' where variable = 'CircAutoPrintQuickSlip'");
7751
    print "Upgrade to $DBversion done (Add option to print full slip when checking out a null barcode)";
7752
    SetVersion($DBversion);
7753
}
7746
=head1 FUNCTIONS
7754
=head1 FUNCTIONS
7747
7755
7748
=head2 TableExists($table)
7756
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-2 / +3 lines)
Lines 107-114 Circulation: Link Here
107
            - When an empty barcode field is submitted in circulation
107
            - When an empty barcode field is submitted in circulation
108
            - pref: CircAutoPrintQuickSlip
108
            - pref: CircAutoPrintQuickSlip
109
              choices:
109
              choices:
110
                  yes: "open a print quick slip window"
110
                  clear: "clear the screen"
111
                  no: "clear the screen"
111
                  qslip: "open a print quick slip window"
112
                  slip: "open a print slip window"
112
            - .
113
            - .
113
        -
114
        -
114
            - Include the stylesheet at
115
            - Include the stylesheet at
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +2 lines)
Lines 75-85 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); Link Here
75
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
75
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
76
            }
76
            }
77
        } ).attr( 'checked', false );
77
        } ).attr( 'checked', false );
78
        [% END %][% IF ( CircAutoPrintQuickSlip ) %]
78
        [% END %][% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
79
        // listen submit to trigger qslip on empty checkout
79
        // listen submit to trigger qslip on empty checkout
80
        $('#mainform').bind('submit',function() {
80
        $('#mainform').bind('submit',function() {
81
          if ($('#barcode').val() == '') {
81
          if ($('#barcode').val() == '') {
82
            return printx_window('qslip'); }
82
            return printx_window( '[% CircAutoPrintQuickSlip %]' ); }
83
        });[% END %]
83
        });[% END %]
84
84
85
    [% IF ( CAN_user_circulate_override_renewals ) %]
85
    [% IF ( CAN_user_circulate_override_renewals ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/help/circ/circulation.tt (-2 / +1 lines)
Lines 39-45 Link Here
39
39
40
<p>Once you have checked out all of the items for the patron you can print them a receipt by choosing one of two methods.</p>
40
<p>Once you have checked out all of the items for the patron you can print them a receipt by choosing one of two methods.</p>
41
41
42
<p>If you have the CircAutoPrintQuickSlip preference set to 'open a print quick slip window' you can simply hit enter on your keyboard or scan a blank piece of paper with your barcode scanner. The idea being that you're "checking out" a blank barcode which triggers Koha to print the 'Quick slip.'</p>
42
<p>If you have the CircAutoPrintQuickSlip preference set to 'open a print quick slip window' or 'open a print slip window' you can simply hit enter on your keyboard or scan a blank piece of paper with your barcode scanner. The idea being that you're "checking out" a blank barcode which triggers Koha to print the 'Quick slip' or the 'Slip.'</p>
43
43
44
<p>You can also click the Print button at the top of the screen and choose 'Print slip' or 'Print quick slip'.</p>
44
<p>You can also click the Print button at the top of the screen and choose 'Print slip' or 'Print quick slip'.</p>
45
45
46
- 

Return to bug 11040