http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6786

             Bug #: 6786
           Summary: False detection of index names in Search; make index
                    names case insensitive
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: ASSIGNED
          Severity: minor
          Priority: PATCH-Sent
         Component: Searching
        AssignedTo: m.de.r...@rijksmuseum.nl
        ReportedBy: m.de.r...@rijksmuseum.nl
         QAContact: koha-bugs@lists.koha-community.org


An erroneous regex in Search.pm makes that some search expressions are marked
ccl= queries while they do not contain an index name.
Note that these queries contain a : or = (Users should not enter them if they
do not intend to use indexes, but unfortunately they do.) 

Example:
opac-search.pl?q=rembrandt+%3A contains the index name "an" (for authority);
this search results in an 500 error.
opac-search.pl?q=hals+%3A does not contain an index name and gives results
opac-search.pl?q=vermeer+%3A does not contain an index name and gives results

A tiny adjustment in the regex and a change in the loop structure makes the
code slightly faster and solves the false index detections. While doing that, I
included a comparison with lowercase. This makes index names in searches case
insensitive.

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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