*** empty log message ***
[koha.git] / cataloguing / 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  2007/03/09 15:36:10  tipaul
30 # rel_3_0 moved to HEAD (introducing new files)
31 #
32 # Revision 1.1.2.2  2006/12/18 16:35:18  toins
33 # removing use HTML::Template from *.pl.
34 #
35 # Revision 1.1.2.1  2006/09/26 16:05:05  toins
36 # adding missing template & fix wrong link on scripts.
37 #
38 # Revision 1.1  2006/01/17 16:40:54  tipaul
39 # moving acqui.simple directory to cataloguing, as acqui.simple contains cataloguing scripts...
40 #
41 # Revision 1.3  2005/05/04 08:45:22  tipaul
42 # synch'ing 2.2 and head
43 #
44 # Revision 1.2.4.1  2005/03/25 12:52:42  tipaul
45 # needs "editcatalogue" flag, not "catalogue"
46 #
47 # Revision 1.2  2003/05/09 23:47:22  rangi
48 # This script is now templated
49 # 3 more to go i think
50 #
51
52 use CGI;
53 use strict;
54 use C4::Output;
55
56 use C4::Auth;
57 use C4::Interface::CGI::Output;
58
59 my $input = new CGI;
60 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
61     {
62         template_name   => "cataloguing/addbiblio-nomarc.tmpl",
63         query           => $input,
64         type            => "intranet",
65         authnotrequired => 0,
66         flagsrequired   => { editcatalogue => 1 },
67         debug           => 1,
68     }
69 );
70
71 my $error = $input->param('error');
72
73 $template->param(
74     ERROR => $error,
75 );
76
77 output_html_with_http_headers $input, $cookie, $template->output;