[Koha-patches] [PATCH] add borrower note to check-in

paul.poulain at biblibre.com paul.poulain at biblibre.com
Fri May 30 16:33:38 CEST 2008


From: Paul POULAIN <paul.poulain at biblibre.com>

diff --git a/circ/returns.pl b/circ/returns.pl
index 9228674..b05f566 100755
--- a/circ/returns.pl
+++ b/circ/returns.pl
@@ -545,6 +545,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) {
             $ri{borfirstname}   = $borrower->{'firstname'};
             $ri{borsurname}     = $borrower->{'surname'};
             $ri{bortitle}       = $borrower->{'title'};
+            $ri{bornote}        = $borrower->{'borrowernotes'};
         }
         else {
             $ri{borrowernumber} = $riborrowernumber{$_};
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
index d71a36c..9926fde 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
@@ -330,7 +330,7 @@ function Dopop(link) {
 <!-- TMPL_IF Name="riloop" -->
     <h2>Checked-In items</h2>
     <table>
-	<tr><th>Due Date</th>	<th>Title</th>	<th>Author</th>	<th>Barcode</th>	<th>Type</th>	<th>Patron</th></tr>
+	<tr><th>Due Date</th>	<th>Title</th>	<th>Author</th>	<th>Barcode</th>	<th>Type</th>	<th>Patron</th><th>Note</th></tr>
         
         <!-- TMPL_LOOP Name="riloop" -->
             <tr>
@@ -345,6 +345,8 @@ function Dopop(link) {
                     <!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" -->
                 </a>
             <!-- TMPL_ELSE -->Not checked out<!-- /TMPL_IF --></td>
+            <td><!-- TMPL_IF name="bornote" --><span class="circ-hlt"><!-- TMPL_VAR name="bornote" --></span><!-- /TMPL_IF -->
+            </td>
            </tr>
         <!-- /TMPL_LOOP -->
     </table></div>
-- 
1.5.3.2




More information about the Koha-patches mailing list