X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-authoritiesdetail.pl;h=6610dfda5c8e8662d985840b77b0a977183d3759;hb=465e58b5947ad345bff858c459434c3c665a6b96;hp=27ca8cc8a27653823c8bd31f6c0d1bb7dcd2cf30;hpb=432777e83388d9ea3d9f9c123e684b6830cd05e3;p=koha_gimpoz diff --git a/opac/opac-authoritiesdetail.pl b/opac/opac-authoritiesdetail.pl index 27ca8cc8a2..6610dfda5c 100755 --- a/opac/opac-authoritiesdetail.pl +++ b/opac/opac-authoritiesdetail.pl @@ -170,16 +170,14 @@ foreach my $field (@fields) { } $template->param( "Tab0XX" => \@loop_data ); -my $authtypes = getauthtypes; -my @authtypesloop; -foreach my $thisauthtype ( keys %$authtypes ) { - my $selected = 1 if $thisauthtype eq $authtypecode; - my %row = ( - value => $thisauthtype, - selected => $selected, +my $authtypes = getauthtypes(); +my @authtypesloop = (); +foreach my $thisauthtype ( keys %{$authtypes} ) { + push @authtypesloop, + { value => $thisauthtype, + selected => $thisauthtype eq $authtypecode, authtypetext => $authtypes->{$thisauthtype}{'authtypetext'}, - ); - push @authtypesloop, \%row; + }; } $template->param(