-
Notifications
You must be signed in to change notification settings - Fork 54
/
memberentrygen.tmpl
1062 lines (1021 loc) · 48.7 KB
/
memberentrygen.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha › Patrons ›
<!-- TMPL_IF NAME="opadd" --> Add<!-- TMPL_ELSE --> Modify<!--/TMPL_IF--> <!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --><!--TMPL_UNLESS Name="opadd"--> <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!--/TMPL_UNLESS--></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
<script type="text/JavaScript" language="JavaScript">
//<![CDATA[
$(document).ready(function() {
$("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
$("#guarantordelete").click(function() {
$("#contact-details").hide().find('a').remove();
$("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
$("#contactname, #contactfirstname")
.each(function () { this.type = 'text' })
.parent().find('span').remove();
$("#guarantorsearch").val("Set to Patron");
});
$("#select_city").change(function(){
var myRegEx=new RegExp(/(.*)\|(.*)/);
document.form.select_city.value.match(myRegEx);
document.form.zipcode.value=RegExp.$1;
document.form.city.value=RegExp.$2;
});
});
function clear_entry(node) {
var original = node.parentNode.parentNode;
$("input", original).attr('value', '');
$("select", original).attr('value', '');
}
function clone_entry(node) {
var original = node.parentNode.parentNode;
var clone = original.cloneNode(true);
var newId = 50 + parseInt(Math.random() * 100000);
$("input", clone).attr('id', function() {
return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
});
$("input", clone).attr('name', function() {
return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
});
$("select", clone).attr('id', function() {
return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
});
$("select", clone).attr('name', function() {
return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
});
original.parentNode.insertBefore(clone, original.nextSibling);
}
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="patron-search.inc" -->
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
<!-- TMPL_IF NAME="opadd" -->
Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
<!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
<!-- TMPL_ELSE -->
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> › <strong>Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
</strong><!-- /TMPL_IF --></div>
<!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<!-- TMPL_IF NAME="opadd" -->
<h1>
Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --> <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
</h1>
<!-- TMPL_ELSE -->
<h1>
Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
<!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
</h1>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="check_member" -->
<p>
<form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
<div class="dialog alert">
<h3>Duplicate suspected</h3>
<a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
Duplicate ?
<a href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
No, it is not
<!-- TMPL_IF NAME="checked"-->
<input type="checkbox" checked="checked" name="answernodouble" >
<!-- TMPL_ELSE -->
<input type="checkbox" name="answernodouble" />
<!-- /TMPL_IF -->
</div>
</form>
</p>
<!--/TMPL_IF-->
<!-- TMPL_IF Name="debug" -->
<div id="debug">
<div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF Name="nok" -->
<div class="dialog alert">
<p>The following fields are wrong. Please fix them.</p>
<ul>
<!-- TMPL_IF NAME="ERROR_login_exist" -->
<li id="ERROR_login_exist">Login/password already exists.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_cardnumber" -->
<li id="ERROR_cardnumber">Cardnumber already in use.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_age_limitations" -->
<li id="ERROR_age_limitations">Patron's age is incorrect for their category.
Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_branch" -->
<li id="ERROR_branch">Library is invalid.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_dateofbirth" -->
<li id="ERROR_dateofbirth">Date of birth is invalid.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_dateenrolled" -->
<li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_dateexpiry" -->
<li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_short_password" -->
<li id="ERROR_short_password">Password must be at least <!-- TMPL_VAR NAME="minPasswordLength" --> characters long.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
<li id="ERROR_extended_unique_id_failed">The attribute value
<!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
<!-- /TMPL_IF -->
</ul>
</div>
<!-- /TMPL_IF -->
<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
<!-- field always hidden in different form (1,2,3) -->
<input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
<input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
<input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
<input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
<input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
<input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
<input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
<!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
<!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
<!--TMPL_IF Name="step_1"-->
<fieldset class="rows" id="memberentry_identity">
<legend><!--TMPL_IF Name="I"-->Organization <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
<ol>
<!-- TMPL_UNLESS name="I" -->
<!-- TMPL_IF NAME="title_cgipopup" -->
<li>
<!-- TMPL_IF NAME="mandatorytitle" -->
<label for="btitle" class="required">
<!-- TMPL_ELSE -->
<label for="btitle">
<!-- /TMPL_IF-->
Salutation: </label>
<!-- TMPL_VAR NAME="borrotitlepopup" -->
<!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<!-- /TMPL_IF -->
<!-- /TMPL_UNLESS -->
<li>
<!-- TMPL_IF NAME="mandatorysurname" -->
<label for="surname" class="required">
<!-- TMPL_ELSE -->
<label for="surname">
<!-- /TMPL_IF-->
Surname: </label>
<!-- TMPL_IF NAME="uppercasesurnames" -->
<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
<!-- TMPL_ELSE -->
<input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<!-- TMPL_UNLESS name="I" -->
<li>
<!-- TMPL_IF NAME="mandatoryfirstname" -->
<label for="firstname" class="required">
<!-- TMPL_ELSE -->
<label for="firstname">
<!-- /TMPL_IF-->
First name: </label>
<input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
<!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryinitials" -->
<label for="initials" class="required">
<!-- TMPL_ELSE -->
<label for="initials">
<!-- /TMPL_IF-->
Middle Initial(s): </label>
<input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
<!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorydateofbirth" -->
<label for="dateofbirth" class="required">
<!-- TMPL_ELSE -->
<label for="dateofbirth">
<!-- /TMPL_IF-->
Date of birth: </label>
<!-- TMPL_IF NAME="metric" -->
<input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
<!-- TMPL_ELSE -->
<input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
<!-- /TMPL_IF -->
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
<script language="JavaScript" type="text/javascript">
Calendar.setup(
{
inputField : "dateofbirth",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "dateofbirth_button"
}
);
</script>
<!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
</li>
<!-- /TMPL_UNLESS -->
<li>
<!-- TMPL_IF NAME="mandatoryothernames" -->
<label for="othernames" class="required">
<!-- TMPL_ELSE -->
<label for="othernames">
<!-- /TMPL_IF-->
<!-- TMPL_IF NAME="showothernames" -->
Other name: </label>
<input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
<!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
</li>
<!--TMPL_UNLESS Name="I"-->
<li class="radio">
<!-- TMPL_IF NAME="female" -->
<label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
<!-- TMPL_ELSE -->
<label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="male" -->
<label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
<!-- TMPL_ELSE -->
<label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="none" -->
<label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
<!-- TMPL_ELSE -->
<label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
<!-- /TMPL_IF -->
</li>
<!--/TMPL_UNLESS-->
</ol>
</fieldset>
<!--TMPL_IF Name="showguarantor"--><input type="hidden" id="guarantorid" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
<fieldset class="rows">
<legend>Guarantor Information</legend>
<ol>
<!--TMPL_IF Name="P"-->
<!-- TMPL_IF NAME="guarantorid" -->
<li id="contact-details">
<!-- TMPL_ELSE -->
<li id="contact-details" style="display: none">
<!-- /TMPL_IF -->
<span class="label">Organization #:</span> <!-- TMPL_IF NAME="guarantorid" --> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorid" -->" target="blank"><!-- TMPL_VAR NAME="guarantorid" --></a><!-- /TMPL_IF -->
</li>
<li>
<label for="contactname">Organization name: </label>
<!-- TMPL_IF NAME="guarantorid" -->
<span><!-- TMPL_VAR NAME="contactname" --></span>
<input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
<!-- TMPL_ELSE -->
<input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
<!-- /TMPL_IF -->
</li>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="C" -->
<!-- TMPL_IF NAME="guarantorid" -->
<li id="contact-details">
<!-- TMPL_ELSE -->
<li id="contact-details" style="display: none">
<!-- /TMPL_IF -->
<span class="label">Patron #:</span> <!-- TMPL_IF NAME="guarantorid" --> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorid" -->" target="blank"><!-- TMPL_VAR NAME="guarantorid" --></a><!-- /TMPL_IF -->
</li>
<li>
<label for="contactname">Surname: </label>
<!-- TMPL_IF NAME="guarantorid" -->
<span><!-- TMPL_VAR NAME="contactname" --></span>
<input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
<!-- TMPL_ELSE -->
<input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
<!-- /TMPL_IF -->
</li>
<li>
<label for="contactfirstname">First name: </label>
<!-- TMPL_IF NAME="guarantorid" -->
<span><!-- TMPL_VAR NAME="contactfirstname" --></span>
<input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
<!-- TMPL_ELSE -->
<input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
<!-- /TMPL_IF -->
</li>
<!-- TMPL_IF name="relshiploop" -->
<li>
<label for="relationship">Relationship: </label>
<select name="relationship" id="relationship" >
<!-- TMPL_LOOP name="relshiploop" -->
<!-- TMPL_IF name="selected" -->
<option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
</li>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!--/TMPL_IF -->
<li>
<span class="label"> </span>
<!-- TMPL_IF NAME="guarantorid" -->
<input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl');" />
<!-- TMPL_ELSE -->
<input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl');" />
<!-- /TMPL_IF -->
<input id="guarantordelete" type="button" value="Delete" />
</li>
</ol>
</fieldset>
<!--/TMPL_IF-->
<fieldset class="rows">
<legend>Main address</legend><ol>
<li>
<!-- TMPL_IF NAME="mandatorystreetnumber" -->
<label for="streetnumber" class="required">
<!--TMPL_ELSE-->
<label for="streetnumber">
<!-- /TMPL_IF-->
Street number: </label>
<input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
<!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<!-- TMPL_IF NAME="road_cgipopup" -->
<li>
<!-- TMPL_IF NAME="mandatorystreettype" -->
<label for="streettype" class="required">
<!--TMPL_ELSE-->
<label for="streettype">
<!-- /TMPL_IF-->
Street type: </label>
<!-- TMPL_VAR NAME="roadpopup" -->
<!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<!--/TMPL_IF-->
<li>
<!-- TMPL_IF NAME="mandatoryaddress" -->
<label for="address" class="required">
<!--TMPL_ELSE-->
<label for="address">
<!--/TMPL_IF-->
Address: </label>
<input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
<!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaddress2" -->
<label for="address2" class="required">
<!--TMPL_ELSE-->
<label for="address2">
<!-- /TMPL_IF-->
Address 2: </label>
<input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
<!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorycity" -->
<label for="city" class="required">
<!--TMPL_ELSE-->
<label for="city">
<!-- /TMPL_IF-->
City, State: </label>
<input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
<!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryzipcode" -->
<label for="zipcode" class="required">
<!--TMPL_ELSE-->
<label for="zipcode">
<!-- /TMPL_IF-->
Zip/Postal code: </label>
<input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
<!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorycountry" -->
<label for="country" class="required">
<!--TMPL_ELSE-->
<label for="country">
<!-- /TMPL_IF-->
Country: </label>
<input type="text" name="country" id="country" size="20" value="<!-- TMPL_VAR NAME="country" -->" />
<!-- TMPL_IF NAME="mandatorycountry" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<fieldset class="rows" id="memberentry_contact">
<legend>Contact</legend><ol>
<li>
<!-- TMPL_IF NAME="mandatoryphone" -->
<label for="phone" class="required">
<!--TMPL_ELSE-->
<label for="phone">
<!-- /TMPL_IF-->
Phone (home): </label>
<input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
<!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF --><strong><em>Shows on transit slips</em></strong>
</li>
<li>
<!-- TMPL_IF NAME="mandatoryphonepro" -->
<label for="phonepro" class="required">
<!--TMPL_ELSE-->
<label for="phonepro">
<!-- /TMPL_IF-->
Phone (work): </label>
<input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
<!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorymobile" -->
<label for="mobile" class="required">
<!--TMPL_ELSE-->
<label for="mobile">
<!-- /TMPL_IF-->
Phone (cell): </label>
<input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
<!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryemail" -->
<label for="email" class="required">
<!--TMPL_ELSE-->
<label for="email">
<!-- /TMPL_IF-->
Email (home): </label>
<input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
<!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF --><strong><em>Shows on transit slips</em></strong>
</li>
<li>
<!-- TMPL_IF NAME="mandatoryemailpro" -->
<label for="emailpro" class="required">
<!--TMPL_ELSE-->
<label for="emailpro">
<!-- /TMPL_IF-->
Email (work): </label>
<input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
<!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryfax" -->
<label for="fax" class="required">
<!--TMPL_ELSE-->
<label for="fax">
<!-- /TMPL_IF-->
Fax: </label>
<input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
<!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<!-- ************************ STEP_1 *********************** -->
<!--/TMPL_IF -->
<!--TMPL_IF Name="step_6"-->
<fieldset class="rows" id="memberentry_address">
<legend>Alternate address</legend><ol>
<li>
<!-- TMPL_IF NAME="mandatoryB_address" -->
<label for="B_address" class="required">
<!--TMPL_ELSE-->
<label for="B_address">
<!-- /TMPL_IF-->
Address: </label>
<input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
<!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryB_address2" -->
<label for="B_address2" class="required">
<!--TMPL_ELSE-->
<label for="B_address2">
<!-- /TMPL_IF-->
Address 2: </label>
<input type="text" id="B_address2" name="B_address2" size="40" value="<!-- TMPL_VAR NAME="B_address2" -->" />
<!-- TMPL_IF NAME="mandatoryB_address2" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryB_city" -->
<label for="B_city" class="required" >
<!--TMPL_ELSE-->
<label for="B_city">
<!-- /TMPL_IF-->
City, State: </label>
<input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
<!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryB_zipcode" -->
<label for="B_zipcode" class="required">
<!--TMPL_ELSE-->
<label for="B_zipcode">
<!-- /TMPL_IF-->
Zip/Postal code: </label>
<input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
<!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryB_country" -->
<label for="B_country" class="required">
<!--TMPL_ELSE-->
<label for="B_country">
<!-- /TMPL_IF-->
Country: </label>
<input type="text" id="B_country" name="B_country" size="20" value="<!-- TMPL_VAR NAME="B_country" -->" />
<!-- TMPL_IF NAME="mandatoryB_country" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryB_phone" -->
<label for="B_phone" class="required">
<!--TMPL_ELSE-->
<label for="B_phone">
<!-- /TMPL_IF-->
Phone: </label>
<input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
<!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryB_email" -->
<label for="B_email" class="required">
<!--TMPL_ELSE-->
<label for="B_email">
<!-- /TMPL_IF-->
Email: </label>
<input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
<!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
<li>
<!-- TMPL_IF NAME="mandatorycontactnote" -->
<label for="contactnote" class="required">
<!--TMPL_ELSE-->
<label for="contactnote">
<!-- /TMPL_IF-->
Contact note: </label>
<textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
<!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<!-- /TMPL_IF -->
<!--TMPL_IF Name="step_2"-->
<fieldset class="rows" id="memberentry_altaddress">
<legend>Alternate Contact</legend><ol>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
<label for="altcontactsurname" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactsurname">
<!-- /TMPL_IF -->
Surname:</label>
<input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
<!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
<label for="altcontactfirstname" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactfirstname">
<!-- /TMPL_IF -->
First name:</label>
<input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
<!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
<label for="altcontactaddress1" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactaddress1">
<!-- /TMPL_IF -->
Address:</label>
<input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
<!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
<label for="altcontactaddress2" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactaddress2">
<!-- /TMPL_IF -->
Address 2:</label>
<input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
<!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
<label for="altcontactaddress3" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactaddress3">
<!-- /TMPL_IF -->
City, State:</label>
<input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
<!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
<label for="altcontactzipcode" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactzipcode">
<!-- /TMPL_IF -->
Zip/Postal code:</label>
<input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
<!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactcountry" -->
<label for="altcontactcountry" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactcountry">
<!-- /TMPL_IF -->
Country:</label>
<input type="text" name="altcontactcountry" id="altcontactcountry" value="<!-- TMPL_VAR NAME="altcontactcountry" -->" size="20" />
<!-- TMPL_IF NAME="mandatoryaltcontactcountry" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
<label for="altcontactphone" class="required">
<!-- TMPL_ELSE -->
<label for="altcontactphone">
<!-- /TMPL_IF -->
Phone:</label>
<input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
<!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<!-- TMPL_IF NAME="I" -->
<!-- TMPL_IF NAME="memberofinstution" -->
<fieldset class="rows" id="memberentry_organisation">
<legend>Organizations</legend><ol>
<li>
<!-- TMPL_IF NAME="mandatoryphone" -->
<label for="organisations" class="required">
<!--TMPL_ELSE-->
<label for="organisations">
<!-- /TMPL_IF-->
Organization(s): </label>
<!-- TMPL_VAR NAME="CGIorganisations" -->
<!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!--TMPL_IF Name="step_3"-->
<fieldset class="rows" id="memberentry_library_management">
<legend>Library Management</legend><ol>
<li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
<label for="cardnumber" class="required">
<!--TMPL_ELSE -->
<label for="cardnumber">
<!-- /TMPL_IF-->
Card number: </label>
<input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
<!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
<li>
<!-- TMPL_IF NAME="mandatorybranchcode" -->
<label for="branchcode" class="required">
<!--TMPL_ELSE-->
<label for="branchcode">
<!-- /TMPL_IF-->
Library: </label>
<!-- TMPL_VAR NAME="CGIbranch" -->
<!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="typeloop" -->
<label for="categorycode">Category: </label>
<select id="categorycode" name="categorycode">
<!-- TMPL_LOOP NAME="typeloop" -->
<!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organization"><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="categoryloop" -->
<!-- TMPL_IF NAME="categorycodeselected" -->
<option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</optgroup>
<!-- /TMPL_LOOP -->
</select>
<!-- TMPL_ELSE -->
<span class="problem">There is no category type to add <!--TMPL_IF Name="A"-->an Adult<!--/TMPL_IF--><!--TMPL_IF Name="C"-->a Child<!--/TMPL_IF--><!--TMPL_IF Name="I"-->an Institution<!--/TMPL_IF--><!--TMPL_IF Name="P"-->a professionnal<!--/TMPL_IF--><!--TMPL_IF Name="S"-->a Staff Member<!--/TMPL_IF-->.</span>
<a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
<!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorysort1" -->
<label for="sort1" class="required">
<!-- TMPL_ELSE -->
<label for="sort1">
<!-- /TMPL_IF-->
Sort 1: </label>
<!--TMPL_IF NAME="CGIsort1" -->
<!-- TMPL_VAR NAME="CGIsort1" -->
<!--TMPL_ELSE-->
<input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
<!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorysort2" -->
<label for="sort2" class="required">
<!-- TMPL_ELSE -->
<label for="sort2">
<!-- /TMPL_IF-->
Sort 2: </label>
<!--TMPL_IF NAME="CGIsort2" -->
<!-- TMPL_VAR NAME="CGIsort2" -->
<!--TMPL_ELSE-->
<input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
<!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<fieldset class="rows" id="memberentry_subscription">
<legend>Library set-up</legend><ol>
<li>
<!-- TMPL_IF NAME="mandatorydateenrolled" -->
<label for="dateenrolled" class="required">
<!--TMPL_ELSE-->
<label for="dateenrolled">
<!-- /TMPL_IF-->
Registration date: </label>
<input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_VAR NAME="dateenrolled" -->" />
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
<script language="JavaScript" type="text/javascript">
Calendar.setup(
{
inputField : "dateenrolled",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "dateenrolled_button"
}
);
</script>
<!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorydateexpiry" -->
<label for="dateexpiry" class="required">
<!--TMPL_ELSE-->
<label for="dateexpiry">
<!-- /TMPL_IF-->
Expiry date (leave blank for auto calc) </label>
<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_UNLESS NAME="opadd" --><!-- TMPL_VAR NAME="dateexpiry" --><!-- /TMPL_UNLESS -->" />
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
<script language="JavaScript" type="text/javascript">
Calendar.setup(
{
inputField : "dateexpiry",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "dateexpiry_button"
}
);
</script>
<!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryopacnote" -->
<label for="opacnote" class="required">
<!--TMPL_ELSE-->
<label for="opacnote">
<!-- /TMPL_IF-->
OPAC note: </label>
<!-- TMPL_IF NAME="CAN_user_borrowers_edit_borrower_opacnote" -->
<textarea id="opacnote" name="opacnote" cols="55" rows="5" ><!-- TMPL_VAR NAME="opacnote" --></textarea>
<!--TMPL_ELSE-->
<textarea id="opacnote" name="opacnote" cols="55" rows="5" readonly><!-- TMPL_VAR NAME="opacnote" --></textarea>
<!-- /TMPL_IF-->
<div class="hint">This message appears on this patron's user page in the OPAC</div>
<!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatoryborrowernotes" -->
<label for="borrowernotes" class="required">
<!--TMPL_ELSE-->
<label for="borrowernotes">
<!-- /TMPL_IF-->
Circulation note: </label>
<!-- TMPL_IF NAME="CAN_user_borrowers_edit_borrower_circnote" -->
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
<!--TMPL_ELSE-->
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5" readonly><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
<!-- /TMPL_IF-->
<div class="hint">This message displays when checking out to this patron</div>
<!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<fieldset class="rows" id="memberentry_userid">
<legend>OPAC login</legend><ol>
<li>
<!-- TMPL_IF NAME="mandatoryuserid" -->
<label for="userid" class="required">
<!--TMPL_ELSE-->
<label for="userid">
<!-- /TMPL_IF-->
OPAC Login: </label>
<!-- TMPL_IF NAME="NoUpdateLogin" -->
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
<!-- TMPL_ELSE -->
<input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
</li>
<li>
<!-- TMPL_IF NAME="mandatorypassword" -->
<label for="password" class="required">
<!--TMPL_ELSE-->
<label for="password">
<!-- /TMPL_IF-->
Password: </label>
<!--TMPL_IF NAME="opadd"-->
<!-- TMPL_IF NAME="NoUpdateLogin" -->
<input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
<!-- TMPL_ELSE -->
<input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
<!-- /TMPL_IF -->
<!--TMPL_ELSE-->
<!--TMPL_IF NAME="password"-->
<!-- TMPL_IF NAME="NoUpdateLogin" -->
<input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
<!-- TMPL_ELSE -->
<input type="text" id="password" name="password" size="20" value="****" />
<!-- /TMPL_IF -->
<!--TMPL_ELSE-->
<!-- TMPL_IF NAME="NoUpdateLogin" -->
<input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
<!-- TMPL_ELSE -->
<input type="text" id="password" name="password" size="20" value="" />
<!-- /TMPL_IF -->
<!--/TMPL_IF-->
<!--/TMPL_IF-->
<!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="ERROR_short_password" --><span class="required">Password is too short</span><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="minPasswordLength" --><div class="hint">Minimum password length: <!-- TMPL_VAR NAME="minPasswordLength" --></div><!-- /TMPL_IF -->
</li></ol>
</fieldset>
<!--this zones are not necessary in modif mode -->
<!-- TMPL_UNLESS NAME="opadd" -->
<fieldset class="rows">
<legend>Patron Account Flags</legend>
<ol class="radio">
<!-- TMPL_LOOP NAME="flagloop" -->
<li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
<!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
<!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
</label>
<label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
<!-- TMPL_IF NAME="yes" -->
<input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
<!-- TMPL_ELSE -->
<input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
<!-- /TMPL_IF -->
<label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
<!-- TMPL_IF NAME="no" -->
<input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
<!-- TMPL_ELSE -->
<input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
<!-- /TMPL_IF -->
</li>
<!-- /TMPL_LOOP -->
</ol>
</fieldset>
<!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" --><!-- TMPL_UNLESS NAME="no_patron_attribute_types" -->
<fieldset class="rows" id="memberentry_patron_attributes">
<input type="hidden" name="setting_extended_patron_attributes" value="1" />
<legend>Additional attributes and identifiers</legend>
<table>
<tr>
<th>Type</th>
<th colspan="2">Value</th>
</tr>
<!-- TMPL_LOOP NAME='patron_attributes' -->
<tr>
<td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
</td>
<td>
<input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
value="<!-- TMPL_VAR NAME="code" ESCAPE="HTML" -->" />
<!-- TMPL_IF NAME="use_dropdown" -->
<select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
<option value="" />
<!-- TMPL_LOOP NAME="auth_val_loop" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
<!-- TMPL_VAR NAME="lib" -->
</option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
<!-- TMPL_VAR NAME="lib" -->
</option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
<!-- TMPL_ELSE -->
<input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="password_allowed" -->
(Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
<!-- /TMPL_IF -->
</td>
<td>
<a href="#" onclick="clear_entry(this); return false;">Clear</a>
<!-- TMPL_IF NAME="repeatable" -->
<a href="#" onclick="clone_entry(this); return false;">New</a>
<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</fieldset>
<!-- /TMPL_IF--><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
<!-- TMPL_IF NAME="step_5" --><!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
<fieldset class="rows" id="memberentry_messaging_prefs">
<!-- TMPL_IF NAME="opadd" -->
<!-- handle changing prefs if creating new patron and changing
the patron category
-->
<script language="javascript" type="text/javascript">//<![CDATA[
$(document).ready(function(){
var message_prefs_dirty = false;
$('#memberentry_messaging_prefs > *').change(function() {
message_prefs_dirty = true;
});
$('#categorycode').change(function() {
var categorycode = $(this).val();
if (message_prefs_dirty) {