From b1c4e44fa0ea82375b19d864480d4789518d91e8 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Fri, 28 Jun 2002 04:54:48 +0000 Subject: [PATCH] No count after circ or shelf if only one item. --- search.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/search.pl b/search.pl index 0433c22c21..7f57150077 100755 --- a/search.pl +++ b/search.pl @@ -6,7 +6,7 @@ use C4::Search; use CGI; use C4::Output; use C4::Acquisitions; # Only used for branches() routine which should probably - # be elsewhere + # be elsewhere my $env; my $input = new CGI; @@ -222,10 +222,16 @@ while ($i < $count2){ } my $shelfcount=$count-$circcount-$lostcount-$mending-$transit; if ($circcount) { - $stuff[5]="Circ ($circcount) "; + $stuff[5]="Circ "; + if ($count>1) { + $stuff[5].="($circcount) "; + } } if ($shelfcount) { - $stuff[5].="Shelf ($shelfcount) "; + $stuff[5].="Shelf "; + if ($count>1) { + $stuff[5].="($shelfcount) "; + } } } if ($lostcount > 0) {