quickfix for adv. searching in nozebra.
authorMason James <mason@snaga.liblime.co.nz>
Thu, 13 Dec 2007 23:39:31 +0000 (12:39 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 15 Dec 2007 05:05:36 +0000 (23:05 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Search.pm

index 125c7a4..ce7d4ee 100644 (file)
@@ -1314,6 +1314,8 @@ sub NZanalyse {
             $right = $3;
         }
         my $results;
+       # strip adv, zebra keywords, currently not handled in nozebra: wrdl, ext, phr...
+        $left =~ s/[ ,].*$//;
         # automatic replace for short operators
         $left='title' if $left =~ '^ti$';
         $left='author' if $left =~ '^au$';