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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl (-1 / +1 lines)
Lines 37-43 Link Here
37
<li><label for="mobile">Mobile Phone:</label> <input id="mobile" type="text" value="<!-- TMPL_VAR name="mobile" -->"  name="mobile" /></li>
37
<li><label for="mobile">Mobile Phone:</label> <input id="mobile" type="text" value="<!-- TMPL_VAR name="mobile" -->"  name="mobile" /></li>
38
<li><label for="phonepro">Work phone:</label> <input id="phonepro"  type="text" value="<!-- TMPL_VAR name="phonepro" -->"  name="phonepro" /></li>
38
<li><label for="phonepro">Work phone:</label> <input id="phonepro"  type="text" value="<!-- TMPL_VAR name="phonepro" -->"  name="phonepro" /></li>
39
<li><label for="fax">Fax:</label> <input id="fax" type="text" value="<!-- TMPL_VAR name="fax" -->"  name="fax" /></li>
39
<li><label for="fax">Fax:</label> <input id="fax" type="text" value="<!-- TMPL_VAR name="fax" -->"  name="fax" /></li>
40
<li><label for="emailaddress">Email:</label> <input id="emailaddress" type="text" value="<!-- TMPL_VAR name="email" -->"  name="emailaddress" /></li>
40
<li><label for="emailaddress">Email:</label> <input id="emailaddress" type="text" value="<!-- TMPL_VAR name="email" -->"  name="email" /></li>
41
<li><label for="emailpro">Work Email:</label> <input id="emailpro" type="text" value="<!-- TMPL_VAR name="emailpro" -->"  name="emailpro" /></li>
41
<li><label for="emailpro">Work Email:</label> <input id="emailpro" type="text" value="<!-- TMPL_VAR name="emailpro" -->"  name="emailpro" /></li>
42
</ol>
42
</ol>
43
</fieldset>
43
</fieldset>
(-)a/opac/opac-userupdate.pl (-13 / +2 lines)
Lines 53-59 my $lib = GetBranchDetail($borr->{'branchcode'}); Link Here
53
# handle the new information....
53
# handle the new information....
54
# collect the form values and send an email.
54
# collect the form values and send an email.
55
my @fields = (
55
my @fields = (
56
    'surname','firstname','othernames','streetnumber','address','address2','city','zipcode','country','phone','mobile','fax','phonepro', 'emailaddress','emailpro','B_streetnumber','B_address','B_address2','B_city','B_zipcode','B_country','B_phone','B_email','dateofbirth','sex'
56
    'surname','firstname','othernames','streetnumber','address','address2','city','zipcode','country','phone','mobile','fax','phonepro', 'email','emailpro','B_streetnumber','B_address','B_address2','B_city','B_zipcode','B_country','B_phone','B_email','dateofbirth','sex'
57
);
57
);
58
my $update;
58
my $update;
59
my $updateemailaddress = $lib->{'branchemail'};
59
my $updateemailaddress = $lib->{'branchemail'};
Lines 84-90 if ( $query->param('modify') ) { Link Here
84
84
85
    # get all the fields:
85
    # get all the fields:
86
    my $message = <<"EOF";
86
    my $message = <<"EOF";
87
Borrower $borr->{'cardnumber'}
87
Patron $borr->{'cardnumber'}
88
88
89
has requested to change her/his personal details.
89
has requested to change her/his personal details.
90
Please check these new details and make the changes:
90
Please check these new details and make the changes:
Lines 104-119 EOF Link Here
104
            $borrowerfield = $borr->{$field};
104
            $borrowerfield = $borr->{$field};
105
        }
105
        }
106
        
106
        
107
        # reconstruct the address
108
        if($field eq "address") {
109
            $borrowerfield = "$streetnumber $address, $address2";
110
        }
111
        
112
        # reconstruct the alternate address
113
        if($field eq "B_address") {
114
            $borrowerfield = "$B_streetnumber $B_address, $B_address2";
115
        }
116
        
117
        if($field eq "dateofbirth") {
107
        if($field eq "dateofbirth") {
118
           $borrowerfield  = format_date( $borr->{'dateofbirth'} ) || '';
108
           $borrowerfield  = format_date( $borr->{'dateofbirth'} ) || '';
119
        }
109
        }
120
- 

Return to bug 5443