[Koha-patches] [PATCH] [SIGNED-OFF] Additional change for bug 5922 - Show waiting items for patron on return

Nicole C. Engard nengard at bywatersolutions.com
Thu Jul 21 09:17:55 CEST 2011


From: Owen Leonard <oleonard at myacpl.org>

- Adding patron name to dialog
- Styling dialog as a message rather than an alert since it's
  informational rather than a warning

Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 circ/returns.pl                                    |    2 ++
 .../intranet-tmpl/prog/en/modules/circ/returns.tt  |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/circ/returns.pl b/circ/returns.pl
index bb5230b..6826d7c 100755
--- a/circ/returns.pl
+++ b/circ/returns.pl
@@ -277,6 +277,8 @@ if ($barcode) {
                 $template->param(
                     waiting_holds       => $waiting_holds,
                     holdsborrowernumber => $borrower->{'borrowernumber'},
+                    holdsfirstname => $borrower->{'firstname'},
+                    holdssurname => $borrower->{'surname'},
                 );
             }
         }
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
index c02be49..25f1746 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
@@ -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 %]
 
-- 
1.7.2.3



More information about the Koha-patches mailing list