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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +31 lines)
Lines 210-216 Link Here
210
210
211
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
211
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
212
212
213
                [% FOREACH field = ['streetnumber' 'streettype'  'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %]
213
                [% FOREACH field = ['streetnumber' 'streettype'  'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' 'lang' ] %]
214
                    [% IF mandatory.defined( field ) %]
214
                    [% IF mandatory.defined( field ) %]
215
                        [% SET required.$field = 'required' %]
215
                        [% SET required.$field = 'required' %]
216
                    [% END %]
216
                    [% END %]
Lines 679-684 Link Here
679
                                                </select>
679
                                                </select>
680
                                                [% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %]
680
                                                [% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %]
681
                                            </li>
681
                                            </li>
682
                                            [% UNLESS hidden.defined('lang')  %]
683
                                                <li>
684
                                                    [% IF ( mandatory.defined('lang') ) %]
685
                                                        <label for="borrower_lang" class="required">Preferred language for notices: </label>
686
                                                    [% ELSE %]
687
                                                        <label for="borrower_lang">Preferred language for notices: </label>
688
                                                    [% END %]
689
                                                    <select id="borrower_lang" name="borrower_lang">
690
                                                        <option value="default">Default</option>
691
                                                        [% FOR language IN languages %]
692
                                                            [% FOR sublanguage IN language.sublanguages_loop %]
693
                                                                [% IF language.plural %]
694
                                                                    [% IF sublanguage.rfc4646_subtag == borrower.lang %]
695
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
696
                                                                    [% ELSE %]
697
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
698
                                                                    [% END %]
699
                                                                [% ELSE %]
700
                                                                    [% IF sublanguage.rfc4646_subtag == borrower.lang %]
701
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
702
                                                                    [% ELSE %]
703
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
704
                                                                    [% END %]
705
                                                                [% END # /IF language.plural %]
706
                                                            [% END # /FOR sublanguage %]
707
                                                        [% END #/FOR language %]
708
                                                    </select> <!-- /#lang -->
709
                                                    [% IF ( mandatory.defined('lang') ) %]<div class="required_label required">Required</div>[% END %]
710
                                                </li>
711
                                            [% END %]
682
                                        [% END %]
712
                                        [% END %]
683
                                    </ol>
713
                                    </ol>
684
                                </fieldset>
714
                                </fieldset>
(-)a/opac/opac-memberentry.pl (-3 / +7 lines)
Lines 100-112 if ( defined $min ) { Link Here
100
     );
100
     );
101
 }
101
 }
102
102
103
my $defaultCategory = Koha::Patron::Categories->find(C4::Context->preference('PatronSelfRegistrationDefaultCategory'));
104
105
my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('template') );
106
103
$template->param(
107
$template->param(
104
    action            => $action,
108
    action            => $action,
105
    hidden            => GetHiddenFields( $mandatory, $action ),
109
    hidden            => GetHiddenFields( $mandatory, $action ),
106
    mandatory         => $mandatory,
110
    mandatory         => $mandatory,
107
    libraries         => $libraries,
111
    libraries         => $libraries,
108
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
112
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
109
    defaultCategory  => $defaultCategory,
113
    defaultCategory   => $defaultCategory,
114
    languages         => $translated_languages,
110
);
115
);
111
116
112
my $attributes = ParsePatronAttributes($borrowernumber,$cgi);
117
my $attributes = ParsePatronAttributes($borrowernumber,$cgi);
Lines 569-575 sub ParseCgiForBorrower { Link Here
569
    # Replace checkbox 'agreed' by datetime in gdpr_proc_consent
574
    # Replace checkbox 'agreed' by datetime in gdpr_proc_consent
570
    $borrower{gdpr_proc_consent} = dt_from_string if  $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed';
575
    $borrower{gdpr_proc_consent} = dt_from_string if  $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed';
571
576
572
    delete $borrower{$_} for qw/borrowernumber date_renewed debarred debarredcomment flags privacy privacy_guarantor_fines privacy_guarantor_checkouts checkprevcheckout updated_on lastseen lang login_attempts overdrive_auth_token anonymized/; # See also members/memberentry.pl
577
    delete $borrower{$_} for qw/borrowernumber date_renewed debarred debarredcomment flags privacy privacy_guarantor_fines privacy_guarantor_checkouts checkprevcheckout updated_on lastseen login_attempts overdrive_auth_token anonymized/; # See also members/memberentry.pl
573
    delete $borrower{$_} for qw/dateenrolled dateexpiry borrowernotes opacnote sort1 sort2 sms_provider_id autorenew_checkouts gonenoaddress lost relationship/; # On OPAC only
578
    delete $borrower{$_} for qw/dateenrolled dateexpiry borrowernotes opacnote sort1 sort2 sms_provider_id autorenew_checkouts gonenoaddress lost relationship/; # On OPAC only
574
    delete $borrower{$_} for split( /\s*\|\s*/, C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{} );
579
    delete $borrower{$_} for split( /\s*\|\s*/, C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{} );
575
580
576
- 

Return to bug 34438