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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-5 / +5 lines)
Lines 386-393 Link Here
386
                                                                </li>
386
                                                                </li>
387
                                                            [% ELSE %]
387
                                                            [% ELSE %]
388
                                                                <li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]">
388
                                                                <li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]">
389
                                                                    <span class="label">Patron #:</span>
389
                                                                    <span class="label">Patron card number:</span>
390
                                                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor_id | html %]</a>
390
                                                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor.cardnumber | html %]</a>
391
                                                                </li>
391
                                                                </li>
392
392
393
                                                                [% IF r.guarantor.surname %]
393
                                                                [% IF r.guarantor.surname %]
Lines 421-428 Link Here
421
                                                    <fieldset class="rows">
421
                                                    <fieldset class="rows">
422
                                                        <ol>
422
                                                        <ol>
423
                                                            <li class="guarantor-details" data-borrowernumber="0">
423
                                                            <li class="guarantor-details" data-borrowernumber="0">
424
                                                                <span class="label">Patron #:</span>
424
                                                                <span class="label">Patron card number:</span>
425
                                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank">[% guarantor.borrowernumber | html %]</a>
425
                                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank">[% guarantor.cardnumber | html %]</a>
426
                                                                <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value="[% guarantor.borrowernumber | html %]"/>
426
                                                                <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value="[% guarantor.borrowernumber | html %]"/>
427
                                                            </li>
427
                                                            </li>
428
428
Lines 457-463 Link Here
457
                                            <fieldset class="rows guarantor" id="guarantor_template">
457
                                            <fieldset class="rows guarantor" id="guarantor_template">
458
                                                <ol>
458
                                                <ol>
459
                                                    <li class="guarantor-details" data-borrowernumber="0">
459
                                                    <li class="guarantor-details" data-borrowernumber="0">
460
                                                        <span class="label">Patron #:</span>
460
                                                        <span class="label">Patron card number:</span>
461
                                                        <span class="new_guarantor_id_text"></span>
461
                                                        <span class="new_guarantor_id_text"></span>
462
                                                        <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/>
462
                                                        <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/>
463
                                                    </li>
463
                                                    </li>
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-2 / +1 lines)
Lines 181-187 function select_user(borrowernumber, borrower, relationship) { Link Here
181
        var guarantor_id = $('#guarantor_id').val();
181
        var guarantor_id = $('#guarantor_id').val();
182
        if ( guarantor_id ) {
182
        if ( guarantor_id ) {
183
            fieldset.find('.new_guarantor_id').first().val( guarantor_id );
183
            fieldset.find('.new_guarantor_id').first().val( guarantor_id );
184
            fieldset.find('.new_guarantor_id_text').first().text( guarantor_id );
184
            fieldset.find('.new_guarantor_id_text').first().text( borrower.cardnumber );
185
        } else {
185
        } else {
186
            fieldset.find('.guarantor_id').first().hide();
186
            fieldset.find('.guarantor_id').first().hide();
187
        }
187
        }
188
- 

Return to bug 23808