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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-9 / +16 lines)
Lines 273-285 Link Here
273
273
274
<ul class="nav nav-tabs" role="tablist">
274
<ul class="nav nav-tabs" role="tablist">
275
    [% IF Koha.Preference('SeparateHoldings') %]
275
    [% IF Koha.Preference('SeparateHoldings') %]
276
        <li role="presentation">
276
        [% IF items_to_display_count - ( other_holdings_count || 0 ) %]
277
            [%# FIXME We could build the numbers from DataTable's info %]
277
            <li role="presentation">
278
            <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %])</a>
278
                [%# FIXME We could build the numbers from DataTable's info %]
279
        </li>
279
                <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% items_to_display_count - ( other_holdings_count || 0 ) - ( hidden_count || 0 ) || 0 | html %])</a>
280
        <li role="presentation">
280
            </li>
281
            <a href="#otherholdings"  aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% other_holdings_count || 0 | html %])</a>
281
        [% END %]
282
        </li>
282
        [% IF other_holdings_count %]
283
            <li role="presentation">
284
                <a href="#otherholdings"  aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% other_holdings_count || 0 | html %])</a>
285
            </li>
286
        [% END %]
283
    [% ELSE %]
287
    [% ELSE %]
284
        <li role="presentation">
288
        <li role="presentation">
285
            <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% items_to_display_count || 0 | html %])</a>
289
            <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% items_to_display_count || 0 | html %])</a>
Lines 1285-1291 Link Here
1285
                    $(".nav-tabs a[href='#holdings']").tab("show");
1289
                    $(".nav-tabs a[href='#holdings']").tab("show");
1286
                [% END %]
1290
                [% END %]
1287
            [% ELSE %]
1291
            [% ELSE %]
1288
                $(".nav-tabs a[href='#holdings']").tab("show");
1292
                [% IF items_to_display_count - ( other_holdings_count || 0 ) %]
1293
                    $(".nav-tabs a[href='#holdings']").tab("show");
1294
                [% ELSE %]
1295
                    $(".nav-tabs a[href='#otherholdings']").tab("show");
1296
                [% END %]
1289
            [% END %]
1297
            [% END %]
1290
            $('#search-form').focus();
1298
            $('#search-form').focus();
1291
            $('.thumbnails > li > .remove').click(function() {
1299
            $('.thumbnails > li > .remove').click(function() {
1292
- 

Return to bug 33568