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 415-421 $(document).ready(function() { Link Here
415
 [% ELSE %]
415
 [% ELSE %]
416
 <li id="contact-details" style="display: none">
416
 <li id="contact-details" style="display: none">
417
 [% END %]
417
 [% END %]
418
     <span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
418
     <span class="label">Patron #:</span>
419
     [% IF guarantorid %]
420
        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
421
            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>
422
        [% ELSE %]
423
            [% guarantorid %]
424
        [% END %]
425
    [% END %]
419
 </li>
426
 </li>
420
        [% UNLESS nocontactname %]
427
        [% UNLESS nocontactname %]
421
 <li>
428
 <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-2 / +6 lines)
Lines 245-258 function validate1(date) { Link Here
245
            <span class="label">Guarantees:</span>
245
            <span class="label">Guarantees:</span>
246
            <ul>
246
            <ul>
247
                [% FOREACH guarantee IN guarantees %]
247
                [% FOREACH guarantee IN guarantees %]
248
                    <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
248
                    [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
249
                        <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
250
                    [% ELSE %]
251
                        <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
252
                    [% END %]
249
                [% END %]
253
                [% END %]
250
            </ul>
254
            </ul>
251
        </li>
255
        </li>
252
    [% ELSIF guarantor %]
256
    [% ELSIF guarantor %]
253
        <li>
257
        <li>
254
            <span class="label">Guarantor:</span>
258
            <span class="label">Guarantor:</span>
255
            [% IF guarantor.borrowernumber %]
259
            [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
256
                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
260
                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
257
            [% ELSE %]
261
            [% ELSE %]
258
                [% guarantor.firstname | html %] [% guarantor.surname | html %]
262
                [% guarantor.firstname | html %] [% guarantor.surname | html %]
(-)a/members/memberentry.pl (-2 / +4 lines)
Lines 740-749 $template->param( Link Here
740
  check_member    => $check_member,#to know if the borrower already exist(=>1) or not (=>0) 
740
  check_member    => $check_member,#to know if the borrower already exist(=>1) or not (=>0) 
741
  "op$op"   => 1);
741
  "op$op"   => 1);
742
742
743
$guarantorid = $borrower_data->{'guarantorid'} || $guarantorid;
744
my $guarantor = $guarantorid ? Koha::Patrons->find( $guarantorid ) : undef;
743
$template->param(
745
$template->param(
744
  nodouble  => $nodouble,
746
  nodouble  => $nodouble,
745
  borrowernumber  => $borrowernumber, #register number
747
  borrowernumber  => $borrowernumber, #register number
746
  guarantorid => ($borrower_data->{'guarantorid'} || $guarantorid),
748
  guarantor   => $guarantor,
749
  guarantorid => $guarantorid,
747
  relshiploop => \@relshipdata,
750
  relshiploop => \@relshipdata,
748
  btitle=> $default_borrowertitle,
751
  btitle=> $default_borrowertitle,
749
  guarantorinfo   => $guarantorinfo,
752
  guarantorinfo   => $guarantorinfo,
750
- 

Return to bug 18403