[Koha-patches] [PATCH] fix for #946

Paul Poulain paul.poulain at biblibre.com
Sat Apr 18 23:01:01 CEST 2009


A member returns a book : it would be better to see the category of this member
in "information member" near his name.
---
 circ/returns.pl                                    |    1 +
 .../prog/en/modules/circ/returns.tmpl              |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/circ/returns.pl b/circ/returns.pl
index b736ecf..a8a47d8 100755
--- a/circ/returns.pl
+++ b/circ/returns.pl
@@ -547,6 +547,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) {
             $ri{borsurname}     = $borrower->{'surname'};
             $ri{bortitle}       = $borrower->{'title'};
             $ri{bornote}        = $borrower->{'borrowernotes'};
+            $ri{borcategorycode}   = $borrower->{'categorycode'};
         }
         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 7658bd4..b0863db 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl
@@ -350,7 +350,7 @@ function Dopop(link) {
             <td><!-- TMPL_VAR Name="itemtype" --> <!-- TMPL_VAR Name="ccode" --></td>
 			 <td><!-- TMPL_IF Name="duedate" -->
                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR Name="borrowernumber" -->">
-                    <!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" -->
+                    <!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" --> (<!-- TMPL_VAR name="borcategorycode" -->)
                 </a>
             <!-- TMPL_ELSE -->Not checked out<!-- /TMPL_IF --></td>
             <td><!-- TMPL_IF name="bornote" --><span class="circ-hlt"><!-- TMPL_VAR name="bornote" --><br /></span><!-- /TMPL_IF -->
-- 
1.5.6.3




More information about the Koha-patches mailing list