Lines 651-657
sub get_matches {
Link Here
|
651 |
else { |
651 |
else { |
652 |
my $phr = C4::Context->preference('AggressiveMatchOnISBN') ? ',phr' : q{}; |
652 |
my $phr = C4::Context->preference('AggressiveMatchOnISBN') ? ',phr' : q{}; |
653 |
$query = join( " or ", |
653 |
$query = join( " or ", |
654 |
map { "$matchpoint->{'index'}$phr=$_" } @source_keys ); |
654 |
map { "$matchpoint->{'index'}$phr=\"$_\"" } @source_keys ); |
|
|
655 |
#NOTE: double-quote the values so you don't get a "Embedded truncation not supported" error when a term has a ? in it. |
655 |
} |
656 |
} |
656 |
|
657 |
|
657 |
require C4::Search; |
658 |
require C4::Search; |
Lines 807-813
sub _get_match_keys {
Link Here
|
807 |
} else { |
808 |
} else { |
808 |
foreach my $subfield ($field->subfields()) { |
809 |
foreach my $subfield ($field->subfields()) { |
809 |
if (exists $component->{'subfields'}->{$subfield->[0]}) { |
810 |
if (exists $component->{'subfields'}->{$subfield->[0]}) { |
810 |
$string .= " " . $subfield->[1]; |
811 |
$string .= " " . $subfield->[1]; #FIXME: It would be better to create an array and join with a space later... |
811 |
} |
812 |
} |
812 |
} |
813 |
} |
813 |
} |
814 |
} |
814 |
- |
|
|