-my $query = new CGI;
-my ($template, $loggedinuser, $cookie)
- = get_template_and_user({template_name => "intranet-main.tmpl",
- query => $query,
- type => "intranet",
- authnotrequired => 0,
- flagsrequired => {catalogue => 1, circulate => 1,
- parameters => 1, borrowers => 1,
- permissions =>1, reserveforothers=>1,
- editcatalogue => 1, updatecharges => 1, },
- debug => 1,
- });
-
-my $lang = "koha";
-my $error=$query->param('error');
-$template->param(error =>$error);
-my ($opac_news_count, $all_opac_news) = &get_opac_news(undef, $lang);
-# if ($opac_news_count > 4) {$template->param(more_opac_news => 1);}
-$template->param(opac_news => $all_opac_news);
-$template->param(opac_news_count => $opac_news_count);
+foreach my $thisauthtype (
+ sort { $authtypes->{$a} <=> $authtypes->{$b} }
+ keys %$authtypes
+ )
+{
+ my %row = (
+ value => $thisauthtype,
+ authtypetext => $authtypes->{$thisauthtype}{'authtypetext'},
+ );
+ push @authtypesloop, \%row;
+}
+
+my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
+ {
+ template_name => "intranet-main.tmpl",
+ query => $query,
+ type => "intranet",
+ authnotrequired => 0,
+ flagsrequired => {
+ catalogue => 1,
+ },
+ }
+);