diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
index 15848daeae..110bc863a4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
@@ -4,100 +4,15 @@
[% USE Price %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% FILTER collapse %]
[% tx("Basket grouping for '{vendor}'", { vendor = booksellername }) %] ›
[% t("Koha") | html %]
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'datatables.inc' %]
-
-
+
[% WRAPPER 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
@@ -205,7 +120,7 @@
[% ELSE %]
- [% INCLUDE 'intranet-bottom.inc' %]
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+
+[% END %]
+[% INCLUDE 'intranet-bottom.inc' %]