5 #script to modify/delete biblios
7 # modified 11/11/99 by chris@katipo.co.nz
10 # Copyright 2000-2002 Katipo Communications
12 # This file is part of Koha.
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
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.
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
35 my $bibnum=$input->param('bibnum');
36 my $data=&bibdata($bibnum);
37 my ($subjectcount, $subject) = &subject($data->{'biblionumber'});
38 my ($subtitlecount, $subtitle) = &subtitle($data->{'biblionumber'});
39 my ($addauthorcount, $addauthor) = &addauthor($data->{'biblionumber'});
40 my $sub = $subject->[0]->{'subject'};
41 my $additional = $addauthor->[0]->{'author'};
44 my $submit=$input->param('submit.x');
46 print $input->redirect("/cgi-bin/koha/delbiblio.pl?biblio=$bibnum");
50 # my ($analytictitle) = &analytic($biblionumber,'t');
51 # my ($analyticauthor) = &analytic($biblionumber,'a');
53 print startmenu('catalogue');
56 # have to get all subtitles, subjects and additional authors
57 for (my $i = 1; $i < $subjectcount; $i++) {
58 $sub = $sub . "|" . $subject->[$i]->{'subject'}; # FIXME - .=
61 for (my $i = 1; $i < $addauthorcount; $i++) {
62 $additional = $additional . "|" . $addauthor->[$i]->{'author'};
67 $dewey = $data->{'dewey'};
69 if ($dewey eq "000.") {
73 $dewey = '00' . $dewey;
75 if ($dewey < 100 && $dewey > 10) {
76 $dewey = '0' . $dewey;
83 $data->{'title'} = &tidyhtml($data->{'title'});
86 <a href="modwebsites.pl?biblionumber=$data->{'biblionumber'}">Modify Website Links</a>
87 <form action="updatebiblio.pl" method="post" name="f">
88 <input type="hidden" name="biblionumber" value="$data->{'biblionumber'}">
89 <input type="hidden" name="biblioitemnumber" value="$data=>{'biblioitemnumber'}">
90 <table border="0" cellspacing="0" cellpadding="5">
93 <td><input type="text" name="author" value="$data->{'author'}"></td>
97 <td><input type="text" name="title" value="$data->{'title'}"></td>
101 <td><textarea name="abstract" cols="40" rows="4">$data->{'abstract'}</textarea></td>
105 <td><textarea name="subject" cols="40" rows="4">$sub</textarea>
106 <a href="javascript:Dopop()">...</a>
110 <td>Copyright Date</td>
111 <td><input type="text" name="copyrightdate" value="$data->{'copyrightdate'}"></td>
114 <td>Series Title</td>
115 <td><input type="text" name="seriestitle" value="$data->{'seriestitle'}"></td>
118 <td>Additional Author</td>
119 <td><input type="text" name="additionalauthor" value="$additional"></td>
123 <td><input type="text" name="subtitle" value="$data->{'subtitle'}"></td>
127 <td><input type="text" name="unititle" value="$data->{'untitle'}"></td>
131 <td><textarea name="notes" cols="40" rows="4">$data->{'notes'}</textarea></td>
135 <td><input type="text" name="serial" value="$data->{'serial'}"></td>
138 <td>Analytic Author</td>
139 <td><input type="text" name="analyticauthor"></td>
142 <td>Analytic Title</td>
143 <td><input type="text" name="analytictitle"></td>
147 <input type="submit" name="submit" value="Save Changes">
151 newin=window.open("thesaurus_popup.pl?subject="+document.f.subject.value,"thesaurus",'width=500,height=400,toolbar=false,scrollbars=yes');
161 $inp=~ s/\"/\"\;/g;