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;
38 padding: 1em 1em 0 1em;
39 list-style-type: none;
46 list-style-type: none;
60 ol.radio label.radio {
70 padding : 1em 0 .3em 0;
75 <!-- TMPL_INCLUDE NAME="header.inc" -->
76 <!-- TMPL_INCLUDE NAME="members-search.inc" -->
78 <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" -->
79 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 -->
80 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 -->
81 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></div>
83 <div id="doc3" class="yui-t2">
90 <!-- TMPL_IF NAME="opadd" -->
92 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 -->
93 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
97 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 -->
98 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
101 <!-- TMPL_IF NAME="check_member" -->
103 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
106 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
108 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
109 No, it is not
110 <!-- TMPL_IF NAME="checked"-->
111 <input type="checkbox" checked="checked" name="answernodouble" >
113 <input type="checkbox" name="answernodouble" />
120 <!-- TMPL_IF Name="nok" -->
122 <p>The following fields are wrong. Please fix it/them</p>
123 <!-- TMPL_IF NAME="ERROR_login_exist" -->
124 <div id="ERROR_login_exist">login/password already exist</div>
126 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
127 <div id="ERROR_cardnumber">Cardnumber already in use</div>
129 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
130 <div id="ERROR_age_limitations">Patron is too young or too old for this category</div>
135 <!--TMPL_IF Name="allsteps"-->
139 <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
140 <!-- field always hidden in different form (1,2,3) -->
141 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
142 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
143 <input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" />
144 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
145 <input type="hidden" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
146 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
147 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
148 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
149 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
150 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
151 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
153 <!--TMPL_IF Name="step_1"-->
154 <div id="step1" class="content_visible">
155 <!--TMPL_IF Name="I"-->
156 <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-->
157 <fieldset id="memberentry_identity">
158 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
161 <!-- TMPL_IF NAME="mandatorytitle" -->
162 <label for="btitle" class="required">
167 <!-- TMPL_VAR NAME="borrotitlepopup" -->
171 <!-- TMPL_IF NAME="mandatorysurname" -->
172 <label for="surname" class="required">
174 <label for="surname">
177 <!-- TMPL_IF NAME="uppercasesurnames" -->
178 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
180 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
184 <!-- TMPL_IF NAME="mandatoryfirstname" -->
185 <label for="firstname" class="required">
187 <label for="firstname">
190 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
193 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
194 <label for="dateofbirth" class="required">
196 <label for="dateofbirth">
198 Date of birth: </label>
199 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
200 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
201 <script language="JavaScript" type="text/javascript">
204 inputField : "dateofbirth",
205 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
206 button : "dateofbirth_button"
212 <!-- TMPL_IF NAME="mandatoryinitials" -->
213 <label for="initials" class="required">
215 <label for="initials">
218 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
221 <!-- TMPL_IF NAME="mandatoryothernames" -->
222 <label for="othernames" class="required">
224 <label for="othernames">
227 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
229 <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" />
230 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
232 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
233 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /></li>
237 <!--TMPL_IF Name="C"--> <p>
238 <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
239 <!-- TMPL_IF NAME="guarantorid"-->
241 <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
243 <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
245 <input name="guarantorinfo" type="text" size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
250 <legend>Main address</legend><ol>
252 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
253 <label for="streetnumber" class="required">
255 <label for="streetnumber">
257 Street number: </label>
258 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
260 <!-- TMPL_IF NAME="road_cgipopup" -->
262 <!-- TMPL_IF NAME="mandatorystreettype" -->
263 <label for="streettype" class="required">
265 <label for="streettype">
267 Street type: </label>
268 <!-- TMPL_VAR NAME="roadpopup" -->
272 <!-- TMPL_IF NAME="mandatoryaddress" -->
273 <label for="address" class="required">
275 <label for="address">
278 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
281 <!-- TMPL_IF NAME="mandatoryaddress2" -->
282 <label for="address2" class="required">
284 <label for="address2">
287 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
290 <!-- TMPL_IF NAME="mandatoryzipcode" -->
291 <label for="zipcode" class="required">
293 <label for="zipcode">
296 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
298 <!-- TMPL_IF NAME="city_cgipopup" -->
300 <!-- TMPL_IF NAME="mandatoryselect_city" -->
301 <label for="select_city" class="required">
303 <label for="select_city">
305 Select a city: </label>
306 <!-- TMPL_VAR NAME="citypopup" -->
310 <!-- TMPL_IF NAME="mandatorycity" -->
311 <label for="city" class="required">
316 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
320 <fieldset id="memberentry_contact">
321 <legend>Contact</legend><ol>
322 <!--TMPL_IF Name="C"-->
325 <!-- TMPL_IF NAME="mandatoryB_email" -->
326 <label for="B_email" class="required">
328 <label for="B_email">
330 E-mail (home): </label>
331 <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" />
332 <!-- TMPL_IF NAME="mandatoryB_phone" -->
333 <label for="B_phone" class="required">
335 <label for="B_phone">
337 Phone (cell): </label>
338 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
342 <!-- TMPL_IF NAME="mandatoryphone" -->
343 <label for="phone" class="required">
347 Phone (home): </label>
348 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
351 <!-- TMPL_IF NAME="mandatoryphonepro" -->
352 <label for="phonepro" class="required">
354 <label for="phonepro">
356 Phone (prof): </label>
357 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
360 <!-- TMPL_IF NAME="mandatorymobile" -->
361 <label for="mobile" class="required">
365 Phone (cell): </label>
366 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
369 <!-- TMPL_IF NAME="mandatoryemail" -->
370 <label for="email" class="required">
374 E-mail (home): </label>
375 <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />
378 <!-- TMPL_IF NAME="mandatoryemailpro" -->
379 <label for="emailpro" class="required">
381 <label for="emailpro">
383 E-mail (prof): </label>
384 <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
387 <!-- TMPL_IF NAME="mandatoryfax" -->
388 <label for="fax" class="required">
393 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
399 <!-- ************************ STEP_1 *********************** -->
401 <!--TMPL_IF Name="step_2"-->
402 <!--TMPL_IF Name="step_1"-->
403 <div id="step2" class="content_hidden">
405 <div id="step2" class="content_visible">
408 <fieldset id="memberentry_address">
409 <legend>Alternate address</legend><ol>
411 <!-- TMPL_IF NAME="mandatoryB_address" -->
412 <label for="B_address" class="required">
414 <label for="B_address">
417 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
420 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
421 <label for="B_zipcode" class="required">
423 <label for="B_zipcode">
426 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
429 <!-- TMPL_IF NAME="mandatoryB_city" -->
430 <label for="B_city" class="required" >
435 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
439 <!-- TMPL_IF NAME="I" -->
440 <!-- TMPL_IF NAME="memberofinstution" -->
441 <fieldset id="memberentry_organisation">
442 <legend>Organisations</legend><ol>
444 <!-- TMPL_IF NAME="mandatoryphone" -->
445 <label for="organisations" class="required">
447 <label for="organisations">
449 Organisation(s): </label>
450 <!-- TMPL_VAR NAME="CGIorganisations" -->
459 <!--TMPL_IF Name="step_3"-->
460 <!--TMPL_IF Name="step_1"-->
461 <div id="step3" class="content_hidden">
463 <div id="step3" class="content_visible">
466 <fieldset id="memberentry_library_management">
467 <legend>Library Management</legend><ol>
468 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
469 <label for="cardnumber" class="required">
471 <label for="cardnumber">
473 Card number: </label>
474 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
476 <!-- TMPL_IF NAME="mandatorybranchcode" -->
477 <label for="branchcode" class="required">
479 <label for="branchcode">
482 <!-- TMPL_VAR NAME="CGIbranch" -->
485 <!-- TMPL_IF NAME="catcodepopup" -->
486 <label for="categorycode">Category: </label>
487 <!-- TMPL_VAR NAME="catcodepopup" -->
489 <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>
490 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
494 <!-- TMPL_IF NAME="mandatorysort1" -->
495 <label for="sort1" class="required">
500 <!--TMPL_IF NAME="CGIsort1" -->
501 <!-- TMPL_VAR NAME="CGIsort1" -->
503 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
507 <!-- TMPL_IF NAME="mandatorysort2" -->
508 <label for="sort2" class="required">
513 <!--TMPL_IF NAME="CGIsort2" -->
514 <!-- TMPL_VAR NAME="CGIsort2" -->
516 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
521 <fieldset id="memberentry_subscription">
522 <legend>Library set-up</legend><ol>
524 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
525 <label for="dateenrolled" class="required">
527 <label for="dateenrolled">
529 Arrival date: </label>
530 <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" -->" />
531 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
532 <script language="JavaScript" type="text/javascript">
535 inputField : "dateenrolled",
536 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
537 button : "dateenrolled_button"
543 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
544 <label for="dateexpiry" class="required">
546 <label for="dateexpiry">
548 Expiry date: </label>
549 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10"
550 onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
551 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
552 <script language="JavaScript" type="text/javascript">
555 inputField : "dateeexpiry",
556 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
557 button : "dateexpiry_button"
563 <!-- TMPL_IF NAME="mandatoryopacnote" -->
564 <label for="opacnote" class="required">
566 <label for="opacnote">
569 <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
572 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
573 <label for="borrowernotes" class="required">
575 <label for="borrowernotes">
577 Library note: </label>
578 <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
582 <fieldset id="memberentry_userid">
583 <legend>OPAC login</legend><ol>
585 <!-- TMPL_IF NAME="mandatoryuserid" -->
586 <label for="userid" class="required">
591 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
594 <!-- TMPL_IF NAME="mandatorypassword" -->
595 <label for="password" class="required">
597 <label for="password">
600 <!--TMPL_IF NAME="opadd"-->
601 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
603 <!--TMPL_IF NAME="password"-->
604 <input type="text" id="password" name="password" size="20" value="****" />
606 <input type="text" id="password" name="password" size="20" value="" />
611 <!--this zones are not necessary in modif mode -->
612 <!-- TMPL_UNLESS NAME="opadd" -->
614 <legend>Patron Account Flags</legend>
616 <!-- TMPL_LOOP NAME="flagloop" -->
617 <li><label class="radio" for="yes<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="html" -->: </label>
619 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
620 <!-- TMPL_IF NAME="yes" -->
621 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
623 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
626 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
627 <!-- TMPL_IF NAME="no" -->
628 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
630 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
637 <!-- /TMPL_UNLESS -->
640 <fieldset class="action">
641 <!-- TMPL_IF NAME="opadd" -->
642 <input type="button" name="step4" onclick="return check_form_borrowers(); unique();" value="Add member" />
644 <input type="button" name="step4" onclick="return check_form_borrowers();" value="Modify member" />
653 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
656 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->