[Koha-bugs] [Bug 28241] OPACNoResultsFound {QUERY_KW} placeholder doesn't always match the search terms when commas are included in the search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 29 21:29:24 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28241

Andrew Fuerste-Henry <andrew at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #120247|0                           |1
        is obsolete|                            |

--- Comment #3 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Created attachment 120319
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120319&action=edit
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 at latahlibrary.org>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list