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

(-)a/circ/circulation.pl (+1 lines)
Lines 705-710 $template->param( Link Here
705
    fast_cataloging   => $fast_cataloging,
705
    fast_cataloging   => $fast_cataloging,
706
    CircAutoPrintQuickSlip   => C4::Context->preference("CircAutoPrintQuickSlip"),
706
    CircAutoPrintQuickSlip   => C4::Context->preference("CircAutoPrintQuickSlip"),
707
	activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
707
	activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
708
	CircPayFinesRedirect => (C4::Context->preference('CircPayFinesRedirect') ? $total : 0),
708
);
709
);
709
710
710
# save stickyduedate to session
711
# save stickyduedate to session
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 363-365 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( Link Here
363
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
363
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
364
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
364
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
366
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('CircPayFinesRedirect','0','When an empty barcode is entered into the checkout field will redirect to pay fines page if borrowser has fines to pay (after quickslip if enabled)',NULL,'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 5239-5244 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5239
    SetVersion($DBversion);
5239
    SetVersion($DBversion);
5240
}
5240
}
5241
5241
5242
$DBversion = "3.08.00.XXX";
5243
if( C4::Context->preference("Version") < TransformToNum($DBversion) ){
5244
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('CircPayFinesRedirect','0','When an empty barcode is entered into the checkout field will redirect to pay fines page if borrowser has fines to pay (after quickslip if enabled)',NULL,'YesNo')");
5245
    print "Upgrade to $DBversion done\n";
5246
    SetVersion($DBversion);
5247
}
5248
5242
=head1 FUNCTIONS
5249
=head1 FUNCTIONS
5243
5250
5244
=head2 TableExists($table)
5251
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+7 lines)
Lines 99-104 Circulation: Link Here
99
                  no: "clear the screen"
99
                  no: "clear the screen"
100
            - .
100
            - .
101
        -
101
        -
102
            - When an empty barcode field is submitted in circulation (and after any quick slip printing, if enabled)
103
            - pref: CircPayFinesRedirect
104
              choices:
105
                yes: "redirect to pay fines screen if borrower has fines to pay"
106
                no: "do nothing"
107
            - .
108
        -
102
            - Include the stylesheet at
109
            - Include the stylesheet at
103
            - pref: NoticeCSS
110
            - pref: NoticeCSS
104
              class: url
111
              class: url
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-3 / +15 lines)
Lines 50-57 Link Here
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
            var code = printx_window('qslip');
54
        });[% END %]
54
		[% IF (CircPayFinesRedirect) %]
55
 		window.location = "/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %];";
56
		[% END %]
57
		return code;
58
	}
59
        });
60
	[% ELSIF ( CircPayFinesRedirect ) %]
61
	$('#mainform').bind('submit', function(){
62
		if ($('#barcode').val() == '') {
63
			window.location = "/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]";
64
            return false;
65
		}
66
	});
67
	[% END %]
55
68
56
69
57
var allcheckboxes = $(".checkboxed");
70
var allcheckboxes = $(".checkboxed");
58
- 

Return to bug 8058