authority ordering in cataloguing / search authority

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-30 13:02:42 -05:00 committed by Joshua Ferraro
parent 134f50e6d2
commit 50e759fdee
2 changed files with 3 additions and 2 deletions

View File

@ -60,6 +60,7 @@ if ( $op eq "do_search" ) {
my @excluding = $query->param('excluding');
my @operator = $query->param('operator');
my @value = $query->param('value');
my $orderby = $query->param('orderby');
$resultsperpage = $query->param('resultsperpage');
$resultsperpage = 19 if ( !defined $resultsperpage );
@ -67,7 +68,7 @@ if ( $op eq "do_search" ) {
my ( $results, $total ) =
SearchAuthorities( \@marclist, \@and_or, \@excluding, \@operator, \@value,
$startfrom * $resultsperpage,
$resultsperpage, $authtypecode ); # $orderby);
$resultsperpage, $authtypecode, $orderby);
# multi page display gestion
my $displaynext = 0;

View File

@ -63,7 +63,7 @@
<p>
Sort by <select name="orderby">
<option value="">No order</option>
<option value="HeadingAsc">Heading Ascendant</option>
<option value="HeadingAsc" selected="SELECTED">Heading Ascendant</option>
<option value="HeadingDsc">Heading Descendant</option>
</select>
<input type="submit" value="Start search" class="button" />