Browse Source

Bug 5410 : Adds "do-not-truncate" in the search queries of Heading.pm

Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
3.4.x
Frédérick Capovilla 13 years ago
committed by Chris Cormack
parent
commit
0f4edffc16
  1. 4
      C4/Heading.pm

4
C4/Heading.pm

@ -106,7 +106,7 @@ heading.
sub authorities {
my $self = shift;
my $query = qq(Match-heading,ext="$self->{'search_form'}");
my $query = qq(Match-heading,do-not-truncate,ext="$self->{'search_form'}");
$query .= $self->_query_limiters();
my ($error, $results, $total_hits) = SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
return $results;
@ -123,7 +123,7 @@ that are a preferred form of the heading.
sub preferred_authorities {
my $self = shift;
my $query = "Match-heading-see-from,ext='$self->{'search_form'}'";
my $query = "Match-heading-see-from,do-not-truncate,ext='$self->{'search_form'}'";
$query .= $self->_query_limiters();
my ($error, $results, $total_hits) = SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
return $results;

Loading…
Cancel
Save