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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-2 / +7 lines)
Lines 50-57 Link Here
50
[% BLOCK items_table %]
50
[% BLOCK items_table %]
51
    <div class="[% tab | html %]_table_table_controls">
51
    <div class="[% tab | html %]_table_table_controls">
52
        <span class="show_hide_filters">
52
        <span class="show_hide_filters">
53
            <button class="btn btn-link show_filters" data-tab="[% tab | html %]"><i class="fa fa-filter"></i> Show filters</button>
53
            [% IF Koha.Preference('AlwaysShowHoldingsTableFilters') %]
54
            <button class="btn btn-link hide_filters" data-tab="[% tab | html %]" style="display: none;"><i class="fa fa-filter"></i> Hide filters</button>
54
                <button class="btn btn-link show_filters" data-tab="[% tab | html %]" style="display: none;"><i class="fa fa-filter"></i> Show filters</button>
55
                <button class="btn btn-link hide_filters" data-tab="[% tab | html %]"><i class="fa fa-filter"></i> Hide filters</button>
56
            [% ELSE %]
57
                <button class="btn btn-link show_filters" data-tab="[% tab | html %]"><i class="fa fa-filter"></i> Show filters</button>
58
                <button class="btn btn-link hide_filters" data-tab="[% tab | html %]" style="display: none;"><i class="fa fa-filter"></i> Hide filters</button>
59
            [% END %]
55
        </span>
60
        </span>
56
        <button class="btn btn-link SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</button>
61
        <button class="btn btn-link SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</button>
57
        <button class="btn btn-link ClearAll" data-tab="[% tab | html %]"><i class="fa fa-times"></i> Clear all</button>
62
        <button class="btn btn-link ClearAll" data-tab="[% tab | html %]"><i class="fa fa-times"></i> Clear all</button>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+6 lines)
Lines 294-299 Cataloging: Link Here
294
                homebranch: 'home library'
294
                homebranch: 'home library'
295
                holdingbranch: 'holding library'
295
                holdingbranch: 'holding library'
296
            - "is the logged in user's library. The second tab will contain all other items."
296
            - "is the logged in user's library. The second tab will contain all other items."
297
        -
298
            - pref: AlwaysShowHoldingsTableFilters
299
              choices:
300
                  1: "Do"
301
                  0: "Don't"
302
            - always show filters by default on the holdings table in the record details page.
297
        -
303
        -
298
            - "Don't show"
304
            - "Don't show"
299
            - pref: NotesToHide
305
            - pref: NotesToHide
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +5 lines)
Lines 2039-2046 Link Here
2039
2039
2040
                // Early return if the tab is not shown (ie. no table)
2040
                // Early return if the tab is not shown (ie. no table)
2041
                if (!$("#%s-tab".format(tab_id)).length) return;
2041
                if (!$("#%s-tab".format(tab_id)).length) return;
2042
2042
                [% IF Koha.Preference('AlwaysShowHoldingsTableFilters') %]
2043
                build_items_table(tab_id, false, {}, build_items_table_drawncallback);
2043
                    build_items_table(tab_id, true, {}, build_items_table_drawncallback);
2044
                [% ELSE %]
2045
                    build_items_table(tab_id, false, {}, build_items_table_drawncallback);
2046
                [% END %]
2044
2047
2045
                [% IF bundlesEnabled %]
2048
                [% IF bundlesEnabled %]
2046
                    // Add event listener for opening and closing bundle details
2049
                    // Add event listener for opening and closing bundle details
2047
- 

Return to bug 38108