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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-40 / +43 lines)
Lines 244-250 Link Here
244
                                                [% END %]
244
                                                [% END %]
245
                                                    <th>Call no.</th>
245
                                                    <th>Call no.</th>
246
                                                [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
246
                                                [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
247
                                                    <th class="nosort">Renew</th>
247
                                                    <th>Renew</th>
248
                                                [% END %]
248
                                                [% END %]
249
                                                [% IF ( OPACFinesTab ) %]
249
                                                [% IF ( OPACFinesTab ) %]
250
                                                    <th>Fines</th>
250
                                                    <th>Fines</th>
Lines 345-389 Link Here
345
                                                    [% ISSUE.itemcallnumber | html %]
345
                                                    [% ISSUE.itemcallnumber | html %]
346
                                                </td>
346
                                                </td>
347
                                                [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
347
                                                [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
348
                                                    <td class="renew">
348
                                                    [% IF ( ISSUE.status && canrenew ) %]
349
                                                    [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
349
                                                        <td class="renew" data-order="[% ISSUE.renewsleft | html %]">
350
                                                    [% IF ( ISSUE.status ) %]
350
                                                    [% ELSE %]
351
                                                        [% IF ( canrenew ) %]
351
                                                        <td class="renew" data-order="0">
352
                                                            <input type="checkbox" name="item" value="[% ISSUE.itemnumber | uri %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% ISSUE.itemnumber | uri %]&amp;borrowernumber=[% ISSUE.borrowernumber | uri %]">Renew</a>
353
                                                        [% END %]
354
                                                        [% IF ISSUE.renewalfee > 0 %]
355
                                                            <span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
356
                                                        [% END %]
357
                                                        [% IF ISSUE.itemtype_object.rentalcharge_daily > 0 %]
358
                                                            <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_daily | $Price %] per day</span>
359
                                                        [% END %]
360
                                                        [% IF ISSUE.itemtype_object.rentalcharge_hourly > 0 %]
361
                                                            <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_hourly | $Price %] per hour</span>
362
                                                        [% END %]
363
                                                        <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
364
                                                    [% ELSIF ( ISSUE.on_reserve ) %]
365
                                                        Not renewable <span class="renewals">(on hold)</span>
366
                                                    [% ELSIF ( ISSUE.too_many ) %]
367
                                                        Not renewable
368
                                                    [% ELSIF ( ISSUE.norenew_overdue ) %]
369
                                                        Not allowed <span class="renewals">(overdue)</span>
370
                                                    [% ELSIF ( ISSUE.auto_too_late ) %]
371
                                                        No longer renewable
372
                                                    [% ELSIF ISSUE.auto_too_much_oweing %]
373
                                                        Automatic renewal failed, you have unpaid fines.
374
                                                        <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
375
                                                    [% ELSIF ISSUE.auto_account_expired %]
376
                                                        Automatic renewal failed, your account is expired.
377
                                                        <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
378
                                                    [% ELSIF ( ISSUE.too_soon ) %]
379
                                                        No renewal before [% ISSUE.soonestrenewdate | html %]
380
                                                        <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
381
                                                    [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
382
                                                        Automatic renewal
383
                                                        <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
384
                                                    [% ELSIF ( ISSUE.item_denied_renewal ) %]
385
                                                        Renewal not allowed
386
                                                    [% END %]
352
                                                    [% END %]
353
                                                        [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
354
                                                        [% IF ( ISSUE.status ) %]
355
                                                            [% IF ( canrenew ) %]
356
                                                                <input type="checkbox" name="item" value="[% ISSUE.itemnumber | uri %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% ISSUE.itemnumber | uri %]&amp;borrowernumber=[% ISSUE.borrowernumber | uri %]">Renew</a>
357
                                                            [% END %]
358
                                                            [% IF ISSUE.renewalfee > 0 %]
359
                                                                <span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
360
                                                            [% END %]
361
                                                            [% IF ISSUE.itemtype_object.rentalcharge_daily > 0 %]
362
                                                                <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_daily | $Price %] per day</span>
363
                                                            [% END %]
364
                                                            [% IF ISSUE.itemtype_object.rentalcharge_hourly > 0 %]
365
                                                                <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_hourly | $Price %] per hour</span>
366
                                                            [% END %]
367
                                                            <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
368
                                                        [% ELSIF ( ISSUE.on_reserve ) %]
369
                                                            Not renewable <span class="renewals">(on hold)</span>
370
                                                        [% ELSIF ( ISSUE.too_many ) %]
371
                                                            Not renewable
372
                                                        [% ELSIF ( ISSUE.norenew_overdue ) %]
373
                                                            Not allowed <span class="renewals">(overdue)</span>
374
                                                        [% ELSIF ( ISSUE.auto_too_late ) %]
375
                                                            No longer renewable
376
                                                        [% ELSIF ISSUE.auto_too_much_oweing %]
377
                                                            Automatic renewal failed, you have unpaid fines.
378
                                                            <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
379
                                                        [% ELSIF ISSUE.auto_account_expired %]
380
                                                            Automatic renewal failed, your account is expired.
381
                                                            <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
382
                                                        [% ELSIF ( ISSUE.too_soon ) %]
383
                                                            No renewal before [% ISSUE.soonestrenewdate | html %]
384
                                                            <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
385
                                                        [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
386
                                                            Automatic renewal
387
                                                            <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
388
                                                        [% ELSIF ( ISSUE.item_denied_renewal ) %]
389
                                                            Renewal not allowed
390
                                                        [% END %]
387
                                                    </td>
391
                                                    </td>
388
                                                [% END %]
392
                                                [% END %]
389
                                                [% IF ( OPACFinesTab ) %]
393
                                                [% IF ( OPACFinesTab ) %]
390
- 

Return to bug 25771