View | Details | Raw Unified | Return to bug 9543
Collapse All | Expand All

(-)a/circ/returns.pl (-1 / +3 lines)
Lines 44-49 use C4::Reserves; Link Here
44
use C4::Biblio;
44
use C4::Biblio;
45
use C4::Items;
45
use C4::Items;
46
use C4::Members;
46
use C4::Members;
47
use C4::Members::Messaging;
47
use C4::Branch; # GetBranches GetBranchName
48
use C4::Branch; # GetBranches GetBranchName
48
use C4::Koha;   # FIXME : is it still useful ?
49
use C4::Koha;   # FIXME : is it still useful ?
49
use C4::RotatingCollections;
50
use C4::RotatingCollections;
Lines 429-435 if ( $messages->{'ResFound'}) { Link Here
429
    my $reserve    = $messages->{'ResFound'};
430
    my $reserve    = $messages->{'ResFound'};
430
    my $branchname = $branches->{ $reserve->{'branchcode'} }->{'branchname'};
431
    my $branchname = $branches->{ $reserve->{'branchcode'} }->{'branchname'};
431
    my $borr = C4::Members::GetMember( borrowernumber => $reserve->{'borrowernumber'} );
432
    my $borr = C4::Members::GetMember( borrowernumber => $reserve->{'borrowernumber'} );
432
433
    my $holdmsgpreferences =  C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $reserve->{'borrowernumber'}, message_name   => 'Hold_Filled' } );
433
    if ( $reserve->{'ResFound'} eq "Waiting" or $reserve->{'ResFound'} eq "Reserved" ) {
434
    if ( $reserve->{'ResFound'} eq "Waiting" or $reserve->{'ResFound'} eq "Reserved" ) {
434
        if ( $reserve->{'ResFound'} eq "Waiting" ) {
435
        if ( $reserve->{'ResFound'} eq "Waiting" ) {
435
            $template->param(
436
            $template->param(
Lines 468-473 if ( $messages->{'ResFound'}) { Link Here
468
            borrowernumber => $reserve->{'borrowernumber'},
469
            borrowernumber => $reserve->{'borrowernumber'},
469
            itemnumber     => $reserve->{'itemnumber'},
470
            itemnumber     => $reserve->{'itemnumber'},
470
            reservenotes   => $reserve->{'reservenotes'},
471
            reservenotes   => $reserve->{'reservenotes'},
472
            bormessagepref => $holdmsgpreferences->{'transports'},
471
        );
473
        );
472
    } # else { ; }  # error?
474
    } # else { ; }  # error?
473
}
475
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +11 lines)
Lines 238-243 $(document).ready(function () { Link Here
238
            [% borcity %] [% borzip %]</li>
238
            [% borcity %] [% borzip %]</li>
239
           [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
239
           [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
240
		   [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
240
		   [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
241
           [% IF ( bormessagepref ) %]
242
               <li>Patron is notified:
243
               [% FOREACH key IN bormessagepref.keys %]
244
                   [% IF ( key == 'email' ) %] Email. [% END %]
245
                   [% IF ( key == 'phone' ) %] Phone. [% END %]
246
                   [% IF ( key == 'sms' ) %] SMS. [% END %]
247
               [% END %]
248
               </li>
249
           [% ELSE %]
250
               <li>Patron is not notified</li>
251
           [% END %]
241
[% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
252
[% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
242
[% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
253
[% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
243
		[% IF ( transfertodo ) %]
254
		[% IF ( transfertodo ) %]
244
- 

Return to bug 9543