Bug 41995 - Autocomplete for syspref search
Summary: Autocomplete for syspref search
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on: 41994
Blocks:
  Show dependency treegraph
 
Reported: 2026-03-05 10:36 UTC by Jonathan Druart
Modified: 2026-03-05 16:48 UTC (History)
3 users (show)

See Also:
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:


Attachments
Bug 41995: Autocomplete for syspref search (7.08 KB, patch)
2026-03-05 10:50 UTC, Jonathan Druart
Details | Diff | Splinter Review
Screenshot of System preferences search box (6.03 KB, image/png)
2026-03-05 12:10 UTC, Anneli Österman
Details
Bug 41995: Autocomplete for syspref search (7.10 KB, patch)
2026-03-05 12:47 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41995: Add autocomplete on the admin home page (1.66 KB, patch)
2026-03-05 13:03 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41995: Autocomplete for syspref search (7.24 KB, patch)
2026-03-05 13:37 UTC, OpenFifth Sandboxes
Details | Diff | Splinter Review
Bug 41995: Add autocomplete on the admin home page (1.80 KB, patch)
2026-03-05 13:37 UTC, OpenFifth Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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>