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