Signed-off-by: Joshua Ferraro <jmf@liblime.com>
# borrower card soon to expire warn librarian
$template->param("warndeparture" => format_date($borrower->{dateexpiry}),
flagged => "1",);
+ if ( C4::Context->preference('ReturnBeforeExpiry')){
+ $template->param("returnbeforeexpiry" => 1);
+ }
}
$template->param(
overduecount => $od,
</li>
<!-- /TMPL_IF -->
+
+ <!-- TMPL_IF NAME="returnbeforeexpiry" -->
+ <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
+ expiry date is before the date due, the date due will be set to the expiry date
+ </li>
+ <!-- /TMPL_IF -->
<!-- TMPL_IF NAME = "expired" -->
<li><span class="circ-hlt">Expiration:</span> Patron's card has expired.