]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 12 May 2021 14:51:50 +0000 (16:51 +0200)
commit8bc4e059187a20487c3b1a9c29d4c6ea7555c094
tree516d2aeda7d40910b126720af3756575f8e16b4b
parent1b645aaca93edb3132d44073feb38e1654e2b396
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>
(cherry picked from commit 685fcb1880b5be44283620a0f7eacc3f2064680d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-search.pl