X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-authoritiesdetail.pl;h=6610dfda5c8e8662d985840b77b0a977183d3759;hb=465e58b5947ad345bff858c459434c3c665a6b96;hp=066a821121e34679b099f6565c6fa4e61954617b;hpb=71e1218fe1ad7bb2fc81e8d165306e958a67f325;p=koha_gimpoz diff --git a/opac/opac-authoritiesdetail.pl b/opac/opac-authoritiesdetail.pl index 066a821121..6610dfda5c 100755 --- a/opac/opac-authoritiesdetail.pl +++ b/opac/opac-authoritiesdetail.pl @@ -168,18 +168,16 @@ foreach my $field (@fields) { push( @loop_data, \%tag_data ); } } -$template->param( "0XX" => \@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, +$template->param( "Tab0XX" => \@loop_data ); + +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(