Added POD.
[koha.git] / acqui.simple / addbiblio.pl
1 #!/usr/bin/perl
2
3 #
4 # TODO
5 #
6 # Add info on biblioitems and items already entered as you enter new ones
7 #
8
9
10 # Copyright 2000-2002 Katipo Communications
11 #
12 # This file is part of Koha.
13 #
14 # Koha is free software; you can redistribute it and/or modify it under the
15 # terms of the GNU General Public License as published by the Free Software
16 # Foundation; either version 2 of the License, or (at your option) any later
17 # version.
18 #
19 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
20 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
21 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License along with
24 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
25 # Suite 330, Boston, MA  02111-1307 USA
26
27 use CGI;
28 use strict;
29 use C4::Output;
30
31
32 my $input = new CGI;
33 my $error = $input->param('error');
34
35 print $input->header;
36 print startpage();
37 print startmenu('acquisitions');
38
39 print << "EOF";
40 <FONT SIZE=6><em>Adding a new Biblio</em></FONT><br>
41   
42 <table bgcolor="#ffcc00" width="80%" cellpadding="5">
43 <tr>
44 <td><FONT SIZE=5>Section One: Copyright Information </font></td>
45 </tr>
46 </table>
47 EOF
48
49 if ($error eq "notitle") {
50     print << "EOF";
51 <p />
52 <center>
53 <font color="#FF0000">Please Specify a Title</font>
54 </center>
55 EOF
56 } # if
57
58 print << "EOF";
59 <FORM action="savebiblio.pl" method="post">
60 <table align="center">
61 <tr>
62 <td>Title: *</td>
63 <td><INPUT name="title" size="40" /></td>
64 </tr>
65 <tr>
66 <td>Subtitle:</td>
67 <td><INPUT name="subtitle" size="40" /></td>
68 </tr>
69 <tr>
70 <td>Author:</td>
71 <td><INPUT name="author" size="40" /></td>
72 </tr>
73     <tr valign="top">
74         <td>Series Title:<br />
75         <i>(if applicable)</i></td>
76         <td><INPUT name="seriestitle" size="40" /></td>
77     </tr>
78 <tr>
79 <td>Copyright Date:</td>
80 <td><INPUT name="copyrightdate" size="40" /></td>
81 </tr>
82 <tr valign="top">
83 <td>Abstract:</td>
84 <td><textarea cols="30" rows="6" name="abstract"></textarea></td>
85 </tr>
86     <tr valign="top">
87         <td>Notes:</td>
88         <td><textarea cols="30" rows="6" name="notes"></textarea></td>
89     </tr>
90 <tr valign="top">
91 <td colspan="2"><center><input type="submit" value="Submit"></center></td>
92 </tr>
93 </table>
94 </FORM>
95 * Required
96 EOF
97
98 print endmenu();
99 print endpage();