some improvements in SearchMarc
authortipaul <tipaul>
Tue, 22 Jun 2004 15:33:30 +0000 (15:33 +0000)
committertipaul <tipaul>
Tue, 22 Jun 2004 15:33:30 +0000 (15:33 +0000)
C4/SearchMarc.pm

index 8a19ea7..5fb0810 100644 (file)
@@ -122,6 +122,8 @@ sub catalogsearch {
        {
                # replace * by %
                @$value[$i] =~ s/\*/%/g;
+               # remove % at the beginning
+               @$value[$i] =~ s/^%//g;
                if(@$excluding[$i])     # NOT statements
                {
                        $any_not = 1;