Sub renamed and/or GPL Licence added according to the coding guideline.
[koha.git] / serials / serials-home.pl
1 #!/usr/bin/perl
2
3 # Copyright 2000-2002 Katipo Communications
4 #
5 # This file is part of Koha.
6 #
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 2 of the License, or (at your option) any later
10 # version.
11 #
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License along with
17 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
18 # Suite 330, Boston, MA  02111-1307 USA
19
20 # $Id$
21
22 use strict;
23 use CGI;
24 use C4::Auth;
25 use C4::Serials;
26 use C4::Output;
27 use C4::Interface::CGI::Output;
28 use C4::Context;
29 use HTML::Template;
30
31 my $query = new CGI;
32 my $title = $query->param('title');
33 my $ISSN = $query->param('ISSN');
34 my $biblionumber = $query->param('biblionumber');
35 my @subscriptions = GetSubscriptions($title,$ISSN,$biblionumber);
36 my ($template, $loggedinuser, $cookie)
37 = get_template_and_user({template_name => "serials/serials-home.tmpl",
38                                 query => $query,
39                                 type => "intranet",
40                                 authnotrequired => 0,
41                                 flagsrequired => {catalogue => 1},
42                                 debug => 1,
43                                 });
44
45 $template->param(
46         subscriptions => \@subscriptions,
47         title => $title,
48         ISSN => $ISSN,
49         );
50 output_html_with_http_headers $query, $cookie, $template->output;