<th colspan="2">Title</th>
<th>Call No.</th>
<th>Due</th>
- <th>Renew</th>
+ <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
<th>Fines</th>
</tr>
<!-- TMPL_LOOP NAME="ISSUES" -->
<!-- TMPL_ELSE -->
<td><!-- TMPL_VAR NAME="date_due" --></td>
<!-- /TMPL_IF -->
+ <!-- TMPL_UNLESS name="patron_flagged" -->
<td>
<!-- TMPL_IF NAME="status" -->
<a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=<!-- TMPL_VAR NAME="itemnumber" -->&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew</a>
Not renewable
<!-- /TMPL_IF -->
</td>
+ <!-- /TMPL_UNLESS -->
<td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
</tr>
<!-- /TMPL_LOOP -->
if ( $borr->{'debarred'} || $borr->{'gonenoaddress'} || $borr->{'lost'} ) {
$borr->{'flagged'} = 1;
}
-
+# $make flagged available everywhere in the template
+my $patron_flagged = $borr->{'flagged'};
if ( $borr->{'amountoutstanding'} > 5 ) {
$borr->{'amountoverfive'} = 1;
}
my @bordat;
$bordat[0] = $borr;
-$template->param( BORROWER_INFO => \@bordat );
-$template->param( borrowernumber => $borrowernumber );
+$template->param( BORROWER_INFO => \@bordat,
+ borrowernumber => $borrowernumber,
+ patron_flagged => $patron_flagged,
+ );
#get issued items ....
my ($countissues,$issues) = GetPendingIssues($borrowernumber);