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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 / +7 lines)
Lines 206-219 Link Here
206
                                                            [% END %]
206
                                                            [% END %]
207
                                                            <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
207
                                                            <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
208
                                                        [% ELSE %]
208
                                                        [% ELSE %]
209
                                                            Not renewable
209
                                                            [% IF ( ISSUE.too_many ) %]
210
                                                                [% IF ( ISSUE.too_many ) %]
210
                                                                Not renewable
211
                                                                <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
212
                                                            [% ELSE %]
213
                                                                [% IF ( ISSUE.too_soon ) %]
214
                                                                    Not renewable yet
211
                                                                    <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
215
                                                                    <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
212
                                                                [% ELSE %]
216
                                                                [% ELSE %]
213
                                                                    [% IF ( ISSUE.on_reserve ) %]
217
                                                                    [% IF ( ISSUE.on_reserve ) %]
214
                                                                        <span class="renewals">(On hold)</span>
218
                                                                        <span class="renewals">(On hold)</span>
215
                                                                    [% END %]
219
                                                                    [% END %]
216
                                                                [% END %]
220
                                                                [% END %]
221
                                                            [% END %]
217
                                                        [% END %]
222
                                                        [% END %]
218
                                                    </td>
223
                                                    </td>
219
                                                [% END %]
224
                                                [% END %]
(-)a/opac/opac-user.pl (-3 / +6 lines)
Lines 182-189 if ($issues){ Link Here
182
        if($status && C4::Context->preference("OpacRenewalAllowed")){
182
        if($status && C4::Context->preference("OpacRenewalAllowed")){
183
            $issue->{'status'} = $status;
183
            $issue->{'status'} = $status;
184
        }
184
        }
185
        $issue->{'too_many'} = 1 if $renewerror and $renewerror eq 'too_many';
185
186
        $issue->{'on_reserve'} = 1 if $renewerror and $renewerror eq 'on_reserve';
186
        if ( $renewerror ) {
187
            $issue->{'too_many'}   = 1 if $renewerror eq 'too_many';
188
            $issue->{'too_soon'}   = 1 if $renewerror eq 'too_soon';
189
            $issue->{'on_reserve'} = 1 if $renewerror eq 'on_reserve';
190
        }
187
191
188
        if ( $issue->{'overdue'} ) {
192
        if ( $issue->{'overdue'} ) {
189
            push @overdues, $issue;
193
            push @overdues, $issue;
190
- 

Return to bug 7413