Bug 41995

Summary: Autocomplete for syspref search
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Staff interfaceAssignee: Jonathan Druart <jonathan.druart>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: anneli.osterman, gmcharlt, michael.adamyk
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 41994    
Bug Blocks:    
Attachments: Bug 41995: Autocomplete for syspref search
Screenshot of System preferences search box
Bug 41995: Autocomplete for syspref search
Bug 41995: Add autocomplete on the admin home page
Bug 41995: Autocomplete for syspref search
Bug 41995: Add autocomplete on the admin home page

Description Jonathan Druart 2026-03-05 10:36:57 UTC

    
Comment 1 Jonathan Druart 2026-03-05 10:50:38 UTC
Created attachment 194492 [details] [review]
Bug 41995: Autocomplete for syspref search

This patch adds autocompletion to the syspref search in the header.

Test plan:
1. Go to the admin home page - /cgi-bin/koha/admin/admin-home.pl
2. In the header start typing the name of a syspref and notice that
   there is now autocompletion (you need at least 3 chars)
3. Select an entry and confirm that you are correctly redirected to the
   correct search result
Comment 2 Anneli Österman 2026-03-05 12:09:37 UTC
This is a great idea. :)

I tested this in a sandbox and the autocomplete works but when you select one of the recommendations the search does not work. It does not do the search with the selected system preference name.

The next one is not a show stopper but should we add the autocomplete to the System preferences search box also? See the screenshot.
Comment 3 Anneli Österman 2026-03-05 12:10:15 UTC
Created attachment 194498 [details]
Screenshot of System preferences search box
Comment 4 Owen Leonard 2026-03-05 12:25:04 UTC
(In reply to Anneli Österman from comment #2)

> The next one is not a show stopper but should we add the autocomplete to the
> System preferences search box also? See the screenshot.

I had the same thought
Comment 5 Jonathan Druart 2026-03-05 12:47:40 UTC
Created attachment 194501 [details] [review]
Bug 41995: Autocomplete for syspref search

This patch adds autocompletion to the syspref search in the header.

Test plan:
1. Go to the admin home page - /cgi-bin/koha/admin/admin-home.pl
2. In the header start typing the name of a syspref and notice that
   there is now autocompletion (you need at least 3 chars)
3. Select an entry and confirm that you are correctly redirected to the
   correct search result
Comment 6 Jonathan Druart 2026-03-05 13:03:32 UTC
Created attachment 194507 [details] [review]
Bug 41995: Add autocomplete on the admin home page

Patch from commit 04e7c46
Comment 7 Jonathan Druart 2026-03-05 13:04:20 UTC
(In reply to Anneli Österman from comment #2)
> I tested this in a sandbox and the autocomplete works but when you select
> one of the recommendations the search does not work. It does not do the
> search with the selected system preference name.

Oops yes sorry, I made a mistake when I clean the code for submission.

> The next one is not a show stopper but should we add the autocomplete to the
> System preferences search box also? See the screenshot.

Done in the second patch.

Thanks for testing!
Comment 8 OpenFifth Sandboxes 2026-03-05 13:37:51 UTC
Created attachment 194508 [details] [review]
Bug 41995: Autocomplete for syspref search

This patch adds autocompletion to the syspref search in the header.

Test plan:
1. Go to the admin home page - /cgi-bin/koha/admin/admin-home.pl
2. In the header start typing the name of a syspref and notice that
   there is now autocompletion (you need at least 3 chars)
3. Select an entry and confirm that you are correctly redirected to the
   correct search result

Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>
Comment 9 OpenFifth Sandboxes 2026-03-05 13:37:53 UTC
Created attachment 194509 [details] [review]
Bug 41995: Add autocomplete on the admin home page

Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>