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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt (-1 / +8 lines)
Lines 70-76 Link Here
70
</fieldset>
70
</fieldset>
71
<fieldset class="brief">
71
<fieldset class="brief">
72
<ol>
72
<ol>
73
<li><label for="dob">Date of birth: </label> <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth | $KohaDates %]" name="dateofbirth" /></li>
73
<li>
74
    <label for="dob">Date of birth: </label>
75
    [% IF ( BORROWER_INF.dateofbirth ) %]
76
        <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth | $KohaDates %]" name="dateofbirth" />
77
    [% ELSE %]
78
        <input id="dob" type="text" size="10" value="" name="dateofbirth" />
79
    [% END %]
80
</li>
74
<li><label for="sex">Gender: </label> <select name="sex" id="sex"><option></option>
81
<li><label for="sex">Gender: </label> <select name="sex" id="sex"><option></option>
75
[% IF ( BORROWER_INF.sex == 'F' ) %]<option value="F" selected="selected">Female</option>[% ELSE %]<option value="F">Female</option>[% END %]
82
[% IF ( BORROWER_INF.sex == 'F' ) %]<option value="F" selected="selected">Female</option>[% ELSE %]<option value="F">Female</option>[% END %]
76
[% IF ( BORROWER_INF.sex == 'M' ) %]<option value="M" selected="selected">Male</option>[% ELSE %]<option value="M">Male</option>[% END %]
83
[% IF ( BORROWER_INF.sex == 'M' ) %]<option value="M" selected="selected">Male</option>[% ELSE %]<option value="M">Male</option>[% END %]
(-)a/opac/opac-userupdate.pl (-2 / +1 lines)
Lines 57-63 my @fields = ( Link Here
57
    'surname','firstname','othernames','streetnumber','address','address2','city','state','zipcode','country','phone','mobile','fax','phonepro', 'emailaddress','emailpro','B_streetnumber','B_address','B_address2','B_city','B_state','B_zipcode','B_country','B_phone','B_email','dateofbirth','sex'
57
    'surname','firstname','othernames','streetnumber','address','address2','city','state','zipcode','country','phone','mobile','fax','phonepro', 'emailaddress','emailpro','B_streetnumber','B_address','B_address2','B_city','B_state','B_zipcode','B_country','B_phone','B_email','dateofbirth','sex'
58
);
58
);
59
my $update;
59
my $update;
60
my $updateemailaddress = $lib->{'branchemail'};
60
my $updateemailaddress = $lib->{'branchemail'} || '';
61
$updateemailaddress = C4::Context->preference('KohaAdminEmailAddress') unless( $updateemailaddress =~ /\w+@\w+/);
61
$updateemailaddress = C4::Context->preference('KohaAdminEmailAddress') unless( $updateemailaddress =~ /\w+@\w+/);
62
if ( !$updateemailaddress || $updateemailaddress eq '' ) {
62
if ( !$updateemailaddress || $updateemailaddress eq '' ) {
63
    warn
63
    warn
64
- 

Return to bug 7937