Bug 5661 Fix a problem when doing an authority search with no sort order

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Frédérick Capovilla 2011-02-02 16:17:21 -05:00 committed by Chris Cormack
parent 4f7bcdcbae
commit 079796ed18

View file

@ -266,7 +266,8 @@ sub SearchAuthorities {
'@attr 7=2 @attr 1=Heading 0'
:''
);
$query=($query?"\@or $orderstring $query":"\@or \@attr 1=_ALLRECORDS \@attr 2=103 '' $orderstring ");
$query=($query?$query:"\@attr 1=_ALLRECORDS \@attr 2=103 ''");
$query="\@or $orderstring $query" if $orderstring;
$offset=0 unless $offset;
my $counter = $offset;