# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id$
=head1 NAME
use C4::Biblio;
use C4::Output;
use CGI;
-use C4::Interface::CGI::Output;
use C4::Acquisition;
-use C4::Date;
+use C4::Dates qw/format_date/;
use C4::Bookseller;
my $query = new CGI;
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');
loop_suppliers => \@loop_suppliers,
supplier => $supplier,
count => $count,
- intranetcolorstylesheet =>
- C4::Context->preference("intranetcolorstylesheet"),
- intranetstylesheet => C4::Context->preference("intranetstylesheet"),
- IntranetNav => C4::Context->preference("IntranetNav"),
);
output_html_with_http_headers $query, $cookie, $template->output;