Adding a parameter to allow acces to people with management flag
[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.2  2003/05/09 23:47:22  rangi
30 # This script is now templated
31 # 3 more to go i think
32 #
33
34 use CGI;
35 use strict;
36 use C4::Output;
37 use HTML::Template;
38 use C4::Auth;
39 use C4::Interface::CGI::Output;
40
41 my $input = new CGI;
42 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
43     {
44         template_name   => "acqui.simple/addbiblio-nomarc.tmpl",
45         query           => $input,
46         type            => "intranet",
47         authnotrequired => 0,
48         flagsrequired   => { catalogue => 1 },
49         debug           => 1,
50     }
51 );
52
53 my $error = $input->param('error');
54
55 $template->param(
56     ERROR => $error,
57 );
58
59 output_html_with_http_headers $input, $cookie, $template->output;