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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-41 lines)
Lines 116-122 Link Here
116
                                [% IF ( BORROWER_INF.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
116
                                [% IF ( BORROWER_INF.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
117
                                [% IF ( BORROWER_INF.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
117
                                [% IF ( BORROWER_INF.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
118
                            [% END %]
118
                            [% END %]
119
                            [% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="#opac-user-waiting">Waiting ([% waiting_count %])</a></li>[% END %][% END %]
120
                            [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count %])</a></li>[% END %]
119
                            [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count %])</a></li>[% END %]
121
                        </ul>
120
                        </ul>
122
121
Lines 333-378 Link Here
333
                            [% END %]
332
                            [% END %]
334
                        [% END # / OPACFinesTab %]
333
                        [% END # / OPACFinesTab %]
335
334
336
                        [% IF ( waiting_count && atdestination ) %]
337
                            <div id="opac-user-waiting">
338
                                <table id="waitingt" class="table table-bordered table-striped">
339
                                    <caption>Holds waiting</caption>
340
                                    <thead>
341
                                        <tr>
342
                                            <th class="anti-the">Title</th>
343
                                            <th>Hold date</th>
344
                                            <th>Pick up library</th>
345
                                        </tr>
346
                                    </thead>
347
                                    <tbody>
348
                                        [% FOREACH WAITIN IN WAITING %]
349
                                            <tr>
350
                                                <td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td>
351
                                                <td>
352
                                                    <a class="title" href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]">
353
                                                        [% WAITIN.waiting_title %] [% FOREACH subtitl IN WAITIN.subtitle %] [% subtitl.subfield %][% END %]
354
                                                    </a>
355
                                                    <span class="item-details">
356
                                                        [% WAITIN.author %]
357
                                                    </span></td>
358
                                                <td>
359
                                                    <span class="tdlabel">Hold date:</span>
360
                                                    [% WAITIN.reservedate | $KohaDates %]</td>
361
                                                <td>
362
                                                    [% IF ( WAITIN.atdestination ) %]
363
                                                        <strong>Waiting</strong> at [% WAITIN.branch %]
364
                                                    [% ELSE %]
365
                                                        In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %]
366
                                                    [% END %]
367
                                                </td>
368
                                            </tr>
369
                                        [% END %]
370
                                    </tbody>
371
                                </table>
372
                            </div> <!-- /#opac-user-waiting -->
373
                        [% END # waiting_count && atdestination %]
374
375
376
                        [% IF ( overdues_count ) %]
335
                        [% IF ( overdues_count ) %]
377
                            <div id="opac-user-overdues">
336
                            <div id="opac-user-overdues">
378
                                <table id="overduest" class="table table-bordered table-striped">
337
                                <table id="overduest" class="table table-bordered table-striped">
(-)a/opac/opac-user.pl (-2 lines)
Lines 281-287 my $reserves = Koha::Holds->search( { borrowernumber => $borrowernumber } ); Link Here
281
$template->param(
281
$template->param(
282
    RESERVES       => $reserves,
282
    RESERVES       => $reserves,
283
    showpriority   => $show_priority,
283
    showpriority   => $show_priority,
284
    WAITING        => $reserves->waiting()
285
);
284
);
286
285
287
# current alert subscriptions
286
# current alert subscriptions
288
- 

Return to bug 13918