From 0efaa6a41cfb2fbd401b1bffdec7714fd9db7051 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Mon, 22 Feb 2010 11:54:10 +0100 Subject: [PATCH] Replaced CGI dropdown box call wich is deprecated Signed-off-by: Colin Campbell --- .../prog/en/modules/serials/claims.tmpl | 21 ++++++++++++------- serials/claims.pl | 12 ++++++++++- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl index 20068b852e..06002832ef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl @@ -165,13 +165,20 @@
No claims notice defined. Please define one.
-
- +
+ + Phone: Fax: diff --git a/serials/claims.pl b/serials/claims.pl index b723136e18..0a0375e4f0 100755 --- a/serials/claims.pl +++ b/serials/claims.pl @@ -53,6 +53,16 @@ my ($template, $loggedinuser, $cookie) debug => 1, }); +my @suploop; +for ( sort {$supplierlist{$a} cmp $supplierlist{$b} } keys %supplierlist ) { + my ($count, @dummy) = GetLateOrMissingIssues($_, "", $order); + push @suploop, { + id => $_, + name => $supplierlist{$_}, + count => $count, + selected => $_ == $supplierid, + }; +} my $letters = GetLetters('claimissues'); my @letters; @@ -82,7 +92,7 @@ if($op && $op eq 'preview'){ $template->param('letters'=>\@letters,'letter'=>$letter); $template->param( order =>$order, - supplier_loop => $supplierlist, + suploop => \@suploop, phone => $supplierinfo[0]->{phone}, booksellerfax => $supplierinfo[0]->{booksellerfax}, bookselleremail => $supplierinfo[0]->{bookselleremail}, -- 2.39.5