Translating to Spanish. First round.
[koha.git] / modbib.pl
index 84d992d..7a63e28 100755 (executable)
--- a/modbib.pl
+++ b/modbib.pl
@@ -1,5 +1,7 @@
 #!/usr/bin/perl
 
+# $Id$
+
 #script to modify/delete biblios
 #written 8/11/99
 # modified 11/11/99 by chris@katipo.co.nz
@@ -37,9 +39,8 @@ my ($subtitlecount, $subtitle)   = &subtitle($data->{'biblionumber'});
 my ($addauthorcount, $addauthor) = &addauthor($data->{'biblionumber'});
 my $sub        = $subject->[0]->{'subject'};
 my $additional = $addauthor->[0]->{'author'};
-my %inputs;
 my $dewey;
-my $submit=$input->param('submit.x');                                                                                              
+my $submit=$input->param('submit.x');
 if ($submit eq '') {
   print $input->redirect("/cgi-bin/koha/delbiblio.pl?biblio=$bibnum");
 } # if
@@ -49,17 +50,11 @@ print $input->header;
 # my ($analyticauthor) = &analytic($biblionumber,'a');
 print startpage();
 print startmenu('catalogue');
-my %inputs;
 
 # have to get all subtitles, subjects and additional authors
-for (my $i = 1; $i < $subjectcount; $i++) {
-  $sub = $sub . "|" . $subject->[$i]->{'subject'};
-} # for
-
-for (my $i = 1; $i < $addauthorcount; $i++) {
-  $additional = $additional . "|" . $addauthor->[$i]->{'author'};
-} # for
+$sub = join("|", map { $_->{'subject'} } @{$subject});
 
+$additional = join("|", map { $_->{'author'} } @{$addauthor});
 
 $dewey = $data->{'dewey'};
 $dewey =~ s/0+$//;