From 79918fd244b883ebe83a460a5110b37dd4b73ad4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 9 Oct 2024 14:08:26 +0200 Subject: [PATCH] Bug 38116: Build patron search descriptions using DT's search settings The goal of this patch is to move the construction of the patron search description to datatables.js in order to make it generic and reusable. With bug 33484 and the restoration of the state from localStorage or the URL could lead to confusion when the table is displayed. It could also be problematic when an hidden column has a search pattern. Note that if a column has a dropdown list with an option selected AND is hidden, the description won't display the value but the code (eg. ^CPL$ if library Centerville is selected) Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- .../prog/en/includes/patron-search.inc | 105 ++++++++---------- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 86 +++++++++++++- 2 files changed, 133 insertions(+), 58 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index ba17bf990f4..73530801c9e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -147,7 +147,7 @@ [% END %] -

Patrons found for:

+