Bug 5410 : Adds "do-not-truncate" in the search queries of Heading.pm
authorFrédérick Capovilla <frederick.capovilla@sys-tech.net>
Tue, 5 Apr 2011 08:08:12 +0000 (10:08 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 6 Apr 2011 05:18:21 +0000 (17:18 +1200)
Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Heading.pm

index 9d7d98a..643d820 100644 (file)
@@ -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;