1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Patrons › <!-- TMPL_IF NAME="opadd" -->
3 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
4 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
5 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></title>
6 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
8 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
9 <!--TMPL_IF Name="opadd"-->
10 <script language="JavaScript" type="text/javascript">
11 function active(numlayer){
12 for (i=1; i <= 3 ; i++ ) {
13 var tab = document.getElementById('step'+i);
15 tab.setAttribute("class","content_visible");
16 var tabactive=document.getElementById('link'+i);
17 tabactive.removeAttribute("class");
18 tabactive.setAttribute("class","tab_active");
20 tab.setAttribute("class","content_hidden");
22 var tabactive=document.getElementById('link'+i);
23 tabactive.removeAttribute("class");
24 tabactive.setAttribute("class","tab_inactive");
34 <!-- TMPL_INCLUDE NAME="header.inc" -->
35 <!-- TMPL_INCLUDE NAME="members-search.inc" -->
37 <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" -->
38 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
39 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
40 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></div>
42 <div id="doc3" class="yui-t2">
49 <!-- TMPL_IF NAME="opadd" -->
51 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
52 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
56 Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
57 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
60 <!-- TMPL_IF NAME="check_member" -->
62 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
65 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
67 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
68 No, it is not
69 <!-- TMPL_IF NAME="checked"-->
70 <input type="checkbox" checked="checked" name="answernodouble" >
72 <input type="checkbox" name="answernodouble" />
79 <!-- TMPL_IF Name="nok" -->
81 <p>The following fields are wrong. Please fix it/them</p>
82 <!-- TMPL_IF NAME="ERROR_login_exist" -->
83 <div name="ERROR_login_exist">login/password already exist</div>
85 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
86 <div name="ERROR_cardnumber">Cardnumber already in use</div>
88 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
89 <div name="ERROR_age_limitations">Patron is too young or too old for this category</div>
94 <!--TMPL_IF Name="allsteps"-->
96 <a href="javascript:active(1)" class="tab_active" id="link1">Personal Information</a>
97 <a href="javascript:active(2)" class="tab_inactive" id="link2">Contacts</a>
98 <a href="javascript:active(3)" class="tab_inactive" id="link3">Library Management</a>
102 <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
103 <!-- field always hidden in different form (1,2,3) -->
104 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
105 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
106 <input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" />
107 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
108 <input type="hidden" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
109 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
110 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
111 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
112 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
113 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
114 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
116 <!--TMPL_IF Name="step_1"-->
117 <div id="step1" class="content_visible">
118 <!--TMPL_IF Name="I"-->
119 <input type="hidden" name="FormFieldList" value="surname|contactname|contactfirstname" /> <!--TMPL_ELSE--> <input type="hidden" name="FormFieldList" value="title|surname|firstname|dateofbirth|initials|othernames" /> <!--/TMPL_IF-->
120 <fieldset id="memberentry_identity">
121 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
123 <!-- TMPL_IF NAME="female" -->
124 <input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><label for="sex-female">Female</label>
125 <input type="radio" name="sex" id="sex-male" value="M" /><label for="sex-male">Male</label>
127 <input type="radio" name="sex" id="sex-female" value="F" /><label for="sex-female">Female</label>
128 <input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><label for="sex-male">Male</label>
132 <!-- TMPL_IF NAME="mandatorytitle" -->
133 <label for="btitle" class="required">
138 <!-- TMPL_VAR NAME="borrotitlepopup" -->
142 <!-- TMPL_IF NAME="mandatorysurname" -->
143 <label for="surname" class="required">
145 <label for="surname">
148 <!-- TMPL_IF NAME="uppercasesurnames" -->
149 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
151 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
155 <!-- TMPL_IF NAME="mandatoryfirstname" -->
156 <label for="firstname" class="required">
158 <label for="firstname">
161 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
164 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
165 <label for="dateofbirth" class="required">
167 <label for="dateofbirth">
169 Date of birth</label>
170 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
171 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
172 <script language="JavaScript" type="text/javascript">
175 inputField : "dateofbirth",
176 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
177 button : "dateofbirth_button"
183 <!-- TMPL_IF NAME="mandatoryinitials" -->
184 <label for="initials" class="required">
186 <label for="initials">
189 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
192 <!-- TMPL_IF NAME="mandatoryothernames" -->
193 <label for="othernames" class="required">
195 <label for="othernames">
198 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
201 <!--TMPL_IF Name="C"--> <p>
202 <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
203 <!-- TMPL_IF NAME="guarantorid"-->
205 <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
207 <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
209 <input name="guarantorinfo" type="text" size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
214 <legend>Main address</legend>
216 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
217 <label for="streetnumber" class="required">
219 <label for="streetnumber">
221 Street number</label>
222 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
224 <!-- TMPL_IF NAME="road_cgipopup" -->
226 <!-- TMPL_IF NAME="mandatorystreettype" -->
227 <label for="streettype" class="required">
229 <label for="streettype">
232 <!-- TMPL_VAR NAME="roadpopup" -->
236 <!-- TMPL_IF NAME="mandatoryaddress" -->
237 <label for="address" class="required">
239 <label for="address">
242 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
245 <!-- TMPL_IF NAME="mandatoryaddress2" -->
246 <label for="address2" class="required">
248 <label for="address2">
251 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
254 <!-- TMPL_IF NAME="mandatoryzipcode" -->
255 <label for="zipcode" class="required">
257 <label for="zipcode">
260 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
262 <!-- TMPL_IF NAME="city_cgipopup" -->
264 <!-- TMPL_IF NAME="mandatoryselect_city" -->
265 <label for="select_city" class="required">
267 <label for="select_city">
269 Select a city</label>
270 <!-- TMPL_VAR NAME="citypopup" -->
274 <!-- TMPL_IF NAME="mandatorycity" -->
275 <label for="city" class="required">
280 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
283 <fieldset id="memberentry_contact">
284 <legend>Contact</legend>
285 <!--TMPL_IF Name="C"-->
288 <!-- TMPL_IF NAME="mandatoryB_email" -->
289 <label for="B_email" class="required">
291 <label for="B_email">
293 E-mail (home)</label>
294 <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" />
295 <!-- TMPL_IF NAME="mandatoryB_phone" -->
296 <label for="B_phone" class="required">
298 <label for="B_phone">
301 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
305 <!-- TMPL_IF NAME="mandatoryphone" -->
306 <label for="phone" class="required">
311 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
314 <!-- TMPL_IF NAME="mandatoryphonepro" -->
315 <label for="phonepro" class="required">
317 <label for="phonepro">
320 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
323 <!-- TMPL_IF NAME="mandatorymobile" -->
324 <label for="mobile" class="required">
329 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
332 <!-- TMPL_IF NAME="mandatoryemail" -->
333 <label for="email" class="required">
337 E-mail (home)</label>
338 <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />
341 <!-- TMPL_IF NAME="mandatoryemailpro" -->
342 <label for="emailpro" class="required">
344 <label for="emailpro">
346 E-mail (prof)</label>
347 <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
350 <!-- TMPL_IF NAME="mandatoryfax" -->
351 <label for="fax" class="required">
356 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
361 <!-- ************************ STEP_1 *********************** -->
363 <!--TMPL_IF Name="step_2"-->
364 <!--TMPL_IF Name="step_1"-->
365 <div id="step2" class="content_hidden">
367 <div id="step2" class="content_visible">
369 <fieldset id="memberentry_address">
370 <legend>Address</legend>
372 <legend>Alternate address</legend>
374 <!-- TMPL_IF NAME="mandatoryB_address" -->
375 <label for="B_address" class="required">
377 <label for="B_address">
380 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
383 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
384 <label for="B_zipcode" class="required">
386 <label for="B_zipcode">
389 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
392 <!-- TMPL_IF NAME="mandatoryB_city" -->
393 <label for="B_city" class="required" >
398 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
402 <!-- TMPL_IF NAME="I" -->
403 <!-- TMPL_IF NAME="memberofinstution" -->
404 <fieldset id="memberentry_organisation">
405 <legend>Organisations</legend>
407 <!-- TMPL_IF NAME="mandatoryphone" -->
408 <label for="organisations" class="required">
410 <label for="organisations">
412 Organisation(s)</label>
413 <!-- TMPL_VAR NAME="CGIorganisations" -->
421 <!--TMPL_IF Name="step_3"-->
422 <!--TMPL_IF Name="step_1"-->
423 <div name="step_3" id="step3" class="content_hidden">
425 <div name="step_3" id="step3" class="content_visible">
428 <fieldset id="memberentry_identity">
429 <legend>Library Management</legend>
430 <!-- TMPL_IF NAME="mandatorycardnumber" -->
431 <label for="cardnumber" class="required">
433 <label for="cardnumber">
436 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
438 <!-- TMPL_IF NAME="mandatorybranchcode" -->
439 <label for="branchcode" class="required">
441 <label for="branchcode">
444 <!-- TMPL_VAR NAME="CGIbranch" -->
447 <!-- TMPL_IF NAME="catcodepopup" -->
448 <label for="categorycode">Category</label>
449 <!-- TMPL_VAR NAME="catcodepopup" -->
451 <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-->.</span>
452 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
456 <!-- TMPL_IF NAME="mandatorysort1" -->
457 <label for="sort1" class="required">
462 <!--TMPL_IF NAME="CGIsort1" -->
463 <!-- TMPL_VAR NAME="CGIsort1" -->
465 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
469 <!-- TMPL_IF NAME="mandatorysort2" -->
470 <label for="sort2" class="required">
475 <!--TMPL_IF NAME="CGIsort2" -->
476 <!-- TMPL_VAR NAME="CGIsort2" -->
478 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
482 <fieldset id="memberentry_subscription">
483 <legend>Library set-up</legend>
485 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
486 <label for="dateenrolled" class="required">
488 <label for="dateenrolled">
491 <input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateenrolled" -->" />
492 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
493 <script language="JavaScript" type="text/javascript">
496 inputField : "dateenrolled",
497 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
498 button : "dateenrolled_button"
504 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
505 <label for="dateexpiry" class="required">
507 <label for="dateexpiry">
510 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10"
511 onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
512 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
513 <script language="JavaScript" type="text/javascript">
516 inputField : "dateeexpiry",
517 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
518 button : "dateexpiry_button"
524 <!-- TMPL_IF NAME="mandatoryopacnote" -->
525 <label for="opacnote" class="required">
527 <label for="opacnote">
530 <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
533 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
534 <label for="borrowernotes" class="required">
536 <label for="borrowernotes">
539 <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
542 <fieldset id="memberentry_userid">
543 <legend>OPAC login</legend>
545 <!-- TMPL_IF NAME="mandatoryuserid" -->
546 <label for="userid" class="required">
551 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
554 <!-- TMPL_IF NAME="mandatorypassword" -->
555 <label for="password" class="required">
557 <label for="password">
560 <!--TMPL_IF NAME="opadd"-->
561 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
563 <!--TMPL_IF NAME="password"-->
564 <input type="text" id="password" name="password" size="20" value="****" />
566 <input type="text" id="password" name="password" size="20" value="" />
570 <!--this zones are not necessary in modif mode -->
571 <!-- TMPL_UNLESS NAME="opadd" -->
573 <!-- TMPL_LOOP NAME="flagloop" -->
575 <strong><!-- TMPL_VAR NAME="html" --></strong>
576 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" <!-- TMPL_VAR NAME="yes" --> /><label for="yes<!-- TMPL_VAR NAME="name" -->">Yes</label>
577 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" <!-- TMPL_VAR NAME="no" --> /><label for="no<!-- TMPL_VAR NAME="name" -->">No</label>
580 <!-- /TMPL_UNLESS -->
586 <!-- TMPL_IF NAME="opadd" -->
587 <input type="button" name="step4" onclick="return check_form_borrowers();unique();" value="Add member" />
589 <input type="button" name="step4" onclick="return check_form_borrowers();" value="Modify member" />
598 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
601 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->