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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +1 lines)
Lines 320-326 OPAC: Link Here
320
            - Only allow patrons to renew their own books on the OPAC if they have less than
320
            - Only allow patrons to renew their own books on the OPAC if they have less than
321
            - pref: OPACFineNoRenewals
321
            - pref: OPACFineNoRenewals
322
              class: currency
322
              class: currency
323
            - '[% local_currency %] in fines (leave blank to disable).'
323
            - '[% local_currency %] in fines (set a large value to always allow renewal).'
324
        -
324
        -
325
            - pref: OPACViewOthersSuggestions
325
            - pref: OPACViewOthersSuggestions
326
              choices:
326
              choices:
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt (-11 / +13 lines)
Lines 110-117 $.tablesorter.addParser({ Link Here
110
            [% IF ( BORROWER_INF.lost ) %]
110
            [% IF ( BORROWER_INF.lost ) %]
111
                <li><strong>Please note: </strong> Your library card has been marked as lost or stolen. If this is an error, please contact the library.</li>
111
                <li><strong>Please note: </strong> Your library card has been marked as lost or stolen. If this is an error, please contact the library.</li>
112
            [% END %]
112
            [% END %]
113
            [% IF ( BORROWER_INF.renewal_blocked_fines ) %]
113
            [% IF renewal_blocked_fines %]
114
                <li><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">more than [% BORROWER_INF.renewal_blocked_fines %]</a> in fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li>
114
                <li><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">more than [% renewal_blocked_fines %]</a> in fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li>
115
            [% END %]
115
            [% END %]
116
        </ul></div>
116
        </ul></div>
117
        [% END %]
117
        [% END %]
Lines 205-211 $.tablesorter.addParser({ Link Here
205
        <th>Call No.</th>
205
        <th>Call No.</th>
206
        <th>Due</th>
206
        <th>Due</th>
207
        [% IF ( OpacRenewalAllowed ) %]
207
        [% IF ( OpacRenewalAllowed ) %]
208
        [% UNLESS ( patron_flagged ) %]<th>Renew</th>[% END %]
208
        [% UNLESS  patron_flagged %]<th>Renew</th>[% END %]
209
        [% END %]
209
        [% END %]
210
[% IF ( OPACFinesTab ) %]
210
[% IF ( OPACFinesTab ) %]
211
        <th>Fines</th>
211
        <th>Fines</th>
Lines 253-259 $.tablesorter.addParser({ Link Here
253
                    <td>[% ISSUE.date_due %]</td>
253
                    <td>[% ISSUE.date_due %]</td>
254
                [% END %]
254
                [% END %]
255
                [% IF ( OpacRenewalAllowed ) %]
255
                [% IF ( OpacRenewalAllowed ) %]
256
                    [% UNLESS ( ISSUE.patron_flagged ) %]
256
                    [% UNLESS patron_flagged %]
257
                    <td>[% IF ( ISSUE.status ) %]<input type="checkbox" name="item" value="[% ISSUE.itemnumber %]"/><a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% ISSUE.itemnumber %]&amp;borrowernumber=[% ISSUE.borrowernumber %]">Renew</a> <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
257
                    <td>[% IF ( ISSUE.status ) %]<input type="checkbox" name="item" value="[% ISSUE.itemnumber %]"/><a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% ISSUE.itemnumber %]&amp;borrowernumber=[% ISSUE.borrowernumber %]">Renew</a> <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
258
                        [% ELSE %]
258
                        [% ELSE %]
259
                        Not renewable[% IF ( ISSUE.too_many ) %] <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>[% ELSE %][% IF ( ISSUE.on_reserve ) %] <span class="renewals">(On hold)</span>[% END %][% END %] 
259
                        Not renewable[% IF ( ISSUE.too_many ) %] <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>[% ELSE %][% IF ( ISSUE.on_reserve ) %] <span class="renewals">(On hold)</span>[% END %][% END %] 
Lines 269-278 $.tablesorter.addParser({ Link Here
269
            </tr>
269
            </tr>
270
        [% END %]</tbody>
270
        [% END %]</tbody>
271
        </table>
271
        </table>
272
	
272
273
		[% IF ( OpacRenewalAllowed ) %]
273
        [% IF OpacRenewalAllowed %]
274
		<input type="submit" value="Renew Selected" />
274
            [% UNLESS patron_flagged %]
275
		[% END %]
275
            <input type="submit" value="Renew Selected" />
276
            [% END %]
277
        [% END %]
276
		</form>
278
		</form>
277
		[% IF ( OpacRenewalAllowed ) %]
279
		[% IF ( OpacRenewalAllowed ) %]
278
		
280
		
Lines 282-288 $.tablesorter.addParser({ Link Here
282
			[% FOREACH ISSUE IN ISSUES %]
284
			[% FOREACH ISSUE IN ISSUES %]
283
			<input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
285
			<input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
284
			[% END %]
286
			[% END %]
285
			[% UNLESS ( patron_flagged ) %]<input type="submit" value="Renew All" />[% END %]
287
			[% UNLESS patron_flagged %]<input type="submit" value="Renew All" />[% END %]
286
		</form>
288
		</form>
287
		[% END %]
289
		[% END %]
288
    [% ELSE %]
290
    [% ELSE %]
Lines 304-310 $.tablesorter.addParser({ Link Here
304
<th>Call No.</th>
306
<th>Call No.</th>
305
<th>Due</th>
307
<th>Due</th>
306
[% IF ( OpacRenewalAllowed ) %]
308
[% IF ( OpacRenewalAllowed ) %]
307
                    [% UNLESS ( patron_flagged ) %]<th>Renew</th>[% END %][% END %]
309
                    [% UNLESS  patron_flagged  %]<th>Renew</th>[% END %][% END %]
308
[% IF ( OPACFinesTab ) %]
310
[% IF ( OPACFinesTab ) %]
309
<th>Fines</th>
311
<th>Fines</th>
310
[% END %]
312
[% END %]
Lines 336-342 $.tablesorter.addParser({ Link Here
336
<td>[% OVERDUE.itemcallnumber %]</td>
338
<td>[% OVERDUE.itemcallnumber %]</td>
337
<td>[% OVERDUE.date_due %]</td>
339
<td>[% OVERDUE.date_due %]</td>
338
                [% IF ( OpacRenewalAllowed ) %]
340
                [% IF ( OpacRenewalAllowed ) %]
339
                    [% UNLESS ( OVERDUE.patron_flagged ) %]
341
                    [% UNLESS patron_flagged %]
340
<td>
342
<td>
341
[% IF ( OVERDUE.debarred ) %]Account Frozen
343
[% IF ( OVERDUE.debarred ) %]Account Frozen
342
[% ELSIF ( OVERDUE.status ) %]
344
[% ELSIF ( OVERDUE.status ) %]
(-)a/opac/opac-user.pl (-3 / +4 lines)
Lines 79-89 if ( $borr->{'amountoutstanding'} > 5 ) { Link Here
79
if ( 5 >= $borr->{'amountoutstanding'} && $borr->{'amountoutstanding'} > 0 ) {
79
if ( 5 >= $borr->{'amountoutstanding'} && $borr->{'amountoutstanding'} > 0 ) {
80
    $borr->{'amountoverzero'} = 1;
80
    $borr->{'amountoverzero'} = 1;
81
}
81
}
82
my $no_renewal_amt = C4::Context->preference( 'OPACFineNoRenewals' );
83
$no_renewal_amt ||= 0;
82
84
83
if ( $borr->{'amountoutstanding'} > C4::Context->preference( 'OPACFineNoRenewals' ) ) {
85
if ( $borr->{amountoutstanding} > $no_renewal_amt ) {
84
    $borr->{'flagged'} = 1;
86
    $borr->{'flagged'} = 1;
85
    $template->param(
87
    $template->param(
86
        renewal_blocked_fines => sprintf( "%.02f", C4::Context->preference( 'OPACFineNoRenewals' ) ),
88
        renewal_blocked_fines => sprintf( '%.02f', $no_renewal_amt ),
87
    );
89
    );
88
}
90
}
89
91
90
- 

Return to bug 6598