Bug 7407: HidePatronName not working on 'on hold for' messages
authorIan Walls <ian.walls@bywatersolutions.com>
Thu, 5 Jan 2012 19:10:52 +0000 (14:10 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 17 Jan 2012 14:36:25 +0000 (15:36 +0100)
HidePatronName was not working on 'on hold for' messages, only 'checked out to'
messages.  This resulted in the patrons name showing if the item was on hold for
them.

T:T scope issue; needs to be within itemloo.  This patch does that.
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 6238f05..6046768 100644 (file)
@@ -339,7 +339,7 @@ function verify_images() {
                         Item-level hold
                     [% END %]
                     [% IF ( canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">
-                       [% IF ( hidepatronname ) %]
+                       [% IF ( itemloo.hidepatronname ) %]
                            [% itemloo.Reservedcardnumber %]
                        [% ELSE %]
                            [% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]