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

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

Return to bug 13918