Adding 'Mark and Continue' buttons to inventory interface. Buttons are added via...
[koha.git] / acqui / booksellers.pl
index 0fb0b48..c6cc8d5 100755 (executable)
@@ -20,7 +20,6 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id$
 
 =head1 NAME
 
@@ -58,11 +57,10 @@ use C4::Auth;
 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;
@@ -82,7 +80,11 @@ my $supplier = $query->param('supplier');
 
 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');
@@ -126,10 +128,6 @@ $template->param(
     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;