5 # Copyright 2000-2002 Katipo Communications
7 # This file is part of Koha.
9 # Koha is free software; you can redistribute it and/or modify it under the
10 # terms of the GNU General Public License as published by the Free Software
11 # Foundation; either version 2 of the License, or (at your option) any later
14 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License along with
19 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
20 # Suite 330, Boston, MA 02111-1307 USA
27 my $biblionumber = $input->param('biblionumber');
28 my $websitenumber = $input->param('websitenumber');
30 biblionumber => $biblionumber,
31 websitenumber => $websitenumber,
32 title => $input->param('title')?$input->param('title'):"",
33 description => $input->param('description')?$input->param('description'):"",
34 url => $input->param('url')?$input->param('url'):""
38 if ($input->param('delete')) {
39 print $input->redirect("deletewebsite.pl?biblionumber=$biblionumber&websitenumber=$websitenumber");
41 } elsif (! $biblionumber) {
42 print $input->redirect("/catalogue/");
44 } elsif (! $websitenumber) {
45 print $input->redirect("modwebsites.pl?biblionumber=$biblionumber");
48 &updatewebsite($website);
50 print $input->redirect("modwebsites.pl?biblionumber=$biblionumber");