Bug 10204 - Patron image no longer appears in the OPAC
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-memberentry.tt
1 [% USE KohaDates %]
2 [% SET userupdateview = 1 %]
3
4     [% INCLUDE 'doc-head-open.inc' %]
5         [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF action == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %]
6     [% INCLUDE 'doc-head-close.inc' %]
7     [% INCLUDE 'calendar.inc' %]
8
9     <script type="text/javascript">
10         //<![CDATA[
11         $(document).ready(function() {
12             [% IF action == 'edit' && !OPACPatronDetails %]
13                 $("#memberentry-form :input").attr('readonly', true);
14                 $("#borrower_branchcode").attr('disabled',true);
15                 $("#borrower_title").attr('disabled',true);
16                 $('#memberentry-form :radio').attr('disabled',true);
17                 $('span.required').remove();
18                 $('label.required').removeClass('required');
19             [% ELSE %]
20                 $( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" });
21             [% END %]
22         });
23     //]]>
24     </script>
25 </head>
26 [% IF action == 'edit' %]
27 <body id="opac-patron-update">
28 [% ELSE %]
29 <body id="opac-patron-registration">
30 [% END %]
31     <div id="doc3" class="yui-t1">
32         <div id="bd">
33             [% INCLUDE 'masthead.inc' %]
34
35             <div id="yui-main">
36                 <div class="yui-b">
37                     <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form">
38                     [% IF action == 'edit' %]
39                     <div id="update-account" class="container">
40                     [% ELSE %]
41                     <div id="add-account" class="container">
42                     [% END %]
43                         <div class="yui-g">
44                         [% IF action == 'edit' %]
45                             <h3><a href="/cgi-bin/koha/opac-user.pl">[% borrower.firstname %] [% borrower.surname %]'s account</a> &#8674; Personal details</h3>
46                         [% ELSE %]
47                             <h3>Register a new account</h3>
48                         [% END %]
49
50                             [% IF action == 'edit' %]
51                             [% UNLESS OPACPatronDetails %]
52                                 <div class="dialog message">To make changes to your record please contact the library.</div>
53                             [% END %]
54                             [% END %]
55
56                             [% IF empty_mandatory_fields %]
57                                 <div class="dialog alert">You have not filled out all required fields. Please fill in all missing fields and resubmit.</div>
58                             [% END %]
59
60                             [% IF failed_captcha %]
61                                 <div class="dialog alert">You typed in the wrong characters in the box before submitting. Please try again.</div>
62                             [% END %]
63
64                                 [% UNLESS
65                                     hidden.defined('branchcode')
66                                 %]
67
68                                 <fieldset class="rows" id="memberentry_library">
69
70                                     <legend id="library_legend">Library</legend>
71                                         <ol>
72                                             [% UNLESS hidden.defined('branchcode') %]
73                                                 <li>
74                                                     [% IF mandatory.defined('branchcode') %]
75                                                         <label for="borrower_branchcode" class="required">
76                                                     [% ELSE %]
77                                                         <label for="borrower_branchcode">
78                                                     [% END %]
79                                                     Home Library:</label>
80
81                                                     <select id="borrower_branchcode" name="borrower_branchcode">
82                                                         [% FOREACH b IN branches %]
83                                                             [% IF b.value == borrower.branchcode %]
84                                                                 <option value="[% b.value %]" selected="selected">[% b.branchname %]</option>
85                                                             [% ELSE %]
86                                                                 <option value="[% b.value %]">[% b.branchname %]</option>
87                                                             [% END %]
88                                                         [% END %]
89                                                     </select>
90                                                 </li>
91                                             [% END %]
92                                         </ol>
93                                     </fieldset>
94                                 [% END %]
95                         </div>
96                                 [% UNLESS
97                                     hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') &&
98                                     hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') &&
99                                     hidden.defined('sex')
100                                 %]
101                                 <div class="yui-g">
102                                     [% IF ( display_patron_image ) %]
103                                         <div class="yui-u first">
104                                     [% END %]
105                                     <fieldset class="rows" id="memberentry_identity">
106                                         <legend id="identity_legend">Identity</legend>
107
108                                         <ol>
109                                             [% UNLESS hidden.defined('title') %]
110                                                 <li>
111                                                     [% IF mandatory.defined('title') %]
112                                                         <label for="borrower_title" class="required">
113                                                     [% ELSE %]
114                                                         <label for="borrower_title">
115                                                     [% END %]
116                                                     Salutation:</label>
117
118                                                     <select id="borrower_title" name="borrower_title">
119                                                         <option value="">&nbsp;</option>
120                                                         [% FOREACH mt IN member_titles %]
121                                                             [% IF mt == borrower.title %]
122                                                                 <option value="[% mt %]" selected="selected">[% mt %]</option>
123                                                             [% ELSE %]
124                                                                 <option value="[% mt %]">[% mt %]</option>
125                                                             [% END %]
126                                                         [% END %]
127                                                     </select>
128                                                 </li>
129                                             [% END %]
130
131                                             [% UNLESS hidden.defined('surname') %]
132                                                 <li>
133                                                     [% IF mandatory.defined('surname') %]
134                                                         <label for="borrower_surname" class="required">
135                                                     [% ELSE %]
136                                                         <label for="borrower_surname">
137                                                     [% END %]
138                                                     Surname:</label>
139
140                                                     <input type="text" id="borrower_surname" name="borrower_surname" value="[% borrower.surname %]" />
141                                                     [% IF mandatory.defined('surname') %]<span class="required">Required</span>[% END %]
142                                                 </li>
143                                             [% END %]
144
145                                             [% UNLESS hidden.defined('firstname') %]
146                                                 <li>
147                                                     [% IF mandatory.defined('firstname') %]
148                                                         <label for="borrower_firstname" class="required">
149                                                     [% ELSE %]
150                                                         <label for="borrower_firstname">
151                                                     [% END %]
152                                                     First name:</label>
153
154                                                     <input type="text" id="borrower_firstname" name="borrower_firstname" value="[% borrower.firstname %]" />
155                                                     [% IF mandatory.defined('firstname') %]<span class="required">Required</span>[% END %]
156                                                 </li>
157                                             [% END %]
158
159                                             [% UNLESS hidden.defined('dateofbirth') %]
160                                                 <li>
161                                                     [% IF mandatory.defined('dateofbirth') %]
162                                                         <label for="borrower_dateofbirth" class="required">
163                                                     [% ELSE %]
164                                                         <label for="borrower_dateofbirth">
165                                                     [% END %]
166                                                     Date of birth:</label>
167
168                                                     <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" />
169
170                                                     [% UNLESS action == 'edit' && !OPACPatronDetails %]
171                                                         <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('borrower_dateofbirth').value='';return false;">Clear date</a><p></p>
172                                                     [% END %]
173
174                                                     [% IF mandatory.defined('dateofbirth') %]<span class="required">Required</span>[% END %]
175                                                 </li>
176                                             [% END %]
177
178                                             [% UNLESS hidden.defined('initials') %]
179                                                 <li>
180                                                     [% IF mandatory.defined('initials') %]
181                                                         <label for="borrower_initials" class="required">
182                                                     [% ELSE %]
183                                                         <label for="borrower_initials">
184                                                     [% END %]
185                                                     Initials:</label>
186
187                                                     <input type="text" id="borrower_initials" name="borrower_initials" value="[% borrower.initials %]" />
188                                                     [% IF mandatory.defined('initials') %]<span class="required">Required</span>[% END %]
189                                                 </li>
190                                             [% END %]
191
192                                             [% UNLESS hidden.defined('othernames') %]
193                                                 <li>
194                                                     [% IF mandatory.defined('othernames') %]
195                                                         <label for="borrower_othernames" class="required">
196                                                     [% ELSE %]
197                                                         <label for="borrower_othernames">
198                                                     [% END %]
199                                                     Other names:</label>
200
201                                                     <input type="text" id="borrower_othernames" name="borrower_othernames" value="[% borrower.othernames %]" />
202                                                     [% IF mandatory.defined('othernames') %]<span class="required">Required</span>[% END %]
203                                                 </li>
204                                             [% END %]
205
206                                             [% UNLESS hidden.defined('sex') %]
207                                                 <li class="radio">
208                                                     <label for="sex-female">Female:</label>
209                                                     [% IF borrower.sex == 'F' %]
210                                                         <input type="radio" name="borrower_sex" id="sex-female" value="F" checked="checked" />
211                                                     [% ELSE %]
212                                                         <input type="radio" name="borrower_sex" id="sex-female" value="F" />
213                                                     [% END %]
214
215                                                     <label for="sex-male">Male:</label>
216                                                     [% IF borrower.sex == 'M' %]
217                                                         <input type="radio" name="borrower_sex" id="sex-male" value="M" checked="checked" />
218                                                     [% ELSE %]
219                                                         <input type="radio" name="borrower_sex" id="sex-male" value="M" />
220                                                     [% END %]
221
222                                                     <label for="sex-none">N/A:</label>
223                                                     [% IF borrower.sex == '' %]
224                                                         <input type="radio" name="borrower_sex" id="sex-none" value="" checked="checked" />
225                                                     [% ELSE %]
226                                                         <input type="radio" name="borrower_sex" id="sex-none" value="" />
227                                                     [% END %]
228
229                                                     [% IF mandatory.defined('sex') %]<span class="required">Required</span>[% END %]
230                                                 </li>
231                                             [% END %]
232                                         </ol>
233                                     </fieldset>
234                                     [% IF ( display_patron_image ) %]
235                                         </div>
236                                         <div class="yui-u">
237                                             <p class="patronimage">
238                                                 <img src="/cgi-bin/koha/opac-patron-image.pl" alt="" />
239                                             </p>
240                                         </div>
241                                     [% END %]
242                                 </div>
243                                 [% END %]
244
245                             <div class="yui-g">
246                                 [% UNLESS
247                                     hidden.defined('streetnumber') && hidden.defined('address') && hidden.defined('address2') &&
248                                     hidden.defined('city') && hidden.defined('state') && hidden.defined('zipcode') &&
249                                     hidden.defined('country')
250                                 %]
251                                     <fieldset class="rows" id="memberentry_mainaddress">
252                                         <legend id="mainaddress_legend">Main address</legend>
253
254                                         <ol>
255                                             [% UNLESS hidden.defined('streetnumber') %]
256                                                 <li>
257                                                     [% IF mandatory.defined('streetnumber') %]
258                                                         <label for="borrower_streetnumber" class="required">
259                                                     [% ELSE %]
260                                                         <label for="borrower_streetnumber">
261                                                     [% END %]
262                                                     Street number:</label>
263
264                                                     <input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber %]" />
265                                                     [% IF mandatory.defined('streetnumber') %]<span class="required">Required</span>[% END %]
266                                                 </li>
267                                             [% END %]
268
269                                             [% UNLESS hidden.defined('address') %]
270                                                 <li>
271                                                     [% IF mandatory.defined('address') %]
272                                                         <label for="borrower_address" class="required">
273                                                     [% ELSE %]
274                                                         <label for="borrower_address">
275                                                     [% END %]
276                                                     Address:</label>
277
278                                                     <input type="text" id="borrower_address" name="borrower_address" value="[% borrower.address %]" />
279                                                     [% IF mandatory.defined('address') %]<span class="required">Required</span>[% END %]
280                                                 </li>
281                                             [% END %]
282
283                                             [% UNLESS hidden.defined('address2') %]
284                                                 <li>
285                                                     [% IF mandatory.defined('address2') %]
286                                                         <label for="borrower_address2" class="required">
287                                                     [% ELSE %]
288                                                         <label for="borrower_address2">
289                                                     [% END %]
290                                                     Address 2:</label>
291
292                                                     <input type="text" id="borrower_address2" name="borrower_address2" value="[% borrower.address2 %]" />
293                                                     [% IF mandatory.defined('address2') %]<span class="required">Required</span>[% END %]
294                                                 </li>
295                                             [% END %]
296
297                                             [% UNLESS hidden.defined('city') %]
298                                                 <li>
299                                                     [% IF mandatory.defined('city') %]
300                                                         <label for="borrower_city" class="required">
301                                                     [% ELSE %]
302                                                         <label for="borrower_city">
303                                                     [% END %]
304                                                     City:</label>
305
306                                                     <input type="text" id="borrower_city" name="borrower_city" value="[% borrower.city %]" />
307                                                     [% IF mandatory.defined('city') %]<span class="required">Required</span>[% END %]
308                                                 </li>
309                                             [% END %]
310
311                                             [% UNLESS hidden.defined('state') %]
312                                                 <li>
313                                                     [% IF mandatory.defined('state') %]
314                                                         <label for="borrower_state" class="required">
315                                                     [% ELSE %]
316                                                         <label for="borrower_state">
317                                                     [% END %]
318                                                     State:</label>
319
320                                                     <input type="text" id="borrower_state" name="borrower_state" value="[% borrower.state %]" />
321                                                     [% IF mandatory.defined('state') %]<span class="required">Required</span>[% END %]
322                                                 </li>
323                                             [% END %]
324
325                                             [% UNLESS hidden.defined('zipcode') %]
326                                                 <li>
327                                                     [% IF mandatory.defined('zipcode') %]
328                                                         <label for="borrower_zipcode" class="required">
329                                                     [% ELSE %]
330                                                         <label for="borrower_zipcode">
331                                                     [% END %]
332                                                     Zip/Postal code:</label>
333
334                                                     <input type="text" id="borrower_zipcode" name="borrower_zipcode" value="[% borrower.zipcode %]" />
335                                                     [% IF mandatory.defined('zipcode') %]<span class="required">Required</span>[% END %]
336                                                 </li>
337                                             [% END %]
338
339                                             [% UNLESS hidden.defined('country') %]
340                                                 <li>
341                                                     [% IF mandatory.defined('country') %]
342                                                         <label for="borrower_country" class="required">
343                                                     [% ELSE %]
344                                                         <label for="borrower_country">
345                                                     [% END %]
346                                                     Country:</label>
347
348                                                     <input type="text" id="borrower_country" name="borrower_country" value="[% borrower.country %]" />
349                                                     [% IF mandatory.defined('country') %]<span class="required">Required</span>[% END %]
350                                                 </li>
351                                             [% END %]
352
353                                         </ol>
354                                     </fieldset>
355                                 [% END %]
356
357                                 [% UNLESS
358                                     hidden.defined('phone') && hidden.defined('phonepro') && hidden.defined('mobile') &&
359                                     hidden.defined('email') && hidden.defined('emailpro') && hidden.defined('fax')
360                                 %]
361                                     <fieldset class="rows" id="memberentry_contact">
362                                         <legend id="contact_legend">Contact information</legend>
363
364                                         <ol>
365                                             [% UNLESS hidden.defined('phone') %]
366                                                 <li>
367                                                     [% IF mandatory.defined('phone') %]
368                                                         <label for="borrower_phone" class="required">
369                                                     [% ELSE %]
370                                                         <label for="borrower_phone">
371                                                     [% END %]
372                                                     Primary phone:</label>
373
374                                                     <input type="text" id="borrower_phone" name="borrower_phone" value="[% borrower.phone %]" />
375                                                     [% IF mandatory.defined('phone') %]<span class="required">Required</span>[% END %]
376                                                 </li>
377                                             [% END %]
378
379                                             [% UNLESS hidden.defined('phonepro') %]
380                                                 <li>
381                                                     [% IF mandatory.defined('phonepro') %]
382                                                         <label for="borrower_phonepro" class="required">
383                                                     [% ELSE %]
384                                                         <label for="borrower_phonepro">
385                                                     [% END %]
386                                                     Secondary phone:</label>
387
388                                                     <input type="text" id="borrower_phonepro" name="borrower_phonepro" value="[% borrower.phonepro %]" />
389                                                     [% IF mandatory.defined('phonepro') %]<span class="required">Required</span>[% END %]
390                                                 </li>
391                                             [% END %]
392
393                                             [% UNLESS hidden.defined('mobile') %]
394                                                 <li>
395                                                     [% IF mandatory.defined('mobile') %]
396                                                         <label for="borrower_mobile" class="required">
397                                                     [% ELSE %]
398                                                         <label for="borrower_mobile">
399                                                     [% END %]
400                                                     Mobile phone:</label>
401
402                                                     <input type="text" id="borrower_mobile" name="borrower_mobile" value="[% borrower.mobile %]" />
403                                                     [% IF mandatory.defined('mobile') %]<span class="required">Required</span>[% END %]
404                                                 </li>
405                                             [% END %]
406
407                                             [% UNLESS hidden.defined('email') %]
408                                                 <li>
409                                                     [% IF mandatory.defined('email') %]
410                                                         <label for="borrower_email" class="required">
411                                                     [% ELSE %]
412                                                         <label for="borrower_email">
413                                                     [% END %]
414                                                     Primary email:</label>
415
416                                                     <input type="text" id="borrower_email" name="borrower_email" value="[% borrower.email %]" />
417                                                     [% IF mandatory.defined('email') %]<span class="required">Required</span>[% END %]
418                                                 </li>
419                                             [% END %]
420
421                                             [% UNLESS hidden.defined('emailpro') %]
422                                                 <li>
423                                                     [% IF mandatory.defined('emailpro') %]
424                                                         <label for="borrower_emailpro" class="required">
425                                                     [% ELSE %]
426                                                         <label for="borrower_emailpro">
427                                                     [% END %]
428                                                     Secondary email:</label>
429
430                                                     <input type="text" id="borrower_emailpro" name="borrower_emailpro" value="[% borrower.emailpro %]" />
431                                                     [% IF mandatory.defined('emailpro') %]<span class="required">Required</span>[% END %]
432                                                 </li>
433                                             [% END %]
434
435                                             [% UNLESS hidden.defined('fax') %]
436                                                 <li>
437                                                     [% IF mandatory.defined('fax') %]
438                                                         <label for="borrower_fax" class="required">
439                                                     [% ELSE %]
440                                                         <label for="borrower_fax">
441                                                     [% END %]
442                                                     Fax:</label>
443
444                                                     <input type="text" id="borrower_fax" name="borrower_fax" value="[% borrower.fax %]" />
445                                                     [% IF mandatory.defined('fax') %]<span class="required">Required</span>[% END %]
446                                                 </li>
447                                             [% END %]
448                                         </ol>
449                                     </fieldset>
450                                 [% END %]
451
452                                 [% UNLESS
453                                     hidden.defined('B_address') && hidden.defined('B_address2') && hidden.defined('B_city') &&
454                                     hidden.defined('B_state') && hidden.defined('B_zipcode') && hidden.defined('B_county') &&
455                                     hidden.defined('B_phone') && hidden.defined('B_email') && hidden.defined('contactnote')
456                                 %]
457                                     <fieldset class="rows" id="memberentry_alternateaddress">
458                                         <legend id="alternateaddress_legend">Alternate address</legend>
459
460                                         <ol>
461                                             [% UNLESS hidden.defined('B_address') %]
462                                                 <li>
463                                                     [% IF mandatory.defined('B_address') %]
464                                                         <label for="borrower_B_address" class="required">
465                                                     [% ELSE %]
466                                                         <label for="borrower_B_address">
467                                                     [% END %]
468                                                     Address:</label>
469
470                                                     <input type="text" id="borrower_B_address" name="borrower_B_address" value="[% borrower.B_address %]" />
471                                                     [% IF mandatory.defined('B_address') %]<span class="required">Required</span>[% END %]
472                                                 </li>
473                                             [% END %]
474
475                                             [% UNLESS hidden.defined('B_address2') %]
476                                                 <li>
477                                                     [% IF mandatory.defined('B_address2') %]
478                                                         <label for="borrower_B_address2" class="required">
479                                                     [% ELSE %]
480                                                         <label for="borrower_B_address2">
481                                                     [% END %]
482                                                     Address 2:</label>
483
484                                                     <input type="text" id="borrower_B_address2" name="borrower_B_address2" value="[% borrower.B_address2 %]" />
485                                                     [% IF mandatory.defined('B_address2') %]<span class="required">Required</span>[% END %]
486                                                 </li>
487                                             [% END %]
488
489                                             [% UNLESS hidden.defined('B_city') %]
490                                                 <li>
491                                                     [% IF mandatory.defined('B_city') %]
492                                                         <label for="borrower_B_city" class="required">
493                                                     [% ELSE %]
494                                                         <label for="borrower_B_city">
495                                                     [% END %]
496                                                     City:</label>
497
498                                                     <input type="text" id="borrower_B_city" name="borrower_B_city" value="[% borrower.B_city %]" />
499                                                     [% IF mandatory.defined('B_city') %]<span class="required">Required</span>[% END %]
500                                                 </li>
501                                             [% END %]
502
503                                             [% UNLESS hidden.defined('B_state') %]
504                                                 <li>
505                                                     [% IF mandatory.defined('B_state') %]
506                                                         <label for="borrower_B_state" class="required">
507                                                     [% ELSE %]
508                                                         <label for="borrower_B_state">
509                                                     [% END %]
510                                                     State:</label>
511
512                                                     <input type="text" id="borrower_B_state" name="borrower_B_state" value="[% borrower.B_state %]" />
513                                                     [% IF mandatory.defined('B_state') %]<span class="required">Required</span>[% END %]
514                                                 </li>
515                                             [% END %]
516
517                                             [% UNLESS hidden.defined('B_zipcode') %]
518                                                 <li>
519                                                     [% IF mandatory.defined('B_zipcode') %]
520                                                         <label for="borrower_B_zipcode" class="required">
521                                                     [% ELSE %]
522                                                         <label for="borrower_B_zipcode">
523                                                     [% END %]
524                                                     Zip/Postal code:</label>
525
526                                                     <input type="text" id="borrower_B_zipcode" name="borrower_B_zipcode" value="[% borrower.B_zipcode %]" />
527                                                     [% IF mandatory.defined('B_zipcode') %]<span class="required">Required</span>[% END %]
528                                                 </li>
529                                             [% END %]
530
531                                             [% UNLESS hidden.defined('B_country') %]
532                                                 <li>
533                                                     [% IF mandatory.defined('B_country') %]
534                                                         <label for="borrower_B_country" class="required">
535                                                     [% ELSE %]
536                                                         <label for="borrower_B_country">
537                                                     [% END %]
538                                                     Country:</label>
539
540                                                     <input type="text" id="borrower_B_country" name="borrower_B_country" value="[% borrower.B_country %]" />
541                                                     [% IF mandatory.defined('B_country') %]<span class="required">Required</span>[% END %]
542                                                 </li>
543                                             [% END %]
544
545                                             [% UNLESS hidden.defined('B_phone') %]
546                                                 <li>
547                                                     [% IF mandatory.defined('B_phone') %]
548                                                         <label for="borrower_B_phone" class="required">
549                                                     [% ELSE %]
550                                                         <label for="borrower_B_phone">
551                                                     [% END %]
552                                                     Phone:</label>
553
554                                                     <input type="text" id="borrower_B_phone" name="borrower_B_phone" value="[% borrower.B_phone %]" />
555                                                     [% IF mandatory.defined('B_phone') %]<span class="required">Required</span>[% END %]
556                                                 </li>
557                                             [% END %]
558
559                                             [% UNLESS hidden.defined('B_email') %]
560                                                 <li>
561                                                     [% IF mandatory.defined('B_email') %]
562                                                         <label for="borrower_B_email" class="required">
563                                                     [% ELSE %]
564                                                         <label for="borrower_B_email">
565                                                     [% END %]
566                                                     Email:</label>
567
568                                                     <input type="text" id="borrower_B_email" name="borrower_B_email" value="[% borrower.B_email %]" />
569                                                     [% IF mandatory.defined('B_email') %]<span class="required">Required</span>[% END %]
570                                                 </li>
571                                             [% END %]
572
573                                             [% UNLESS hidden.defined('contactnote') %]
574                                                 <li>
575                                                     [% IF mandatory.defined('contactnote') %]
576                                                         <label for="borrower_contactnote" class="required">
577                                                     [% ELSE %]
578                                                         <label for="borrower_contactnote">
579                                                     [% END %]
580                                                     Contact Note:</label>
581
582                                                     <textarea id="borrower_contactnote" name="borrower_contactnote" cols="40" rows="2">[% borrower.contactnote %]</textarea>
583                                                     [% IF mandatory.defined('contactnote') %]<span class="required">Required</span>[% END %]
584                                                 </li>
585                                             [% END %]
586
587                                         </ol>
588                                     </fieldset>
589                                 [% END %]
590
591                                 [% UNLESS
592                                     hidden.defined('altcontactsurname') && hidden.defined('altcontactfirstname') && hidden.defined('altcontactaddress1') &&
593                                     hidden.defined('altcontactaddress2') && hidden.defined('altcontactaddress3') && hidden.defined('altcontactstate') &&
594                                     hidden.defined('altcontactzipcode') && hidden.defined('altcontactcountry') && hidden.defined('altcontactphone')
595                                 %]
596                                     <fieldset class="rows" id="memberentry_alternatecontact">
597                                         <legend id="alternatecontact_legend">Alternate contact</legend>
598
599                                         <ol>
600                                             [% UNLESS hidden.defined('altcontactsurname') %]
601                                                 <li>
602                                                     [% IF mandatory.defined('altcontactsurname') %]
603                                                         <label for="borrower_altcontactsurname" class="required">
604                                                     [% ELSE %]
605                                                         <label for="borrower_altcontactsurname">
606                                                     [% END %]
607                                                     Surname:</label>
608
609                                                     <input type="text" id="borrower_altcontactsurname" name="borrower_altcontactsurname" value="[% borrower.altcontactsurname %]" />
610                                                     [% IF mandatory.defined('altcontactsurname') %]<span class="required">Required</span>[% END %]
611                                                 </li>
612                                             [% END %]
613
614                                             [% UNLESS hidden.defined('altcontactfirstname') %]
615                                                 <li>
616                                                     [% IF mandatory.defined('altcontactfirstname') %]
617                                                         <label for="borrower_altcontactfirstname" class="required">
618                                                     [% ELSE %]
619                                                         <label for="borrower_altcontactfirstname">
620                                                     [% END %]
621                                                     First name:</label>
622
623                                                     <input type="text" id="borrower_altcontactfirstname" name="borrower_altcontactfirstname" value="[% borrower.altcontactfirstname %]" />
624                                                     [% IF mandatory.defined('altcontactfirstname') %]<span class="required">Required</span>[% END %]
625                                                 </li>
626                                             [% END %]
627
628                                             [% UNLESS hidden.defined('altcontactaddress1') %]
629                                                 <li>
630                                                     [% IF mandatory.defined('altcontactaddress1') %]
631                                                         <label for="borrower_altcontactaddress1" class="required">
632                                                     [% ELSE %]
633                                                         <label for="borrower_altcontactaddress1">
634                                                     [% END %]
635                                                     Address:</label>
636
637                                                     <input type="text" id="borrower_altcontactaddress1" name="borrower_altcontactaddress1" value="[% borrower.altcontactaddress1 %]" />
638                                                     [% IF mandatory.defined('altcontactaddress1') %]<span class="required">Required</span>[% END %]
639                                                 </li>
640                                             [% END %]
641
642                                             [% UNLESS hidden.defined('altcontactaddress2') %]
643                                                 <li>
644                                                     [% IF mandatory.defined('altcontactaddress2') %]
645                                                         <label for="borrower_altcontactaddress2" class="required">
646                                                     [% ELSE %]
647                                                         <label for="borrower_altcontactaddress2">
648                                                     [% END %]
649                                                     Address 2:</label>
650
651                                                     <input type="text" id="borrower_altcontactaddress2" name="borrower_altcontactaddress2" value="[% borrower.altcontactaddress2 %]" />
652                                                     [% IF mandatory.defined('altcontactaddress2') %]<span class="required">Required</span>[% END %]
653                                                 </li>
654                                             [% END %]
655
656                                             [% UNLESS hidden.defined('altcontactaddress3') %]
657                                                 <li>
658                                                     [% IF mandatory.defined('altcontactaddress3') %]
659                                                         <label for="borrower_altcontactaddress3" class="required">
660                                                     [% ELSE %]
661                                                         <label for="borrower_altcontactaddress3">
662                                                     [% END %]
663                                                     City:</label>
664
665                                                     <input type="text" id="borrower_altcontactaddress3" name="borrower_altcontactaddress3" value="[% borrower.altcontactaddress3 %]" />
666                                                     [% IF mandatory.defined('altcontactaddress3') %]<span class="required">Required</span>[% END %]
667                                                 </li>
668                                             [% END %]
669
670                                             [% UNLESS hidden.defined('altcontactstate') %]
671                                                 <li>
672                                                     [% IF mandatory.defined('altcontactstate') %]
673                                                         <label for="borrower_altcontactstate" class="required">
674                                                     [% ELSE %]
675                                                         <label for="borrower_altcontactstate">
676                                                     [% END %]
677                                                     State:</label>
678
679                                                     <input type="text" id="borrower_altcontactstate" name="borrower_altcontactstate" value="[% borrower.altcontactstate %]" />
680                                                     [% IF mandatory.defined('altcontactstate') %]<span class="required">Required</span>[% END %]
681                                                 </li>
682                                             [% END %]
683
684                                             [% UNLESS hidden.defined('altcontactzipcode') %]
685                                                 <li>
686                                                     [% IF mandatory.defined('altcontactzipcode') %]
687                                                         <label for="borrower_altcontactzipcode" class="required">
688                                                     [% ELSE %]
689                                                         <label for="borrower_altcontactzipcode">
690                                                     [% END %]
691                                                     Zip/Postal code:</label>
692
693                                                     <input type="text" id="borrower_altcontactzipcode" name="borrower_altcontactzipcode" value="[% borrower.altcontactzipcode %]" />
694                                                     [% IF mandatory.defined('altcontactzipcode') %]<span class="required">Required</span>[% END %]
695                                                 </li>
696                                             [% END %]
697
698                                             [% UNLESS hidden.defined('altcontactcountry') %]
699                                                 <li>
700                                                     [% IF mandatory.defined('altcontactcountry') %]
701                                                         <label for="borrower_altcontactcountry" class="required">
702                                                     [% ELSE %]
703                                                         <label for="borrower_altcontactcountry">
704                                                     [% END %]
705                                                     Country:</label>
706
707                                                     <input type="text" id="borrower_altcontactcountry" name="borrower_altcontactcountry" value="[% borrower.altcontactcountry %]" />
708                                                     [% IF mandatory.defined('altcontactcountry') %]<span class="required">Required</span>[% END %]
709                                                 </li>
710                                             [% END %]
711
712                                             [% UNLESS hidden.defined('altcontactphone') %]
713                                                 <li>
714                                                     [% IF mandatory.defined('altcontactphone') %]
715                                                         <label for="borrower_altcontactphone" class="required">
716                                                     [% ELSE %]
717                                                         <label for="borrower_altcontactphone">
718                                                     [% END %]
719                                                     Phone:</label>
720
721                                                     <input type="text" id="borrower_altcontactphone" name="borrower_altcontactphone" value="[% borrower.altcontactphone %]" />
722                                                     [% IF mandatory.defined('altcontactphone') %]<span class="required">Required</span>[% END %]
723                                                 </li>
724                                             [% END %]
725                                         </ol>
726                                     </fieldset>
727                                 [% END %]
728
729                                 [% UNLESS action == 'edit' %]
730                                     <fieldset class="rows" id="memberentry_captcha">
731                                         <ol>
732                                             <li>
733                                                 <label for="captcha" class="required">Verification:</label>
734
735                                                 <input type="text" name="captcha" id="captcha" />
736                                                 <input type="hidden" name="captcha_digest" value="[% captcha_digest %]" />
737
738                                                 <span class="hint">Please type this following characters into the preceding box: <strong>[% captcha %]</strong></span>
739                                             </li>
740                                         </ol>
741                                     </fieldset>
742                                 [% END %]
743
744                                 [% IF action == 'edit' %]
745                                     [% IF OPACPatronDetails %]
746                                         <fieldset class="action">
747                                             <input type="hidden" name="action" value="update" />
748                                             <input type="submit" value="Submit update request" />
749                                         </fieldset>
750                                     [% END %]
751                                 [% ELSE %]
752                                     <fieldset class="action">
753                                         <input type="hidden" name="action" value="create" />
754                                         <input type="submit" value="Submit" />
755                                     </fieldset>
756                                 [% END %]
757                             </div>
758                         </div><!--/div id="update-account" -->
759                     </form>
760                 </div>
761             </div>
762
763             <div class="yui-b">
764                 <div id="leftmenus" class="container">
765                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
766                 </div>
767             </div>
768         </div>
769 [% INCLUDE 'opac-bottom.inc' %]