Unido have far less info about their patrons, cutting down the confirmation screen
[koha.git] / catalogue-home.pl
1 #!/usr/bin/perl
2
3 use strict;
4 use CGI;
5 use C4::Auth;
6 use C4::Output;
7 use C4::Interface::CGI::Output;
8 use C4::Database;
9 use C4::Catalogue;
10 use C4::Biblio;
11 use HTML::Template;
12
13 my $query = new CGI;
14 my ($template, $loggedinuser, $cookie)
15     = get_template_and_user({template_name => "catalogue/catalogue-home.tmpl",
16                              query => $query,
17                              type => "intranet",
18                              authnotrequired => 0,
19                              flagsrequired => {parameters => 1},
20                              debug => 1,
21                              });
22
23 my ($branchcount,@branches)=branches();
24 my ($itemtypecount,@itemtypes)=getitemtypes();
25
26   my $classlist='';
27 $template->param(classlist => $classlist,
28                                                 type => 'intranet',
29                  branches=>\@branches,
30                  itemtypes=>\@itemtypes);
31
32 output_html_with_http_headers $query, $cookie, $template->output;