(bug #2881) preselect default sorting
This patch just set a variable with the name of default sorting, and value 1 Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
96d0ea56df
commit
31c6cd032b
2 changed files with 12 additions and 2 deletions
|
@ -265,7 +265,12 @@ if ( $template_type eq 'advsearch' ) {
|
|||
|
||||
my $secondary_servers_loop;# = displaySecondaryServers();
|
||||
$template->param(outer_sup_servers_loop => $secondary_servers_loop,);
|
||||
|
||||
|
||||
# set the default sorting
|
||||
my $default_sort_by = C4::Context->preference('defaultSortField')."_".C4::Context->preference('defaultSortOrder')
|
||||
if (C4::Context->preference('OPACdefaultSortField') && C4::Context->preference('OPACdefaultSortOrder'));
|
||||
$template->param($default_sort_by => 1);
|
||||
|
||||
# determine what to display next to the search boxes (ie, boolean option
|
||||
# shouldn't appear on the first one, scan indexes should, adding a new
|
||||
# box should only appear on the last, etc.
|
||||
|
|
|
@ -179,7 +179,12 @@ if ( $template_type eq 'advsearch' ) {
|
|||
|
||||
my $secondary_servers_loop;# = displaySecondaryServers();
|
||||
$template->param(outer_sup_servers_loop => $secondary_servers_loop,);
|
||||
|
||||
|
||||
# set the default sorting
|
||||
my $default_sort_by = C4::Context->preference('OPACdefaultSortField')."_".C4::Context->preference('OPACdefaultSortOrder')
|
||||
if (C4::Context->preference('OPACdefaultSortField') && C4::Context->preference('OPACdefaultSortOrder'));
|
||||
$template->param($default_sort_by => 1);
|
||||
|
||||
# determine what to display next to the search boxes (ie, boolean option
|
||||
# shouldn't appear on the first one, scan indexes should, adding a new
|
||||
# box should only appear on the last, etc.
|
||||
|
|
Loading…
Reference in a new issue