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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt (-6 / +8 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
2
1
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %][% ELSE %]Koha Online[% END %] Catalog ›  Your personal details
3
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %][% ELSE %]Koha Online[% END %] Catalog ›  Your personal details
2
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
3
</head>
5
</head>
Lines 68-74 Link Here
68
</fieldset>
70
</fieldset>
69
<fieldset class="brief">
71
<fieldset class="brief">
70
<ol>
72
<ol>
71
<li><label for="dob">Date of Birth: </label> <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth %]" name="dateofbirth" /></li>
73
<li><label for="dob">Date of Birth: </label> <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth | $KohaDates %]" name="dateofbirth" /></li>
72
<li><label for="sex">Gender: </label> <select name="sex" id="sex"><option></option>
74
<li><label for="sex">Gender: </label> <select name="sex" id="sex"><option></option>
73
[% IF ( BORROWER_INF.sex == 'F' ) %]<option value="F" selected="selected">Female</option>[% ELSE %]<option value="F">Female</option>[% END %]
75
[% IF ( BORROWER_INF.sex == 'F' ) %]<option value="F" selected="selected">Female</option>[% ELSE %]<option value="F">Female</option>[% END %]
74
[% IF ( BORROWER_INF.sex == 'M' ) %]<option value="M" selected="selected">Male</option>[% ELSE %]<option value="M">Male</option>[% END %]
76
[% IF ( BORROWER_INF.sex == 'M' ) %]<option value="M" selected="selected">Male</option>[% ELSE %]<option value="M">Male</option>[% END %]
Lines 81-88 Link Here
81
    <li><label for="branchname">Home library:</label><input type="text" id="branchname" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.branchname %]" /></li>
83
    <li><label for="branchname">Home library:</label><input type="text" id="branchname" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.branchname %]" /></li>
82
	<li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.borrowernumber %]" /></li>
84
	<li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.borrowernumber %]" /></li>
83
	<li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])" /></li>
85
	<li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])" /></li>
84
	<li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateenrolled %]" /></li>
86
	<li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateenrolled | $KohaDates %]" /></li>
85
	<li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateexpiry %]" /></li>
87
	<li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateexpiry | $KohaDates %]" /></li>
86
   [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
88
   [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
87
    [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
89
    [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
88
        <li><label>[% patron_attribute.description %]</label>
90
        <li><label>[% patron_attribute.description %]</label>
Lines 131-137 Link Here
131
<fieldset class="rows">
133
<fieldset class="rows">
132
<legend>Personal Information</legend>
134
<legend>Personal Information</legend>
133
<ol>
135
<ol>
134
<li><span class="label">Date of Birth:</span> [% BORROWER_INF.dateofbirth %]</li>
136
<li><span class="label">Date of Birth:</span> [% BORROWER_INF.dateofbirth | $KohaDates %]</li>
135
<li><span class="label">Gender:</span>
137
<li><span class="label">Gender:</span>
136
[% IF ( sex == 'F' ) %]Female[% END %]
138
[% IF ( sex == 'F' ) %]Female[% END %]
137
[% IF ( sex == 'M' ) %]Male[% END %]
139
[% IF ( sex == 'M' ) %]Male[% END %]
Lines 162-169 Link Here
162
<li><span class="label">Home library:</span> [% BORROWER_INF.branchname %]</li>
164
<li><span class="label">Home library:</span> [% BORROWER_INF.branchname %]</li>
163
<li><span class="label">Patron Number:</span> [% BORROWER_INF.borrowernumber %]</li>
165
<li><span class="label">Patron Number:</span> [% BORROWER_INF.borrowernumber %]</li>
164
<li><span class="label">Patron Category:</span> [% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])</li>
166
<li><span class="label">Patron Category:</span> [% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])</li>
165
<li><span class="label">Joined:</span> [% BORROWER_INF.dateenrolled %]</li>
167
<li><span class="label">Joined:</span> [% BORROWER_INF.dateenrolled | $KohaDates %]</li>
166
<li><span class="label">Expires:</span> [% BORROWER_INF.dateexpiry %]</li>
168
<li><span class="label">Expires:</span> [% BORROWER_INF.dateexpiry | $KohaDates %]</li>
167
   [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
169
   [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %]
168
    [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
170
    [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
169
        <li><span class="label">[% patron_attribute.description %]</span>
171
        <li><span class="label">[% patron_attribute.description %]</span>
(-)a/opac/opac-userupdate.pl (-4 lines)
Lines 141-149 EOF Link Here
141
    }
141
    }
142
}
142
}
143
143
144
$borr->{'dateenrolled'} = format_date( $borr->{'dateenrolled'} );
145
$borr->{'dateexpiry'}   = format_date( $borr->{'dateexpiry'} );
146
$borr->{'dateofbirth'}  = format_date( $borr->{'dateofbirth'} );
147
$borr->{'ethnicity'}    = fixEthnicity( $borr->{'ethnicity'} );
144
$borr->{'ethnicity'}    = fixEthnicity( $borr->{'ethnicity'} );
148
$borr->{'branchname'}   = GetBranchName($borr->{'branchcode'});
145
$borr->{'branchname'}   = GetBranchName($borr->{'branchcode'});
149
146
150
- 

Return to bug 7743