show the departure date if close or past
authorPaul POULAIN <paul@koha-fr.org>
Tue, 14 Aug 2007 17:06:47 +0000 (19:06 +0200)
committerChris Cormack <crc@liblime.com>
Wed, 15 Aug 2007 02:32:22 +0000 (21:32 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl

index f6711f3..6d4f60b 100755 (executable)
@@ -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"
         );
     }
index 911f2cc..11dbd0e 100644 (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 -->