@@ -, +, @@
---
.../html_helpers/tables/items/catalogue_detail.inc | 11 +++++++++--
.../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +-
2 files changed, 10 insertions(+), 3 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc
@@ -136,7 +136,7 @@
tab.find(".show_filters").hide();
tab.find(".hide_filters").show();
$("#"+tab_id+"_table thead tr:eq(1)").remove();
- build_items_table(tab_id, true, { dom: dataTablesDefaults.dom, destroy: true } );
+ build_items_table(tab_id, true, { destroy: true } );
});
$(".hide_filters").on("click",function(e){
@@ -146,7 +146,7 @@
tab.find(".hide_filters").hide();
tab.find(".show_filters").show();
$("#"+tab_id+"_table thead tr:eq(1)").remove();
- build_items_table(tab_id, false, { dom: '<"dt-info"i><"top pager"lpfB><"#filter_c">tr<"bottom pager"ip>', destroy: true } );
+ build_items_table(tab_id, false, { destroy: true } );
});
});
[% END %]
@@ -723,6 +723,13 @@
});
}
);
+
+ if (!add_filters && settings._iRecordsDisplay == settings._iRecordsTotal && settings._iDisplayLength >= settings._iRecordsDisplay){
+ let container = $(this).parent();
+ container.find(".dt-info").remove();
+ container.find(".top.pager").remove();
+ container.find(".bottom.pager").remove();
+ }
},
[% END %]
...dt_options,
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -1710,7 +1710,7 @@
let items_tab_ids = [ 'holdings', 'otherholdings' ];
items_tab_ids.forEach( function( tab_id, index ) {
- build_items_table(tab_id, false, { dom: 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>' });
+ build_items_table(tab_id, false);
[% IF bundlesEnabled %]
// Add event listener for opening and closing bundle details
--