View | Details | Raw Unified | Return to bug 26957
Collapse All | Expand All

(-)a/C4/Search.pm (-6 lines)
Lines 107-115 sub FindDuplicate { Link Here
107
        $result->{title} =~ s /\(//g;
107
        $result->{title} =~ s /\(//g;
108
        $result->{title} =~ s /\)//g;
108
        $result->{title} =~ s /\)//g;
109
109
110
        # FIXME: instead of removing operators, could just do
111
        # quotes around the value
112
        $result->{title} =~ s/(and|or|not)//g;
113
        $query = "$titleindex:\"$result->{title}\"";
110
        $query = "$titleindex:\"$result->{title}\"";
114
        if   ( $result->{author} ) {
111
        if   ( $result->{author} ) {
115
            $result->{author} =~ s /\\//g;
112
            $result->{author} =~ s /\\//g;
Lines 117-124 sub FindDuplicate { Link Here
117
            $result->{author} =~ s /\(//g;
114
            $result->{author} =~ s /\(//g;
118
            $result->{author} =~ s /\)//g;
115
            $result->{author} =~ s /\)//g;
119
116
120
            # remove valid operators
121
            $result->{author} =~ s/(and|or|not)//g;
122
            $query .= " $op $authorindex:\"$result->{author}\"";
117
            $query .= " $op $authorindex:\"$result->{author}\"";
123
        }
118
        }
124
    }
119
    }
125
- 

Return to bug 26957