<!-- TMPL_VAR NAME="todaysdate" --><br />
<table>
- <caption>Issues</caption>
- <tr>
- <th>Date Due</th>
- <th>Title</th>
- </tr>
+ <caption>Issues</caption>
+ <tr>
+ <th>Date Due</th>
+ <th>Title</th>
+ <th>Barcode</th>
+ </tr>
- <!-- TMPL_loop name="issueloop" -->
- <!-- TMPL_IF name="red" --><!-- TMPL_ELSE -->
- <tr>
- <td><!-- TMPL_VAR NAME="date_due" --></td>
- <td><a href="/cgi-bin/koha/catalogue/detail.pl?item=<!-- TMPL_VAR NAME="itemnumber" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
- </tr>
- <!-- /TMPL_IF -->
- <!-- /TMPL_LOOP -->
+ <!-- TMPL_loop name="issueloop" -->
+ <!-- TMPL_IF name="red" --><!-- TMPL_ELSE -->
+ <tr>
+ <td><!-- TMPL_VAR NAME="date_due" --></td>
+ <td><a href="/cgi-bin/koha/catalogue/detail.pl?item=<!-- TMPL_VAR NAME="itemnumber" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
+ <td><!-- TMPL_VAR NAME="barcode" --></td>
+ </tr>
+ <!-- /TMPL_IF -->
+ <!-- /TMPL_LOOP -->
</table>
-
- <table>
- <caption>Overdues</caption>
- <tr>
- <th>Date Due</th>
- <th>Title</th>
- </tr>
- <!-- TMPL_LOOP NAME="issueloop" -->
- <!-- TMPL_IF NAME="red" --><tr>
- <td><!-- TMPL_VAR NAME="date_due" --></td>
- <td><a href="/cgi-bin/koha/catalogue/detail.pl?item=<!-- TMPL_VAR NAME="itemnumber" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
- </tr>
- <!-- /TMPL_IF -->
- <!-- /TMPL_LOOP -->
- </table>
+
+<!-- TMPL_IF NAME="overdues_exist" -->
+<table>
+ <caption>Overdues</caption>
+ <tr>
+ <th>Date Due</th>
+ <th>Title</th>
+ <th>Barcode</th>
+ </tr>
+ <!-- TMPL_LOOP NAME="issueloop" -->
+ <!-- TMPL_IF NAME="red" -->
+ <tr>
+ <td><!-- TMPL_VAR NAME="date_due" --></td>
+ <td><a href="/cgi-bin/koha/catalogue/detail.pl?item=<!-- TMPL_VAR NAME="itemnumber" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
+ <td><!-- TMPL_VAR NAME="barcode" --></td>
+ </tr>
+ <!-- /TMPL_IF -->
+ <!-- /TMPL_LOOP -->
+</table>
+<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
my $roaddetails = &GetRoadTypeDetails( $data->{'streettype'} );
my $today = POSIX::strftime("%Y-%m-%d", localtime); # iso format
my @issuedata;
+my $overdues_exist = 0;
my $totalprice = 0;
my $toggle = 0;
for ( my $i = 0 ; $i < $count ; $i++ ) {
$totalprice += $issue->[$i]{'replacementprice'};
$row{'replacementprice'} = $issue->[$i]{'replacementprice'};
if ( $datedue lt $today ) {
+ $overdues_exist = 1;
$row{'red'} = 1; #print "<font color=red>";
}
$row{toggle} = $toggle++ % 2;
totalprice => sprintf( "%.2f", $totalprice ),
totaldue => sprintf( "%.2f", $total ),
issueloop => \@issuedata,
+ overdues_exist => $overdues_exist,
unvalidlibrarian => $unvalidlibrarian,
error => $error,
$error => 1,