Additional change for bug 5922 - Show waiting items for patron on return
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Jul 2011 15:44:32 +0000 (11:44 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Aug 2011 01:01:41 +0000 (13:01 +1200)
- Adding patron name to dialog
- Styling dialog as a message rather than an alert since it's
  informational rather than a warning

circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

index 5a0cc09..1996f24 100755 (executable)
@@ -263,6 +263,8 @@ if ($barcode) {
                 $template->param(
                     waiting_holds       => $waiting_holds,
                     holdsborrowernumber => $borrower->{'borrowernumber'},
+                    holdsfirstname => $borrower->{'firstname'},
+                    holdssurname => $borrower->{'surname'},
                 );
             }
         }
index a766bcc..4ae2234 100644 (file)
@@ -68,9 +68,9 @@ function Dopop(link) {
 
 <!-- Patron has waiting holds -->
 [% IF ( waiting_holds ) %]
-    <div class="dialog alert">
-        <h3>Patron has [% waiting_holds %] hold(s) waiting for pickup.</h3>
-        <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Checkout holds</a>.</p>
+    <div class="dialog message">
+        <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
+        <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
     </div>
 [% END %]