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:
parent
4f7bcdcbae
commit
079796ed18
1 changed files with 3 additions and 2 deletions
|
@ -266,8 +266,9 @@ sub SearchAuthorities {
|
||||||
'@attr 7=2 @attr 1=Heading 0'
|
'@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;
|
$offset=0 unless $offset;
|
||||||
my $counter = $offset;
|
my $counter = $offset;
|
||||||
$length=10 unless $length;
|
$length=10 unless $length;
|
||||||
|
|
Loading…
Reference in a new issue