[Koha-bugs] [Bug 6786] New: False detection of index names in Search; make index names case insensitive

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 25 13:17:35 CEST 2011


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.rooy at rijksmuseum.nl
        ReportedBy: m.de.rooy at rijksmuseum.nl
         QAContact: koha-bugs at 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.


More information about the Koha-bugs mailing list