From d989e33d8863898fc99dff517d2470eb13b5537a Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 20 Jun 2005 13:12:11 +0000 Subject: [PATCH] improving systempref selector : * showing active tab better * removing useless filter form * adding some systemprefs to their correct tab --- admin/systempreferences.pl | 11 ++-- .../en/parameters/systempreferences.tmpl | 60 ++++++++++++------- 2 files changed, 47 insertions(+), 24 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 45ea5ff8c0..acc7b61b86 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -59,7 +59,7 @@ $tabsysprefs{marcflavour}="Catalogue"; $tabsysprefs{SubscriptionHistory}="Catalogue"; $tabsysprefs{maxoutstanding}="Circulation"; $tabsysprefs{printcirculationslips}="Circulation"; -$tabsysprefs{suggestion}="Circulation"; +$tabsysprefs{suggestion}="Acquisitions"; $tabsysprefs{automembernum}="Members"; $tabsysprefs{noissuescharge}="Circulation"; $tabsysprefs{opacthemes}="OPAC"; @@ -74,6 +74,9 @@ $tabsysprefs{dateformat}="Admin"; $tabsysprefs{insecure}="Admin"; $tabsysprefs{ldapinfos}="Admin"; $tabsysprefs{ldapserver}="Admin"; +$tabsysprefs{itemcallnumber}="Catalogue"; +$tabsysprefs{maxreserves}="Circulation"; +$tabsysprefs{virtualshelves}="OPAC"; sub StringSearch { my ($env,$searchstring,$type)=@_; @@ -134,10 +137,10 @@ $searchfield=~ s/\,//g; if ($op) { $template->param(script_name => $script_name, - $op => 1); # we show only the TMPL_VAR names $op + $op => 1,); # we show only the TMPL_VAR names $op } else { $template->param(script_name => $script_name, - else => 1); # we show only the TMPL_VAR names $op + else => 1,); # we show only the TMPL_VAR names $op } if ($op eq 'update_and_reedit') { @@ -351,7 +354,7 @@ if ($op eq 'add_form') { $row_data{delete} = "$script_name?op=delete_confirm&searchfield=".$results->[$i]{'variable'}; push(@loop_data, \%row_data); } - $template->param(loop => \@loop_data); + $template->param(loop => \@loop_data, $tab => 1); if ($offset>0) { my $prevpage = $offset-$pagesize; $template->param("'); diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl index ea4be58f58..fdd7d169ed 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl @@ -139,43 +139,63 @@
- Admin - + + Admin + + Admin + - Acquisitions - + + Acquisitions + + Acquisitions + - Authorities - + + Authorities + + Authorities + - Catalogue - + + Catalogue + + Catalogue + - Circulation - + + Circulation + + Circulation + - Members - + + Members + + Members + - OPAC - + + OPAC + + OPAC + - Others - + + Others + + Others +
-
- - -
-- 2.39.5