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>
(cherry picked from commit 079796ed18)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
9746035a75
commit
f9cbf98a01
|
|
@ -264,8 +264,9 @@ 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;
|
||||
$length=10 unless $length;
|
||||
|
|
|
|||
Loading…
Reference in New Issue