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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-4 / +6 lines)
Lines 263-271 Link Here
263
                                                    [% END %]
263
                                                    [% END %]
264
                                                </ul>
264
                                                </ul>
265
                                            </li>
265
                                            </li>
266
                                        [% ELSIF guarantor_relationships.count > 0 %]
266
                                        [% ELSIF guarantor_relationships.count > 0 OR ( patron.contactfirstname OR patron.contactname ) %]
267
                                                <li>
267
                                                <li>
268
                                                [% IF guarantor_relationships.count > 1 %]
268
                                                [% IF guarantor_relationships.count > 1 OR guarantor_relationships.count == 0 AND ( patron.contactfirstname OR patron.contactname ) %]
269
                                                    <span class="label">Guarantors:</span>
269
                                                    <span class="label">Guarantors:</span>
270
                                                [% ELSE %]
270
                                                [% ELSE %]
271
                                                    <span class="label">Guarantor:</span>
271
                                                    <span class="label">Guarantor:</span>
Lines 274-282 Link Here
274
                                                    [% FOREACH gr IN guarantor_relationships %]
274
                                                    [% FOREACH gr IN guarantor_relationships %]
275
                                                        [% SET guarantor = gr.guarantor %]
275
                                                        [% SET guarantor = gr.guarantor %]
276
                                                        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
276
                                                        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
277
                                                            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.id | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a></li>
277
                                                            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.id | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %][% IF gr.relationship %] ([% gr.relationship %])[% END %]</a></li>
278
                                                        [% END %]
278
                                                        [% END %]
279
                                                    [% END %]
279
                                                    [% END %]
280
                                                    [% IF patron.contactfirstname OR patron.contactname %]
281
                                                        <li>[% patron.contactfirstname %] [% patron.contactname %][% IF patron.relationship %] ([% patron.relationship %])[% END %]</li>
282
                                                    [% END %]
280
                                                    </ul>
283
                                                    </ul>
281
                                                </li>
284
                                                </li>
282
                                        [% END %]
285
                                        [% END %]
283
- 

Return to bug 24666