From 3e274bf8554951b7eb43ca6117db37691768efd3 Mon Sep 17 00:00:00 2001 From: oleonard Date: Wed, 1 Dec 2004 21:31:55 +0000 Subject: [PATCH] Fix for Bug 689, more templating --- moredetail.pl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/moredetail.pl b/moredetail.pl index ee09f97249..ab48f13249 100755 --- a/moredetail.pl +++ b/moredetail.pl @@ -84,20 +84,19 @@ foreach my $item (@items){ $item->{'withdrawn'}=~ s/0/No/; $item->{'withdrawn'}=~ s/1/Yes/; $item->{'replacementprice'}+=0.00; - my $year=substr($item->{'timestamp0'},0,4); - my $mon=substr($item->{'timestamp0'},4,2); - my $day=substr($item->{'timestamp0'},6,2); - $item->{'timestamp0'}="$day/$mon/$year"; + $item->{'datelastborrowed'}= format_date($item->{'datelastborrowed'}); $item->{'dateaccessioned'} = format_date($item->{'dateaccessioned'}); $item->{'datelastseen'} = format_date($item->{'datelastseen'}); $item->{'ordernumber'} = $ordernum; $item->{'booksellerinvoicenumber'} = $order->{'booksellerinvoicenumber'}; - # FIXME untranslatable strings if ($item->{'date_due'} eq 'Available'){ - $item->{'issue'}="Available
"; + $item->{'issue'}= 0; } else { - $item->{'issue'}="Currently on issue to: {'borrower'}>$item->{'card'}
"; + $item->{'date_due'} = format_date($item->{'date_due'}); + $item->{'issue'}= 1; + $item->{'borrowernumber'} = $item->{'borrower'}; + $item->{'cardnumber'} = $item->{'card'}; } } -- 2.39.5