From d3c1c0e23c45b62820f81f91e9b52e17061ba36a Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Thu, 30 Oct 2025 15:18:55 +0000 Subject: [PATCH] Bug 41119: Add missing function to acqui-home.tt TEST PLAN: DO NOT APPLY PATCH BEFORE TESTING 1 - Go to histsearch.pl, type "ko" in "Basket created by" -> autocompletion starts 2 - Go to acqui-home.pl, type "ko" in "Basket created by" -> autocompletion is ko 3 - Apply patch 4 - Go to histsearch.pl, type "ko" in "Basket created by" -> autocompletion starts 5 - Go to acqui-home.pl, type "ko" in "Basket created by" -> autocompletion starts --- .../prog/en/modules/acqui/acqui-home.tt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index b2f6b4f55fc..98488e04761 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -281,6 +281,22 @@ $("#accounts").DataTable().draw(); }); + var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %]; + $("#histsearcht").kohaTable( + { + pagingType: "full", + }, + table_settings + ); + + patron_autocomplete($("#find_patron"), { + 'on-select-add-to': {container: $("#basket_creators"), input_name: 'created_by' }, + 'on-select-callback': function( event, ui ) { + $("#find_patron").val('').focus(); + return false; + } + + }); }); [% END %] -- 2.43.0