Signed-off-by: Joshua Ferraro <jmf@liblime.com>
my @suppliers = GetBookSeller($supplier);
my $count = scalar @suppliers;
-
+if ($count == 1){
+ $template->param( supplier_name => $suppliers[0]->{'name'},
+ id => $suppliers[0]->{'id'}
+ );
+}
# check if we have to "close" a basket before building page
my $op = $query->param('op');
my $basket = $query->param('basketno');
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="acquisitions-toolbar.inc" -->
-
+<!-- TMPL_IF EXPR="count == 1" -->
+<h1> <!-- TMPL_VAR NAME="supplier_name" --> </h1>
+<!-- TMPL_ELSE -->
<h1>You searched on <b>vendor <!-- TMPL_VAR name="supplier" -->,</b> <!-- TMPL_VAR name="count" --> results found</h1>
+<!-- /TMPL_IF -->
<div id="acqui_order_supplierlist">
<table>
<tr>