From f08401d7adc6bf2fe7b013c314c3ab80f8105776 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 5 Jun 2008 12:26:38 -0500 Subject: [PATCH] kohabug 2205 - fix 404 when traversing pagination link in OPAC authorities search Currently, the heading sort order is a required parameter, but was not supplied to the template or used in the search results. As a result of this patch, clicking a link to view another page of the authority search results will now work. Outstanding issue not addressed by this patch: when searching authorities in both the staff interface and the OPAC, choosing sort order "none" results in a crash. Signed-off-by: Joshua Ferraro --- .../modules/opac-authoritiessearchresultlist.tmpl | 14 +++++++------- opac/opac-authorities-home.pl | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl index cf002faf45..9b8f877591 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl @@ -12,7 +12,7 @@

Authority search results

- \ No newline at end of file + diff --git a/opac/opac-authorities-home.pl b/opac/opac-authorities-home.pl index 6fef1b8f1b..e1ea484157 100755 --- a/opac/opac-authorities-home.pl +++ b/opac/opac-authorities-home.pl @@ -127,6 +127,7 @@ if ( $op eq "do_search" ) { } $template->param( result => $results ) if $results; $template->param( FIELDS => \@fields ); + $template->param( orderby => $orderby ); $template->param( startfrom => $startfrom, displaynext => $displaynext, -- 2.39.5