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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-8 / +13 lines)
Lines 344-350 Link Here
344
            [% END %]
344
            [% END %]
345
345
346
            [% IF Koha.Preference('SeparateHoldings') %]
346
            [% IF Koha.Preference('SeparateHoldings') %]
347
                [% IF other_holdings_count %]
347
                [% IF other_holdings_count > 0 %]
348
                    [% WRAPPER tab_item tabname= "otherholdings" %]
348
                    [% WRAPPER tab_item tabname= "otherholdings" %]
349
                        <span>Other holdings ([% other_holdings_count || 0 | html %])</span>
349
                        <span>Other holdings ([% other_holdings_count || 0 | html %])</span>
350
                    [% END %]
350
                    [% END %]
Lines 1750-1772 Link Here
1750
    [% END %]
1750
    [% END %]
1751
    <script>
1751
    <script>
1752
        var browser;
1752
        var browser;
1753
        var group_tabs;
1753
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
1754
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
1754
        browser.show();
1755
        browser.show();
1756
        let group_tabs_array = new Array;
1757
        [% IF Koha.Preference('SeparateHoldingsByGroup') && lib_groups %]
1758
            [% FOREACH group IN lib_groups %]
1759
               group_tabs = "group_holdings_[% group.id | html %]"
1760
               group_tabs_array.push(group_tabs);
1761
            [% END %]
1762
          [% END %]
1755
1763
1756
        [% IF bundlesEnabled %]
1764
        [% IF bundlesEnabled %]
1757
            var bundle_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','bundle_tables','json') | $raw %];
1765
            var bundle_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','bundle_tables','json') | $raw %];
1758
            var bundle_lost_value = [% Koha.Preference('BundleLostValue') | html %];
1766
            var bundle_lost_value = [% Koha.Preference('BundleLostValue') | html %];
1759
        [% END %]
1767
        [% END %]
1760
1768
1761
        let items_tab_ids = [
1769
        let items_tab_ids_default = [
1762
            'holdings',
1770
            'holdings',
1763
            'otherholdings'
1771
            'otherholdings'
1764
            [% IF Koha.Preference('SeparateHoldingsByGroup') && lib_groups %]
1765
                [% FOREACH group IN lib_groups %]
1766
                , 'group_holdings_[% group.id | html %]'
1767
                [% END %]
1768
            [% END %]
1769
        ];
1772
        ];
1773
1774
        let items_tab_ids = items_tab_ids_default.concat(group_tabs_array);
1775
1770
        items_tab_ids.forEach( function( tab_id, index ) {
1776
        items_tab_ids.forEach( function( tab_id, index ) {
1771
1777
1772
            // Early return if the tab is not shown (ie. no table)
1778
            // Early return if the tab is not shown (ie. no table)
1773
- 

Return to bug 35211