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" -->
11 <!-- TMPL_INCLUDE NAME="header.inc" -->
12 <!-- TMPL_INCLUDE NAME="members-search.inc" -->
14 <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" -->
15 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 -->
16 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 -->
17 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></div>
19 <div id="doc3" class="yui-t2">
26 <!-- TMPL_IF NAME="opadd" -->
28 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 -->
29 patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
33 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 -->
34 patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
37 <!-- TMPL_IF NAME="check_member" -->
39 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
42 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
44 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
45 No, it is not
46 <!-- TMPL_IF NAME="checked"-->
47 <input type="checkbox" checked="checked" name="answernodouble" >
49 <input type="checkbox" name="answernodouble" />
56 <!-- TMPL_IF Name="nok" -->
58 <p>The following fields are wrong. Please fix it/them</p>
59 <!-- TMPL_IF NAME="ERROR_login_exist" -->
60 <div id="ERROR_login_exist">login/password already exist</div>
62 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
63 <div id="ERROR_cardnumber">Cardnumber already in use</div>
65 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
66 <div id="ERROR_age_limitations">Patron is too young or too old for this category</div>
71 <!--TMPL_IF Name="allsteps"-->
75 <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
76 <!-- field always hidden in different form (1,2,3) -->
77 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
78 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
79 <input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" />
80 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
81 <input type="hidden" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
82 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
83 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
84 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
85 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
86 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
87 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
89 <!--TMPL_IF Name="step_1"-->
90 <div id="step1" class="content_visible">
91 <!--TMPL_IF Name="I"-->
92 <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-->
93 <fieldset class="rows" id="memberentry_identity">
94 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
97 <!-- TMPL_IF NAME="mandatorytitle" -->
98 <label for="btitle" class="required">
103 <!-- TMPL_VAR NAME="borrotitlepopup" -->
107 <!-- TMPL_IF NAME="mandatorysurname" -->
108 <label for="surname" class="required">
110 <label for="surname">
113 <!-- TMPL_IF NAME="uppercasesurnames" -->
114 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
116 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
120 <!-- TMPL_IF NAME="mandatoryfirstname" -->
121 <label for="firstname" class="required">
123 <label for="firstname">
126 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
129 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
130 <label for="dateofbirth" class="required">
132 <label for="dateofbirth">
134 Date of birth: </label>
135 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
136 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
137 <script language="JavaScript" type="text/javascript">
140 inputField : "dateofbirth",
141 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
142 button : "dateofbirth_button"
148 <!-- TMPL_IF NAME="mandatoryinitials" -->
149 <label for="initials" class="required">
151 <label for="initials">
154 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
157 <!-- TMPL_IF NAME="mandatoryothernames" -->
158 <label for="othernames" class="required">
160 <label for="othernames">
163 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
166 <!-- TMPL_IF NAME="female" -->
167 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
168 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
170 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
171 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
175 <!--TMPL_IF EXPR="I || C || P"--> <p>
176 <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
177 <!-- TMPL_IF NAME="guarantorid"-->
179 <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
181 <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
183 <input name="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" readonly="readonly" />
184 <input name="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" readonly="readonly" />
188 <fieldset class="rows">
189 <legend>Main address</legend><ol>
191 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
192 <label for="streetnumber" class="required">
194 <label for="streetnumber">
196 Street number: </label>
197 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
199 <!-- TMPL_IF NAME="road_cgipopup" -->
201 <!-- TMPL_IF NAME="mandatorystreettype" -->
202 <label for="streettype" class="required">
204 <label for="streettype">
206 Street type: </label>
207 <!-- TMPL_VAR NAME="roadpopup" -->
211 <!-- TMPL_IF NAME="mandatoryaddress" -->
212 <label for="address" class="required">
214 <label for="address">
217 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
220 <!-- TMPL_IF NAME="mandatoryaddress2" -->
221 <label for="address2" class="required">
223 <label for="address2">
226 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
229 <!-- TMPL_IF NAME="mandatoryzipcode" -->
230 <label for="zipcode" class="required">
232 <label for="zipcode">
235 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
237 <!-- TMPL_IF NAME="city_cgipopup" -->
239 <!-- TMPL_IF NAME="mandatoryselect_city" -->
240 <label for="select_city" class="required">
242 <label for="select_city">
244 Select a city: </label>
245 <!-- TMPL_VAR NAME="citypopup" -->
249 <!-- TMPL_IF NAME="mandatorycity" -->
250 <label for="city" class="required">
255 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
259 <fieldset class="rows" id="memberentry_contact">
260 <legend>Contact</legend><ol>
261 <!--TMPL_IF Name="C"-->
264 <!-- TMPL_IF NAME="mandatoryB_email" -->
265 <label for="B_email" class="required">
267 <label for="B_email">
269 E-mail (home): </label>
270 <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" />
271 <!-- TMPL_IF NAME="mandatoryB_phone" -->
272 <label for="B_phone" class="required">
274 <label for="B_phone">
276 Phone (cell): </label>
277 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
281 <!-- TMPL_IF NAME="mandatoryphone" -->
282 <label for="phone" class="required">
286 Phone (home): </label>
287 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
290 <!-- TMPL_IF NAME="mandatoryphonepro" -->
291 <label for="phonepro" class="required">
293 <label for="phonepro">
295 Phone (prof): </label>
296 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
299 <!-- TMPL_IF NAME="mandatorymobile" -->
300 <label for="mobile" class="required">
304 Phone (cell): </label>
305 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
308 <!-- TMPL_IF NAME="mandatoryemail" -->
309 <label for="email" class="required">
313 E-mail (home): </label>
314 <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />
317 <!-- TMPL_IF NAME="mandatoryemailpro" -->
318 <label for="emailpro" class="required">
320 <label for="emailpro">
322 E-mail (prof): </label>
323 <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
326 <!-- TMPL_IF NAME="mandatoryfax" -->
327 <label for="fax" class="required">
332 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
338 <!-- ************************ STEP_1 *********************** -->
340 <!--TMPL_IF Name="step_2"-->
341 <!--TMPL_IF Name="step_1"-->
342 <div id="step2" class="content_hidden">
344 <div id="step2" class="content_visible">
347 <fieldset class="rows" id="memberentry_address">
348 <legend>Alternate address</legend><ol>
350 <!-- TMPL_IF NAME="mandatoryB_address" -->
351 <label for="B_address" class="required">
353 <label for="B_address">
356 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
359 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
360 <label for="B_zipcode" class="required">
362 <label for="B_zipcode">
365 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
368 <!-- TMPL_IF NAME="mandatoryB_city" -->
369 <label for="B_city" class="required" >
374 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
378 <!-- TMPL_IF NAME="I" -->
379 <!-- TMPL_IF NAME="memberofinstution" -->
380 <fieldset class="rows" id="memberentry_organisation">
381 <legend>Organisations</legend><ol>
383 <!-- TMPL_IF NAME="mandatoryphone" -->
384 <label for="organisations" class="required">
386 <label for="organisations">
388 Organisation(s): </label>
389 <!-- TMPL_VAR NAME="CGIorganisations" -->
398 <!--TMPL_IF Name="step_3"-->
399 <!--TMPL_IF Name="step_1"-->
400 <div id="step3" class="content_hidden">
402 <div id="step3" class="content_visible">
405 <fieldset class="rows" id="memberentry_library_management">
406 <legend>Library Management</legend><ol>
407 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
408 <label for="cardnumber" class="required">
410 <label for="cardnumber">
412 Card number: </label>
413 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
415 <!-- TMPL_IF NAME="mandatorybranchcode" -->
416 <label for="branchcode" class="required">
418 <label for="branchcode">
421 <!-- TMPL_VAR NAME="CGIbranch" -->
424 <!-- TMPL_IF NAME="catcodepopup" -->
425 <label for="categorycode">Category: </label>
426 <!-- TMPL_VAR NAME="catcodepopup" -->
428 <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>
429 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
433 <!-- TMPL_IF NAME="mandatorysort1" -->
434 <label for="sort1" class="required">
439 <!--TMPL_IF NAME="CGIsort1" -->
440 <!-- TMPL_VAR NAME="CGIsort1" -->
442 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
446 <!-- TMPL_IF NAME="mandatorysort2" -->
447 <label for="sort2" class="required">
452 <!--TMPL_IF NAME="CGIsort2" -->
453 <!-- TMPL_VAR NAME="CGIsort2" -->
455 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
460 <fieldset class="rows" id="memberentry_subscription">
461 <legend>Library set-up</legend><ol>
463 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
464 <label for="dateenrolled" class="required">
466 <label for="dateenrolled">
468 Arrival date: </label>
469 <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" -->" />
470 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
471 <script language="JavaScript" type="text/javascript">
474 inputField : "dateenrolled",
475 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
476 button : "dateenrolled_button"
482 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
483 <label for="dateexpiry" class="required">
485 <label for="dateexpiry">
487 Expiry date: </label>
488 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
489 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
490 <script language="JavaScript" type="text/javascript">
493 inputField : "dateexpiry",
494 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
495 button : "dateexpiry_button"
501 <!-- TMPL_IF NAME="mandatoryopacnote" -->
502 <label for="opacnote" class="required">
504 <label for="opacnote">
507 <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
510 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
511 <label for="borrowernotes" class="required">
513 <label for="borrowernotes">
515 Library note: </label>
516 <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
520 <fieldset class="rows" id="memberentry_userid">
521 <legend>OPAC login</legend><ol>
523 <!-- TMPL_IF NAME="mandatoryuserid" -->
524 <label for="userid" class="required">
529 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
532 <!-- TMPL_IF NAME="mandatorypassword" -->
533 <label for="password" class="required">
535 <label for="password">
538 <!--TMPL_IF NAME="opadd"-->
539 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
541 <!--TMPL_IF NAME="password"-->
542 <input type="text" id="password" name="password" size="20" value="****" />
544 <input type="text" id="password" name="password" size="20" value="" />
549 <!--this zones are not necessary in modif mode -->
550 <!-- TMPL_UNLESS NAME="opadd" -->
551 <fieldset class="rows">
552 <legend>Patron Account Flags</legend>
554 <!-- TMPL_LOOP NAME="flagloop" -->
555 <li><label class="radio" for="yes<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="html" -->: </label>
557 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
558 <!-- TMPL_IF NAME="yes" -->
559 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
561 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
564 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
565 <!-- TMPL_IF NAME="no" -->
566 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
568 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
575 <!-- /TMPL_UNLESS -->
578 <fieldset class="action">
579 <!-- TMPL_IF NAME="opadd" -->
580 <input type="button" name="step4" onclick="return check_form_borrowers(); unique();" value="Add Patron" />
582 <input type="button" name="step4" onclick="return check_form_borrowers();" value="Save Changes" />
591 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
594 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->