diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index af13412104..84451e0aa4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -50,8 +50,13 @@ [% BLOCK items_table %]
- - + [% IF Koha.Preference('AlwaysShowHoldingsTableFilters') %] + + + [% ELSE %] + + + [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index 11eed37437..40b08d0c91 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -294,6 +294,12 @@ Cataloging: homebranch: 'home library' holdingbranch: 'holding library' - "is the logged in user's library. The second tab will contain all other items." + - + - pref: AlwaysShowHoldingsTableFilters + choices: + 1: "Do" + 0: "Don't" + - always show filters by default on the holdings table in the record details page. - - "Don't show" - pref: NotesToHide diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 19eb3aefb4..801f7dad1e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2039,8 +2039,11 @@ // Early return if the tab is not shown (ie. no table) if (!$("#%s-tab".format(tab_id)).length) return; - - build_items_table(tab_id, false, {}, build_items_table_drawncallback); + [% IF Koha.Preference('AlwaysShowHoldingsTableFilters') %] + build_items_table(tab_id, true, {}, build_items_table_drawncallback); + [% ELSE %] + build_items_table(tab_id, false, {}, build_items_table_drawncallback); + [% END %] [% IF bundlesEnabled %] // Add event listener for opening and closing bundle details