* bugfixes
[koha.git] / acqui.simple / addbooks.pl
1 #!/usr/bin/perl
2
3 # $Id$
4
5 #
6 # Modified saas@users.sf.net 12:00 01 April 2001
7 # The biblioitemnumber was not correctly initialised
8 # The max(barcode) value was broken - koha 'barcode' is a string value!
9 # - If left blank, barcode value now defaults to max(biblionumber)
10
11 #
12 # TODO
13 #
14 # Add info on biblioitems and items already entered as you enter new ones
15 #
16 # Add info on biblioitems and items already entered as you enter new ones
17
18
19 # Copyright 2000-2002 Katipo Communications
20 #
21 # This file is part of Koha.
22 #
23 # Koha is free software; you can redistribute it and/or modify it under the
24 # terms of the GNU General Public License as published by the Free Software
25 # Foundation; either version 2 of the License, or (at your option) any later
26 # version.
27 #
28 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
29 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
30 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
31 #
32 # You should have received a copy of the GNU General Public License along with
33 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
34 # Suite 330, Boston, MA  02111-1307 USA
35
36 use CGI;
37 use strict;
38 use C4::Auth;
39 use C4::Catalogue;
40 use C4::Biblio;
41 use C4::Output;
42 use HTML::Template;
43
44 my $query = new CGI;
45 my ($loggedinuser, $cookie, $sessionID) = checkauth($query);
46
47 my $error   = $query->param('error');
48 my $success = $query->param('biblioitem');
49 my $template= gettemplate("acqui.simple/addbooks.tmpl");
50 $template->param(loggedinuser => $loggedinuser);
51
52 print $query->header(-cookie => $cookie),$template->output;