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" -->
10 <style type="text/css">
14 border-bottom : 1px solid black;
39 padding: 1em 1em 0 1em;
40 list-style-type: none;
47 list-style-type: none;
61 ol.radio label.radio {
69 <!-- TMPL_INCLUDE NAME="header.inc" -->
70 <!-- TMPL_INCLUDE NAME="members-search.inc" -->
72 <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" -->
73 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 -->
74 patron <!-- 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> › 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 -->
75 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></div>
77 <div id="doc3" class="yui-t2">
84 <!-- TMPL_IF NAME="opadd" -->
86 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 -->
87 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
91 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 -->
92 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
95 <!-- TMPL_IF NAME="check_member" -->
97 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
100 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
102 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
103 No, it is not
104 <!-- TMPL_IF NAME="checked"-->
105 <input type="checkbox" checked="checked" name="answernodouble" >
107 <input type="checkbox" name="answernodouble" />
114 <!-- TMPL_IF Name="nok" -->
116 <p>The following fields are wrong. Please fix it/them</p>
117 <!-- TMPL_IF NAME="ERROR_login_exist" -->
118 <div id="ERROR_login_exist">login/password already exist</div>
120 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
121 <div id="ERROR_cardnumber">Cardnumber already in use</div>
123 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
124 <div id="ERROR_age_limitations">Patron is too young or too old for this category</div>
129 <!--TMPL_IF Name="allsteps"-->
133 <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
134 <!-- field always hidden in different form (1,2,3) -->
135 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
136 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
137 <input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" />
138 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
139 <input type="hidden" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
140 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
141 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
142 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
143 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
144 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
145 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
147 <!--TMPL_IF Name="step_1"-->
148 <div id="step1" class="content_visible">
149 <!--TMPL_IF Name="I"-->
150 <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-->
151 <fieldset id="memberentry_identity">
152 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
155 <!-- TMPL_IF NAME="mandatorytitle" -->
156 <label for="btitle" class="required">
161 <!-- TMPL_VAR NAME="borrotitlepopup" -->
165 <!-- TMPL_IF NAME="mandatorysurname" -->
166 <label for="surname" class="required">
168 <label for="surname">
171 <!-- TMPL_IF NAME="uppercasesurnames" -->
172 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
174 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
178 <!-- TMPL_IF NAME="mandatoryfirstname" -->
179 <label for="firstname" class="required">
181 <label for="firstname">
184 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
187 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
188 <label for="dateofbirth" class="required">
190 <label for="dateofbirth">
192 Date of birth: </label>
193 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
194 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
195 <script language="JavaScript" type="text/javascript">
198 inputField : "dateofbirth",
199 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
200 button : "dateofbirth_button"
206 <!-- TMPL_IF NAME="mandatoryinitials" -->
207 <label for="initials" class="required">
209 <label for="initials">
212 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
215 <!-- TMPL_IF NAME="mandatoryothernames" -->
216 <label for="othernames" class="required">
218 <label for="othernames">
221 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
223 <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" />
224 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
226 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
227 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /></li>
231 <!--TMPL_IF Name="C"--> <p>
232 <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
233 <!-- TMPL_IF NAME="guarantorid"-->
235 <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
237 <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
239 <input name="guarantorinfo" type="text" size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
244 <legend>Main address</legend><ol>
246 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
247 <label for="streetnumber" class="required">
249 <label for="streetnumber">
251 Street number: </label>
252 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
254 <!-- TMPL_IF NAME="road_cgipopup" -->
256 <!-- TMPL_IF NAME="mandatorystreettype" -->
257 <label for="streettype" class="required">
259 <label for="streettype">
261 Street type: </label>
262 <!-- TMPL_VAR NAME="roadpopup" -->
266 <!-- TMPL_IF NAME="mandatoryaddress" -->
267 <label for="address" class="required">
269 <label for="address">
272 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
275 <!-- TMPL_IF NAME="mandatoryaddress2" -->
276 <label for="address2" class="required">
278 <label for="address2">
281 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
284 <!-- TMPL_IF NAME="mandatoryzipcode" -->
285 <label for="zipcode" class="required">
287 <label for="zipcode">
290 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
292 <!-- TMPL_IF NAME="city_cgipopup" -->
294 <!-- TMPL_IF NAME="mandatoryselect_city" -->
295 <label for="select_city" class="required">
297 <label for="select_city">
299 Select a city: </label>
300 <!-- TMPL_VAR NAME="citypopup" -->
304 <!-- TMPL_IF NAME="mandatorycity" -->
305 <label for="city" class="required">
310 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
314 <fieldset id="memberentry_contact">
315 <legend>Contact</legend><ol>
316 <!--TMPL_IF Name="C"-->
319 <!-- TMPL_IF NAME="mandatoryB_email" -->
320 <label for="B_email" class="required">
322 <label for="B_email">
324 E-mail (home): </label>
325 <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" />
326 <!-- TMPL_IF NAME="mandatoryB_phone" -->
327 <label for="B_phone" class="required">
329 <label for="B_phone">
331 Phone (cell): </label>
332 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
336 <!-- TMPL_IF NAME="mandatoryphone" -->
337 <label for="phone" class="required">
341 Phone (home): </label>
342 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
345 <!-- TMPL_IF NAME="mandatoryphonepro" -->
346 <label for="phonepro" class="required">
348 <label for="phonepro">
350 Phone (prof): </label>
351 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
354 <!-- TMPL_IF NAME="mandatorymobile" -->
355 <label for="mobile" class="required">
359 Phone (cell): </label>
360 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
363 <!-- TMPL_IF NAME="mandatoryemail" -->
364 <label for="email" class="required">
368 E-mail (home): </label>
369 <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />
372 <!-- TMPL_IF NAME="mandatoryemailpro" -->
373 <label for="emailpro" class="required">
375 <label for="emailpro">
377 E-mail (prof): </label>
378 <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
381 <!-- TMPL_IF NAME="mandatoryfax" -->
382 <label for="fax" class="required">
387 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
393 <!-- ************************ STEP_1 *********************** -->
395 <!--TMPL_IF Name="step_2"-->
396 <!--TMPL_IF Name="step_1"-->
397 <div id="step2" class="content_hidden">
399 <div id="step2" class="content_visible">
402 <fieldset id="memberentry_address">
403 <legend>Alternate address</legend><ol>
405 <!-- TMPL_IF NAME="mandatoryB_address" -->
406 <label for="B_address" class="required">
408 <label for="B_address">
411 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
414 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
415 <label for="B_zipcode" class="required">
417 <label for="B_zipcode">
420 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
423 <!-- TMPL_IF NAME="mandatoryB_city" -->
424 <label for="B_city" class="required" >
429 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
433 <!-- TMPL_IF NAME="I" -->
434 <!-- TMPL_IF NAME="memberofinstution" -->
435 <fieldset id="memberentry_organisation">
436 <legend>Organisations</legend><ol>
438 <!-- TMPL_IF NAME="mandatoryphone" -->
439 <label for="organisations" class="required">
441 <label for="organisations">
443 Organisation(s): </label>
444 <!-- TMPL_VAR NAME="CGIorganisations" -->
453 <!--TMPL_IF Name="step_3"-->
454 <!--TMPL_IF Name="step_1"-->
455 <div id="step3" class="content_hidden">
457 <div id="step3" class="content_visible">
460 <fieldset id="memberentry_library_management">
461 <legend>Library Management</legend><ol>
462 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
463 <label for="cardnumber" class="required">
465 <label for="cardnumber">
467 Card number: </label>
468 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
470 <!-- TMPL_IF NAME="mandatorybranchcode" -->
471 <label for="branchcode" class="required">
473 <label for="branchcode">
476 <!-- TMPL_VAR NAME="CGIbranch" -->
479 <!-- TMPL_IF NAME="catcodepopup" -->
480 <label for="categorycode">Category: </label>
481 <!-- TMPL_VAR NAME="catcodepopup" -->
483 <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>
484 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
488 <!-- TMPL_IF NAME="mandatorysort1" -->
489 <label for="sort1" class="required">
494 <!--TMPL_IF NAME="CGIsort1" -->
495 <!-- TMPL_VAR NAME="CGIsort1" -->
497 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
501 <!-- TMPL_IF NAME="mandatorysort2" -->
502 <label for="sort2" class="required">
507 <!--TMPL_IF NAME="CGIsort2" -->
508 <!-- TMPL_VAR NAME="CGIsort2" -->
510 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
515 <fieldset id="memberentry_subscription">
516 <legend>Library set-up</legend><ol>
518 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
519 <label for="dateenrolled" class="required">
521 <label for="dateenrolled">
523 Arrival date: </label>
524 <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" -->" />
525 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
526 <script language="JavaScript" type="text/javascript">
529 inputField : "dateenrolled",
530 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
531 button : "dateenrolled_button"
537 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
538 <label for="dateexpiry" class="required">
540 <label for="dateexpiry">
542 Expiry date: </label>
543 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10"
544 onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
545 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
546 <script language="JavaScript" type="text/javascript">
549 inputField : "dateeexpiry",
550 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
551 button : "dateexpiry_button"
557 <!-- TMPL_IF NAME="mandatoryopacnote" -->
558 <label for="opacnote" class="required">
560 <label for="opacnote">
563 <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
566 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
567 <label for="borrowernotes" class="required">
569 <label for="borrowernotes">
571 Library note: </label>
572 <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
576 <fieldset id="memberentry_userid">
577 <legend>OPAC login</legend><ol>
579 <!-- TMPL_IF NAME="mandatoryuserid" -->
580 <label for="userid" class="required">
585 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
588 <!-- TMPL_IF NAME="mandatorypassword" -->
589 <label for="password" class="required">
591 <label for="password">
594 <!--TMPL_IF NAME="opadd"-->
595 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
597 <!--TMPL_IF NAME="password"-->
598 <input type="text" id="password" name="password" size="20" value="****" />
600 <input type="text" id="password" name="password" size="20" value="" />
605 <!--this zones are not necessary in modif mode -->
606 <!-- TMPL_UNLESS NAME="opadd" -->
608 <legend>Patron Account Flags</legend>
610 <!-- TMPL_LOOP NAME="flagloop" -->
611 <li><label class="radio" for="yes<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="html" -->: </label>
613 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
614 <!-- TMPL_IF NAME="yes" -->
615 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
617 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
620 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
621 <!-- TMPL_IF NAME="no" -->
622 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
624 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
631 <!-- /TMPL_UNLESS -->
635 <!-- TMPL_IF NAME="opadd" -->
636 <input type="button" name="step4" onclick="return check_form_borrowers(); unique();" value="Add member" />
638 <input type="button" name="step4" onclick="return check_form_borrowers();" value="Modify member" />
647 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
650 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->