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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (+18 lines)
Lines 740-745 Link Here
740
                    </fieldset>
740
                    </fieldset>
741
                [% END %]
741
                [% END %]
742
742
743
                [% IF ( borrower.ExtendedPatronAttributes ) %]
744
                    <fieldset class="rows">
745
                        <legend>Additional information</legend>
746
                        <ol>
747
                            [% FOREACH patron_attribute IN borrower.patron_attributes %]
748
                                <li>
749
                                    <label>[% patron_attribute.description %]:</label>
750
                                    [% IF ( patron_attribute.value_description ) %]
751
                                        [% patron_attribute.value_description %]
752
                                    [% ELSE %]
753
                                        [% patron_attribute.value |html_line_break %]
754
                                    [% END %]
755
                                </li>
756
                            [% END %]
757
                        </ol>
758
                    </fieldset>
759
                [% END %]
760
743
                [% IF action == 'edit' %]
761
                [% IF action == 'edit' %]
744
                    [% IF OPACPatronDetails %]
762
                    [% IF OPACPatronDetails %]
745
                        <fieldset class="action">
763
                        <fieldset class="action">
(-)a/opac/opac-memberentry.pl (-1 / +9 lines)
Lines 197-202 elsif ( $action eq 'update' ) { Link Here
197
}
197
}
198
elsif ( $action eq 'edit' ) {    #Display logged in borrower's data
198
elsif ( $action eq 'edit' ) {    #Display logged in borrower's data
199
    my $borrower = GetMember( borrowernumber => $borrowernumber );
199
    my $borrower = GetMember( borrowernumber => $borrowernumber );
200
201
    if (C4::Context->preference('ExtendedPatronAttributes')) {
202
        my $attributes = C4::Members::Attributes::GetBorrowerAttributes($borrowernumber, 'opac');
203
        if (scalar(@$attributes) > 0) {
204
            $borrower->{ExtendedPatronAttributes} = 1;
205
            $borrower->{patron_attributes} = $attributes;
206
        }
207
    }
208
200
    $template->param(
209
    $template->param(
201
        borrower => $borrower, );
210
        borrower => $borrower, );
202
211
203
- 

Return to bug 12718