$template->param( patron_messages => $patron_messages );
if ( C4::Context->preference("WaitingNotifyAtCheckout") ) {
my $waiting_holds = $patron->holds->search( { found => 'W', branchcode => $branch } );
my $waiting_holds = $patron->holds->search( { found => 'W', branchcode => $branch } )->as_list;
$template->param( waiting_holds => $waiting_holds );
}
-