Koha/addwebsite.pl
truth_nz 4915ed786c New files, and changes to add associated webstes to a biblio.
Adds a new table to database - so installer needs updating again.
2002-05-12 15:37:53 +00:00

24 lines
610 B
Perl
Executable file

#!/usr/bin/perl
use strict;
use C4::Acquisitions;
use CGI;
my $input = new CGI;
my $biblionumber = $input->param('biblionumber');
my $website = {
biblionumber => $biblionumber,
title => $input->param('title')?$input->param('title'):"",
description => $input->param('description')?$input->param('description'):"",
url => $input->param('url')?$input->param('url'):""
}; # my $website
if (! $biblionumber) {
print $input->redirect("/catalogue/");
} else {
&addwebsite($website);
print $input->redirect("modwebsites.pl?biblionumber=$biblionumber");
} # else