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

(-)a/circ/circulation.pl (+1 lines)
Lines 703-708 $template->param( Link Here
703
    circview => 1,
703
    circview => 1,
704
    soundon           => C4::Context->preference("SoundOn"),
704
    soundon           => C4::Context->preference("SoundOn"),
705
    fast_cataloging   => $fast_cataloging,
705
    fast_cataloging   => $fast_cataloging,
706
    CircAutoPrintQuickSlip   => C4::Context->preference("CircAutoPrintQuickSlip"),
706
);
707
);
707
708
708
# save stickyduedate to session
709
# save stickyduedate to session
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 328-331 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
328
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OpacKohaUrl','1',"Show 'Powered by Koha' text on OPAC footer.",NULL,NULL);
328
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OpacKohaUrl','1',"Show 'Powered by Koha' text on OPAC footer.",NULL,NULL);
329
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('EasyAnalyticalRecords','0','If on, display in the catalogue screens tools to easily setup analytical record relationships','','YesNo');
329
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('EasyAnalyticalRecords','0','If on, display in the catalogue screens tools to easily setup analytical record relationships','','YesNo');
330
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowRecentComments',0,'If ON a link to recent comments will appear in the OPAC masthead',NULL,'YesNo');
330
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowRecentComments',0,'If ON a link to recent comments will appear in the OPAC masthead',NULL,'YesNo');
331
331
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CircAutoPrintQuickSlip', '1', 'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window or Clear the screen.',NULL,'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+6 lines)
Lines 4560-4566 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
4560
    $dbh->do("ALTER TABLE deletedborrowers MODIFY debarred DATE DEFAULT NULL;");
4560
    $dbh->do("ALTER TABLE deletedborrowers MODIFY debarred DATE DEFAULT NULL;");
4561
    $dbh->do("ALTER TABLE deletedborrowers ADD COLUMN debarredcomment VARCHAR(255) DEFAULT NULL AFTER debarred;");
4561
    $dbh->do("ALTER TABLE deletedborrowers ADD COLUMN debarredcomment VARCHAR(255) DEFAULT NULL AFTER debarred;");
4562
    print "Upgrade done (Change borrowers.debarred into Date )\n";
4562
    print "Upgrade done (Change borrowers.debarred into Date )\n";
4563
    SetVersion($DBversion);
4564
}
4563
4565
4566
$DBversion = "3.07.00.XXX";
4567
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4568
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CircAutoPrintQuickSlip', '1', 'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window or Clear the screen.',NULL,'YesNo');");
4569
    print "Upgrade to $DBversion done (Add syspref CircAutoPrintQuickSlip to control what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window or clear the screen. )\n";
4564
    SetVersion($DBversion);
4570
    SetVersion($DBversion);
4565
}
4571
}
4566
4572
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+7 lines)
Lines 91-96 Circulation: Link Here
91
                  yes: Record
91
                  yes: Record
92
                  no: "Don't record"
92
                  no: "Don't record"
93
            - local use when an unissued item is checked in.
93
            - local use when an unissued item is checked in.
94
        -
95
            - When an empty an empty barcode field is submitted in circulation
96
            - pref: CircAutoPrintQuickSlip
97
              choices:
98
                  yes: "open a print quick slip window"
99
                  no: "clear the screen"
100
            - .
94
    Checkout Policy:
101
    Checkout Policy:
95
        -
102
        -
96
            - pref: AllowNotForLoanOverride
103
            - pref: AllowNotForLoanOverride
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-7 / +6 lines)
Lines 46-57 Link Here
46
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
46
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
47
            }
47
            }
48
        } ).attr( 'checked', false );
48
        } ).attr( 'checked', false );
49
        [% END %]
49
        [% END %][% IF ( CircAutoPrintQuickSlip ) %]
50
		// listen submit to trigger qslip on empty checkout
50
        // listen submit to trigger qslip on empty checkout
51
		$('#mainform').bind('submit',function() {
51
        $('#mainform').bind('submit',function() {
52
		  if ($('#barcode').val() == '') {
52
          if ($('#barcode').val() == '') {
53
		    return printx_window('qslip'); }
53
            return printx_window('qslip'); }
54
		});
54
        });[% END %]
55
55
56
56
57
var allcheckboxes = $(".checkboxed");
57
var allcheckboxes = $(".checkboxed");
58
- 

Return to bug 7270