From 074853a9d48f8c11f5c8d8a216d8c36a44338fcf Mon Sep 17 00:00:00 2001 From: rangi Date: Mon, 16 Jun 2003 09:20:35 +0000 Subject: [PATCH] Passing through the item types and branches to the template, so ppl can restrict the search by branch or itemtype. --- catalogue-home.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/catalogue-home.pl b/catalogue-home.pl index d59950f1f8..3e2b7e9ed9 100755 --- a/catalogue-home.pl +++ b/catalogue-home.pl @@ -6,6 +6,8 @@ use C4::Auth; use C4::Output; use C4::Interface::CGI::Output; use C4::Database; +use C4::Catalogue; +use C4::Biblio; use HTML::Template; my $query = new CGI; @@ -18,8 +20,13 @@ my ($template, $loggedinuser, $cookie) debug => 1, }); -my $classlist=''; +my ($branchcount,@branches)=branches(); +my ($itemtypecount,@itemtypes)=getitemtypes(); + + my $classlist=''; $template->param(classlist => $classlist, - type => 'intranet',); + type => 'intranet', + branches=>\@branches, + itemtypes=>\@itemtypes); output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5