From e5ceff784e6cc2ee0f2dc93f7c103fcf8c055da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 27 Jul 2026 18:40:51 +0200 Subject: [PATCH] Added tooltips for the different search mode options --- assets/js/register_events.js | 6 +++--- templates/components/search.macro.html.twig | 10 +++++----- translations/messages.en.xlf | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/assets/js/register_events.js b/assets/js/register_events.js index 547742ea..6a068bd3 100644 --- a/assets/js/register_events.js +++ b/assets/js/register_events.js @@ -27,7 +27,7 @@ class RegisterEventHelper { constructor() { this.registerTooltips(); this.configureDropdowns(); - + // Only register special character input if enabled in configuration const keybindingsEnabled = document.body.dataset.keybindingsSpecialCharacters !== 'false'; if (keybindingsEnabled) { @@ -85,7 +85,7 @@ class RegisterEventHelper { const handler = () => { $(".tooltip").remove(); //Exclude dropdown buttons from tooltips, otherwise we run into endless errors from bootstrap (bootstrap.esm.js:614 Bootstrap doesn't allow more than one instance per element. Bound instance: bs.dropdown.) - $('a[title], label[title], button[title]:not([data-bs-toggle="dropdown"]), p[title], span[title], h6[title], h3[title], i[title], small[title]') + $('a[title], label[title], button[title]:not([data-bs-toggle="dropdown"]), p[title], span[title], h6[title], h3[title], i[title], small[title], div[title]') //@ts-ignore .tooltip("hide").tooltip({container: "body", placement: "auto", boundary: 'window'}); }; @@ -333,4 +333,4 @@ class RegisterEventHelper { } } -export default new RegisterEventHelper(); \ No newline at end of file +export default new RegisterEventHelper(); diff --git a/templates/components/search.macro.html.twig b/templates/components/search.macro.html.twig index afe44d44..d4b25590 100644 --- a/templates/components/search.macro.html.twig +++ b/templates/components/search.macro.html.twig @@ -66,16 +66,16 @@ {% endif %}
-
+
-
- +
+
-
- +
+
diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 00179c86..5cbb992d 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -13679,5 +13679,23 @@ Buerklin-API Authentication server: Treat <code>%</code> and <code>_</code> as wildcards + + + search.regexmatching.help + Use regular expressions like "^\w{3,5}" to search for parts. Does not require slashes padding. + + + + + search.extensive_matching.help + The search term is split up into parts, and a result is found, when each part is contained in any field. Without this mode the full search term has to be contained in a single field. + + + + + search.permit_wildcards.help + If enabled, _ is treated as a wildcard for one character and % is treated as a wildcard for zero or more characters. + +