diff --git a/admin/z3950servers.pl b/admin/z3950servers.pl index 50df19e0f6..37d577c7c6 100755 --- a/admin/z3950servers.pl +++ b/admin/z3950servers.pl @@ -78,17 +78,10 @@ if ($op eq 'add_form') { $data=$sth->fetchrow_hashref; $sth->finish; } - - $template->param(host => $data->{'host'}, - port => $data->{'port'}, - db => $data->{'db'}, - userid => $data->{'userid'}, - password => $data->{'password'}, - checked => $data->{'checked'}, - rank => $data->{'rank'}, - syntax => $data->{'syntax'}, - encoding => $data->{'encoding'}, - ); + $template->param( $_ => $data->{$_} ) + for ( qw( host port db userid password checked rank ) ); + $template->param( $_ . $data->{$_} => 1) + for ( qw( syntax encoding ) ); # END $OP eq ADD_FORM ################## ADD_VALIDATE ################################## # called by add_form, used to insert/modify data in DB diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl index 803e4df703..cb8c6da19e 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl @@ -114,82 +114,82 @@