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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (+3 lines)
Lines 254-259 Using this account is not recommended because some parts of Koha will not functi Link Here
254
                                                    [% IF ( ISSUE.status ) %]
254
                                                    [% IF ( ISSUE.status ) %]
255
                                                        [% IF ( canrenew ) %]
255
                                                        [% IF ( canrenew ) %]
256
                                                            <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>
256
                                                            <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>
257
                                                            [% IF ISSUE.renewalfee > 0 %]
258
                                                                <span class="renewalfee">Fee for [% ItemTypes.GetDescription( ISSUE.renewalitemtype) %] [% ISSUE.renewalfee | $Price %]</span>
259
                                                            [% END %]
257
                                                        [% END %]
260
                                                        [% END %]
258
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
261
                                                        <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
259
                                                    [% ELSIF ( ISSUE.too_many ) %]
262
                                                    [% ELSIF ( ISSUE.too_many ) %]
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 192-197 if ($issues){ Link Here
192
        # check if item is renewable
192
        # check if item is renewable
193
        my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
193
        my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
194
        ($issue->{'renewcount'},$issue->{'renewsallowed'},$issue->{'renewsleft'}) = GetRenewCount($borrowernumber, $issue->{'itemnumber'});
194
        ($issue->{'renewcount'},$issue->{'renewsallowed'},$issue->{'renewsleft'}) = GetRenewCount($borrowernumber, $issue->{'itemnumber'});
195
        ( $issue->{'renewalfee'}, $issue->{'renewalitemtype'} ) = GetIssuingCharges( $issue->{'itemnumber'}, $borrowernumber );
195
        if($status && C4::Context->preference("OpacRenewalAllowed")){
196
        if($status && C4::Context->preference("OpacRenewalAllowed")){
196
            $issue->{'status'} = $status;
197
            $issue->{'status'} = $status;
197
        }
198
        }
198
- 

Return to bug 13796