From 64e2118e8181dcfad00bfb104d96b4b1d6febf29 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 16 Oct 2007 16:02:43 -0500 Subject: [PATCH] authorities : Adding sorting option to opac & sorting mainentry asc by default Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../en/modules/authorities/authorities-home.tmpl | 2 +- .../opac-tmpl/prog/en/opac-authorities-home.tmpl | 7 ++++++- opac/opac-authorities-home.pl | 14 +++++++------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl index 53c8b5a612..5b143099ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl @@ -85,7 +85,7 @@ function searchauthority() {

diff --git a/koha-tmpl/opac-tmpl/prog/en/opac-authorities-home.tmpl b/koha-tmpl/opac-tmpl/prog/en/opac-authorities-home.tmpl index 04395ad8b9..0afb0ca3b3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/opac-authorities-home.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/opac-authorities-home.tmpl @@ -58,7 +58,12 @@

-

(add % at the end of your word if you want to use right-truncation : theor% will find theory & theories)

+

+

diff --git a/opac/opac-authorities-home.pl b/opac/opac-authorities-home.pl index 9076bffe72..6fef1b8f1b 100755 --- a/opac/opac-authorities-home.pl +++ b/opac/opac-authorities-home.pl @@ -55,12 +55,12 @@ foreach my $thisauthtype ( sort { $authtypes->{$a}{'authtypetext'} cmp $authtype } if ( $op eq "do_search" ) { - my @marclist = $query->param('marclist'); - my @and_or = $query->param('and_or'); - my @excluding = $query->param('excluding'); - my @operator = $query->param('operator'); - my $orderby = $query->param('orderby'); - my @value = $query->param('value'); + my @marclist = $query->param('marclist'); + my @and_or = $query->param('and_or'); + my @excluding = $query->param('excluding'); + my @operator = $query->param('operator'); + my $orderby = $query->param('orderby'); + my @value = $query->param('value'); $resultsperpage = $query->param('resultsperpage'); $resultsperpage = 19 if ( !defined $resultsperpage ); @@ -68,7 +68,7 @@ if ( $op eq "do_search" ) { my ( $results, $total, @fields ) = SearchAuthorities( \@marclist, \@and_or, \@excluding, \@operator, \@value, $startfrom * $resultsperpage, - $resultsperpage, $authtypecode ); + $resultsperpage, $authtypecode, $orderby ); ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => "opac-authoritiessearchresultlist.tmpl", -- 2.39.5