[Koha-bugs] [Bug 8620] Barcode searching not working correctly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 15 15:27:19 CEST 2012


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

--- Comment #3 from Jorge de Cardenas <jdeca at smfpl.org> ---
This is not a good fix but I replaced:

if(not $index){
       $index = 'kw';
}

in Search.pm (around line 1182) with:

if(not $index){
    if($operand =~ m/[0-9]{14}/){
            $index = 'bc';
    }else{
         $index = 'kw';
    }
}

Our barcodes are 14 digits long, it tests for 14 digits and sets the index to
'bc' instead of 'kw' when no index was submitted. There is probably a way to
fix this through the zebra configuration files but I don't understand them well
enough to try it.

Jorge

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


More information about the Koha-bugs mailing list