Bugzilla – Attachment 179143 Details for
Bug 39288
Improve the patron search description display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39288: lowercase fields in patron search description
Bug-39288-lowercase-fields-in-patron-search-descri.patch (text/plain), 2.70 KB, created by
David Nind
on 2025-03-11 08:42:40 UTC
(
hide
)
Description:
Bug 39288: lowercase fields in patron search description
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-03-11 08:42:40 UTC
Size:
2.70 KB
patch
obsolete
>From e296bf5cd80d75388680b2fa4bd5e04e996d88b7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 10 Mar 2025 14:49:46 +0100 >Subject: [PATCH] Bug 39288: lowercase fields in patron search description > >This patch lowercases all the fields in the patron search description > >Patrons found for: Card number starting with 't' >Library=Riverside, Category=School > >will now be >Patrons found for: card number starting with 't' >library=Riverside, category=School > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 4 ++-- > 2 files changed, 3 insertions(+), 3 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 fa86900600..7f33540ae9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -432,7 +432,7 @@ > let searched = ""; > let pattern = patron_search_form.find(".search_patron_filter").val(); > if ( pattern ) { >- let field = patron_search_form.find(".searchfieldstype_filter").find("option:selected").text(); >+ let field = patron_search_form.find(".searchfieldstype_filter").find("option:selected").text().toLowerCase(); > if ( patron_search_form.find(".searchtype_filter").val() == 'starts_with' ) { > searched += _("%s starting with '%s'".format(field, pattern)); > } else { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index f399ce4ae9..9bf69b5e4e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -1225,7 +1225,7 @@ function update_search_description( > let description = []; > let global_search = table_dt.search(); > if (global_search.length) { >- description.push(__("Anywhere: %s").format(global_search)); >+ description.push(__("anywhere: %s").format(global_search)); > } > let additional_searches = []; > for (f in description_fns) { >@@ -1256,7 +1256,7 @@ function update_search_description( > > column_searches.push( > "%s=%s".format( >- table_dt.column(i).header().innerHTML, >+ table_dt.column(i).header().innerHTML.toLowerCase(), > search > ) > ); >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39288
:
179115
|
179143
|
179796