Bugzilla – Attachment 145079 Details for
Bug 32491
Can no longer search patrons in format 'surname, firstname'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32491: Split patron search terms on comma - autocomplete
Bug-32491-Split-patron-search-terms-on-comma---aut.patch (text/plain), 1.08 KB, created by
David Nind
on 2023-01-06 11:05:15 UTC
(
hide
)
Description:
Bug 32491: Split patron search terms on comma - autocomplete
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-01-06 11:05:15 UTC
Size:
1.08 KB
patch
obsolete
>From 7722f865765ffd7ae8d953427850cc57e25cda4a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 6 Jan 2023 10:09:45 +0100 >Subject: [PATCH] Bug 32491: Split patron search terms on comma - autocomplete > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js b/koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js >index 5f0aeb5559..c2bb3dfcc9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js >@@ -17,7 +17,7 @@ function patron_autocomplete(node, options) { > return node.autocomplete({ > source: function( request, response ) { > let subquery_and = []; >- request.term.split(' ') >+ request.term.split(/[\s,]+/) > .filter(function(s){ return s.length }) > .forEach(function(pattern,i){ > subquery_and.push( >-- >2.30.2
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 32491
:
145054
|
145058
|
145077
|
145078
|
145079
|
145083
|
145084