show the departure date if close or past

Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
Paul POULAIN 2007-08-14 19:06:47 +02:00 committed by Chris Cormack
parent 67416b736d
commit 497bbd84b0
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ if ($borrowernumber) {
#borrowercard expired or nearly expired, warn the librarian
$template->param(
flagged => "1",
warndeparture => "1",
warndeparture => format_date("$warning_year-$warning_month-$warning_day"),
renewaldate => "$renew_year-$renew_month-$renew_day"
);
}

View File

@ -27,7 +27,7 @@
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">details</a>
/ <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&amp;modify=edit&amp;destination=circ&categorycode=<!-- TMPL_VAR name="categorycode" -->">edit</a>
<p>
<!--TMPL_IF Name="warndeparture"--><p class="problem"> Patron will leave soon.</p><!--/TMPL_IF-->
<!--TMPL_IF Name="warndeparture"--><p class="problem"> Patron card expires on <!-- TMPL_VAR name="warndeparture" -->.</p><!--/TMPL_IF-->
<!-- TMPL_IF NAME="streetaddress"-->
<!-- TMPL_VAR NAME="streetaddress" -->,
<!-- TMPL_ELSE -->