From b85e4c814e457e719af67d16318186298e856075 Mon Sep 17 00:00:00 2001 From: arensb Date: Sun, 13 Oct 2002 09:26:24 +0000 Subject: [PATCH] Removed unused variables. Unbogofied some code. --- modbib.pl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/modbib.pl b/modbib.pl index 4c0b47ba28..7a63e28145 100755 --- a/modbib.pl +++ b/modbib.pl @@ -39,7 +39,6 @@ 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'); if ($submit eq '') { @@ -51,18 +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'}; # FIXME - .= -} # for - -for (my $i = 1; $i < $addauthorcount; $i++) { - $additional = $additional . "|" . $addauthor->[$i]->{'author'}; - # FIXME - .= -} # for +$sub = join("|", map { $_->{'subject'} } @{$subject}); +$additional = join("|", map { $_->{'author'} } @{$addauthor}); $dewey = $data->{'dewey'}; $dewey =~ s/0+$//; -- 2.39.2