[Koha-bugs] [Bug 28241] New: 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
Tue Apr 27 23:22:03 CEST 2021


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

            Bug ID: 28241
           Summary: OPACNoResultsFound {QUERY_KW} placeholder doesn't
                    always match the search terms when commas are included
                    in the search
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: lucas at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

The OPACNoResultsFound sys pref allows for the  use of a the {QUERY_KW}
placeholder but it doesn't always work right when commas are used in the search
string. 

To recreate:

Set up the OPACNoResultsFound with the {QUERY_KW} placeholder.

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. 

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'.


The regular expression in opac-search.pl can be tweaked to allow the content
before or after commas to display.

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


More information about the Koha-bugs mailing list