Finishing off bug 1427, if the person has ReturnBeforeExpiry set they are
authorChris Cormack <crc@liblime.com>
Mon, 14 Jan 2008 20:38:03 +0000 (14:38 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 14 Jan 2008 22:48:32 +0000 (16:48 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl

index 124b590..004bd37 100755 (executable)
@@ -245,6 +245,9 @@ if ($borrowernumber) {
                # 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,
index aaa21bc..88e3e2d 100755 (executable)
@@ -273,6 +273,12 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
                        
                        </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.