From d42ba7a0ce3144084f9f50ba77285d4d17d2b434 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 --- .../prog/en/includes/patron-search.inc | 105 ++++++++---------- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 59 +++++++++- 2 files changed, 106 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 8233e70c54..3d5db40929 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -150,7 +150,7 @@ [% END %] -

Patrons found for:

+