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: oleon...@myacpl.org
          Reporter: lu...@bywatersolutions.com
        QA Contact: testo...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to