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