synch'ing 2.2 and head
[koha.git] / acqui.simple / addbiblio-nomarc.pl
1 #!/usr/bin/perl
2
3 # $Id$
4
5 #
6 # TODO
7 #
8 # Add info on biblioitems and items already entered as you enter new ones
9 #
10
11 # Copyright 2000-2002 Katipo Communications
12 #
13 # This file is part of Koha.
14 #
15 # Koha is free software; you can redistribute it and/or modify it under the
16 # terms of the GNU General Public License as published by the Free Software
17 # Foundation; either version 2 of the License, or (at your option) any later
18 # version.
19 #
20 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
21 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
22 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License along with
25 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
26 # Suite 330, Boston, MA  02111-1307 USA
27
28 # $Log$
29 # Revision 1.3  2005/05/04 08:45:22  tipaul
30 # synch'ing 2.2 and head
31 #
32 # Revision 1.2.4.1  2005/03/25 12:52:42  tipaul
33 # needs "editcatalogue" flag, not "catalogue"
34 #
35 # Revision 1.2  2003/05/09 23:47:22  rangi
36 # This script is now templated
37 # 3 more to go i think
38 #
39
40 use CGI;
41 use strict;
42 use C4::Output;
43 use HTML::Template;
44 use C4::Auth;
45 use C4::Interface::CGI::Output;
46
47 my $input = new CGI;
48 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
49     {
50         template_name   => "acqui.simple/addbiblio-nomarc.tmpl",
51         query           => $input,
52         type            => "intranet",
53         authnotrequired => 0,
54         flagsrequired   => { editcatalogue => 1 },
55         debug           => 1,
56     }
57 );
58
59 my $error = $input->param('error');
60
61 $template->param(
62     ERROR => $error,
63 );
64
65 output_html_with_http_headers $input, $cookie, $template->output;