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 214-220 Link Here
214
214
215
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
215
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
216
216
217
                [% 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' ] %]
217
                [% 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' ] %]
218
                    [% IF mandatory.defined( field ) %]
218
                    [% IF mandatory.defined( field ) %]
219
                        [% SET required.$field = 'required' %]
219
                        [% SET required.$field = 'required' %]
220
                    [% END %]
220
                    [% END %]
Lines 683-688 Link Here
683
                                                </select>
683
                                                </select>
684
                                                [% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %]
684
                                                [% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %]
685
                                            </li>
685
                                            </li>
686
                                            [% UNLESS hidden.defined('lang')  %]
687
                                                <li>
688
                                                    [% IF ( mandatory.defined('lang') ) %]
689
                                                        <label for="borrower_lang" class="required">Preferred language for notices: </label>
690
                                                    [% ELSE %]
691
                                                        <label for="borrower_lang">Preferred language for notices: </label>
692
                                                    [% END %]
693
                                                    <select id="borrower_lang" name="borrower_lang">
694
                                                        <option value="default">Default</option>
695
                                                        [% FOR language IN languages %]
696
                                                            [% FOR sublanguage IN language.sublanguages_loop %]
697
                                                                [% IF language.plural %]
698
                                                                    [% IF sublanguage.rfc4646_subtag == borrower.lang %]
699
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
700
                                                                    [% ELSE %]
701
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
702
                                                                    [% END %]
703
                                                                [% ELSE %]
704
                                                                    [% IF sublanguage.rfc4646_subtag == borrower.lang %]
705
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
706
                                                                    [% ELSE %]
707
                                                                        <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
708
                                                                    [% END %]
709
                                                                [% END # /IF language.plural %]
710
                                                            [% END # /FOR sublanguage %]
711
                                                        [% END #/FOR language %]
712
                                                    </select> <!-- /#lang -->
713
                                                    [% IF ( mandatory.defined('lang') ) %]<div class="required_label required">Required</div>[% END %]
714
                                                </li>
715
                                            [% END %]
686
                                        [% END %]
716
                                        [% END %]
687
                                    </ol>
717
                                    </ol>
688
                                </fieldset>
718
                                </fieldset>
(-)a/opac/opac-memberentry.pl (-3 / +5 lines)
Lines 98-110 if ( defined $min ) { Link Here
98
98
99
my $defaultCategory = Koha::Patron::Categories->find(C4::Context->preference('PatronSelfRegistrationDefaultCategory'));
99
my $defaultCategory = Koha::Patron::Categories->find(C4::Context->preference('PatronSelfRegistrationDefaultCategory'));
100
100
101
my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('template') );
102
101
$template->param(
103
$template->param(
102
    action            => $action,
104
    action            => $action,
103
    hidden            => GetHiddenFields( $mandatory, $action ),
105
    hidden            => GetHiddenFields( $mandatory, $action ),
104
    mandatory         => $mandatory,
106
    mandatory         => $mandatory,
105
    libraries         => $libraries,
107
    libraries         => $libraries,
106
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
108
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
107
    defaultCategory  => $defaultCategory,
109
    defaultCategory   => $defaultCategory,
110
    languages         => $translated_languages,
108
);
111
);
109
112
110
my $attributes = ParsePatronAttributes($borrowernumber,$cgi);
113
my $attributes = ParsePatronAttributes($borrowernumber,$cgi);
Lines 567-573 sub ParseCgiForBorrower { Link Here
567
    # Replace checkbox 'agreed' by datetime in gdpr_proc_consent
570
    # Replace checkbox 'agreed' by datetime in gdpr_proc_consent
568
    $borrower{gdpr_proc_consent} = dt_from_string if  $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed';
571
    $borrower{gdpr_proc_consent} = dt_from_string if  $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed';
569
572
570
    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
573
    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
571
    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 qw/dateenrolled dateexpiry borrowernotes opacnote sort1 sort2 sms_provider_id autorenew_checkouts gonenoaddress lost relationship/; # On OPAC only
572
    delete $borrower{$_} for split( /\s*\|\s*/, C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{} );
575
    delete $borrower{$_} for split( /\s*\|\s*/, C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{} );
573
576
574
- 

Return to bug 34438