]> git.koha-community.org Git - koha.git/blob - bull-home.pl
fix for bug 937
[koha.git] / bull-home.pl
1 #!/usr/bin/perl
2
3 use strict;
4 use CGI;
5 use C4::Auth;
6 use C4::Bull;
7 use C4::Output;
8 use C4::Interface::CGI::Output;
9 use C4::Context;
10 use HTML::Template;
11
12 my $query = new CGI;
13 my $title = $query->param('title');
14 my $ISSN = $query->param('ISSN');
15 my @subscriptions = getsubscriptions($title,$ISSN);
16 my ($template, $loggedinuser, $cookie)
17 = get_template_and_user({template_name => "bull/bull-home.tmpl",
18                                 query => $query,
19                                 type => "intranet",
20                                 authnotrequired => 0,
21                                 flagsrequired => {catalogue => 1},
22                                 debug => 1,
23                                 });
24
25 $template->param(
26         subscriptions => \@subscriptions,
27         title => $title,
28         ISSN => $ISSN,
29         );
30 output_html_with_http_headers $query, $cookie, $template->output;