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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +8 lines)
Lines 460-466 $(document).ready(function() { Link Here
460
 [% ELSE %]
460
 [% ELSE %]
461
 <li id="contact-details" style="display: none">
461
 <li id="contact-details" style="display: none">
462
 [% END %]
462
 [% END %]
463
     <span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid |html %]</a>[% END %]
463
     <span class="label">Patron #:</span>
464
     [% IF guarantorid %]
465
        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
466
            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid | html %]</a>
467
        [% ELSE %]
468
            [% guarantorid | html %]
469
        [% END %]
470
    [% END %]
464
 </li>
471
 </li>
465
        [% UNLESS nocontactname %]
472
        [% UNLESS nocontactname %]
466
 <li>
473
 <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-2 / +6 lines)
Lines 271-284 function validate1(date) { Link Here
271
                <span class="label">Guarantees:</span>
271
                <span class="label">Guarantees:</span>
272
                <ul>
272
                <ul>
273
                    [% FOREACH guarantee IN guarantees %]
273
                    [% FOREACH guarantee IN guarantees %]
274
                        <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
274
                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
275
                            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
276
                        [% ELSE %]
277
                            <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
278
                        [% END %]
275
                    [% END %]
279
                    [% END %]
276
                </ul>
280
                </ul>
277
            </li>
281
            </li>
278
        [% ELSIF guarantor %]
282
        [% ELSIF guarantor %]
279
            <li>
283
            <li>
280
                <span class="label">Guarantor:</span>
284
                <span class="label">Guarantor:</span>
281
                [% IF guarantor.borrowernumber %]
285
                [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
282
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
286
                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
283
                [% ELSE %]
287
                [% ELSE %]
284
                    [% guarantor.firstname | html %] [% guarantor.surname | html %]
288
                    [% guarantor.firstname | html %] [% guarantor.surname | html %]
(-)a/members/memberentry.pl (-2 / +4 lines)
Lines 755-764 $template->param( Link Here
755
  check_member    => $check_member,#to know if the borrower already exist(=>1) or not (=>0) 
755
  check_member    => $check_member,#to know if the borrower already exist(=>1) or not (=>0) 
756
  "op$op"   => 1);
756
  "op$op"   => 1);
757
757
758
$guarantorid = $borrower_data->{'guarantorid'} || $guarantorid;
759
my $guarantor = $guarantorid ? Koha::Patrons->find( $guarantorid ) : undef;
758
$template->param(
760
$template->param(
759
  nodouble  => $nodouble,
761
  nodouble  => $nodouble,
760
  borrowernumber  => $borrowernumber, #register number
762
  borrowernumber  => $borrowernumber, #register number
761
  guarantorid => ($borrower_data->{'guarantorid'} || $guarantorid),
763
  guarantor   => $guarantor,
764
  guarantorid => $guarantorid,
762
  relshiploop => \@relshipdata,
765
  relshiploop => \@relshipdata,
763
  btitle=> $default_borrowertitle,
766
  btitle=> $default_borrowertitle,
764
  guarantorinfo   => $guarantorinfo,
767
  guarantorinfo   => $guarantorinfo,
765
- 

Return to bug 18403