Additional change for bug 5922 - Show waiting items for patron on return

- Adding patron name to dialog
- Styling dialog as a message rather than an alert since it's
  informational rather than a warning
This commit is contained in:
Owen Leonard 2011-07-21 11:44:32 -04:00 committed by Chris Cormack
parent 548a670eaf
commit 53daf8a2de
2 changed files with 5 additions and 3 deletions

View File

@ -263,6 +263,8 @@ if ($barcode) {
$template->param(
waiting_holds => $waiting_holds,
holdsborrowernumber => $borrower->{'borrowernumber'},
holdsfirstname => $borrower->{'firstname'},
holdssurname => $borrower->{'surname'},
);
}
}

View 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 %]