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

(-)a/circ/circulation.pl (+1 lines)
Lines 689-694 $template->param( Link Here
689
    circview => 1,
689
    circview => 1,
690
    soundon           => C4::Context->preference("SoundOn"),
690
    soundon           => C4::Context->preference("SoundOn"),
691
    fast_cataloging   => $fast_cataloging,
691
    fast_cataloging   => $fast_cataloging,
692
    CircAutoPrintQuickSlip   => C4::Context->preference("CircAutoPrintQuickSlip"),
692
);
693
);
693
694
694
# save stickyduedate to session
695
# 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 (+7 lines)
Lines 4544-4549 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4544
    SetVersion($DBversion);
4544
    SetVersion($DBversion);
4545
}
4545
}
4546
4546
4547
$DBversion = "3.05.00.XXX";
4548
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4549
    $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');");
4550
    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";
4551
    SetVersion($DBversion);
4552
}
4553
4547
4554
4548
=head1 FUNCTIONS
4555
=head1 FUNCTIONS
4549
4556
(-)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 50-61 Link Here
50
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
50
                $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
51
            }
51
            }
52
        } ).attr( 'checked', false );
52
        } ).attr( 'checked', false );
53
        [% END %]
53
        [% END %][% IF ( CircAutoPrintQuickSlip ) %]
54
		// listen submit to trigger qslip on empty checkout
54
        // listen submit to trigger qslip on empty checkout
55
		$('#mainform').bind('submit',function() {
55
        $('#mainform').bind('submit',function() {
56
		  if ($('#barcode').val() == '') {
56
          if ($('#barcode').val() == '') {
57
		    return printx_window('qslip'); }
57
            return printx_window('qslip'); }
58
		});
58
        });[% END %]
59
59
60
60
61
var allcheckboxes = $(".checkboxed");
61
var allcheckboxes = $(".checkboxed");
62
- 

Return to bug 7077