]> git.koha-community.org Git - koha.git/commit
Bug 28241: Fix regex to allow for content before and after comma
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 27 Apr 2021 21:23:55 +0000 (21:23 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 13:52:53 +0000 (15:52 +0200)
commit685fcb1880b5be44283620a0f7eacc3f2064680d
treeae58d603e58141e906a24a6085583129c62071a2
parente61c657c638c83a35a5b8f724c63641220ead0c8
Bug 28241: Fix regex to allow for content before and after comma

1. Set up the OPACNoResultsFound with the {QUERY_KW} placeholder.
2.Do a search with a comma that will return no results. Like "King, Martin Luther". If the returns results add some additional characters to the search until no results are returns.
3. Look at the #noresultsfound HTML element. Anything before (or after) the comma is omitted. So the placeholder looks something like 'Martin Luther' instead of 'King, Martin Luther'.
4. Apply patch
5. Try the search again, you should see the content before and after a comma

Signed-off-by: Lisette Scheer <lisettes@latahlibrary.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
opac/opac-search.pl