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" -->" />
165 <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" />
166 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
168 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
169 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /></li>
173 <!--TMPL_IF Name="C"--> <p>
174 <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
175 <!-- TMPL_IF NAME="guarantorid"-->
177 <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
179 <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
181 <input name="guarantorinfo" type="text" size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
185 <fieldset class="rows">
186 <legend>Main address</legend><ol>
188 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
189 <label for="streetnumber" class="required">
191 <label for="streetnumber">
193 Street number: </label>
194 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
196 <!-- TMPL_IF NAME="road_cgipopup" -->
198 <!-- TMPL_IF NAME="mandatorystreettype" -->
199 <label for="streettype" class="required">
201 <label for="streettype">
203 Street type: </label>
204 <!-- TMPL_VAR NAME="roadpopup" -->
208 <!-- TMPL_IF NAME="mandatoryaddress" -->
209 <label for="address" class="required">
211 <label for="address">
214 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
217 <!-- TMPL_IF NAME="mandatoryaddress2" -->
218 <label for="address2" class="required">
220 <label for="address2">
223 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
226 <!-- TMPL_IF NAME="mandatoryzipcode" -->
227 <label for="zipcode" class="required">
229 <label for="zipcode">
232 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
234 <!-- TMPL_IF NAME="city_cgipopup" -->
236 <!-- TMPL_IF NAME="mandatoryselect_city" -->
237 <label for="select_city" class="required">
239 <label for="select_city">
241 Select a city: </label>
242 <!-- TMPL_VAR NAME="citypopup" -->
246 <!-- TMPL_IF NAME="mandatorycity" -->
247 <label for="city" class="required">
252 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
256 <fieldset class="rows" id="memberentry_contact">
257 <legend>Contact</legend><ol>
258 <!--TMPL_IF Name="C"-->
261 <!-- TMPL_IF NAME="mandatoryB_email" -->
262 <label for="B_email" class="required">
264 <label for="B_email">
266 E-mail (home): </label>
267 <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" />
268 <!-- TMPL_IF NAME="mandatoryB_phone" -->
269 <label for="B_phone" class="required">
271 <label for="B_phone">
273 Phone (cell): </label>
274 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
278 <!-- TMPL_IF NAME="mandatoryphone" -->
279 <label for="phone" class="required">
283 Phone (home): </label>
284 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
287 <!-- TMPL_IF NAME="mandatoryphonepro" -->
288 <label for="phonepro" class="required">
290 <label for="phonepro">
292 Phone (prof): </label>
293 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
296 <!-- TMPL_IF NAME="mandatorymobile" -->
297 <label for="mobile" class="required">
301 Phone (cell): </label>
302 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
305 <!-- TMPL_IF NAME="mandatoryemail" -->
306 <label for="email" class="required">
310 E-mail (home): </label>
311 <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />
314 <!-- TMPL_IF NAME="mandatoryemailpro" -->
315 <label for="emailpro" class="required">
317 <label for="emailpro">
319 E-mail (prof): </label>
320 <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
323 <!-- TMPL_IF NAME="mandatoryfax" -->
324 <label for="fax" class="required">
329 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
335 <!-- ************************ STEP_1 *********************** -->
337 <!--TMPL_IF Name="step_2"-->
338 <!--TMPL_IF Name="step_1"-->
339 <div id="step2" class="content_hidden">
341 <div id="step2" class="content_visible">
344 <fieldset class="rows" id="memberentry_address">
345 <legend>Alternate address</legend><ol>
347 <!-- TMPL_IF NAME="mandatoryB_address" -->
348 <label for="B_address" class="required">
350 <label for="B_address">
353 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
356 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
357 <label for="B_zipcode" class="required">
359 <label for="B_zipcode">
362 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
365 <!-- TMPL_IF NAME="mandatoryB_city" -->
366 <label for="B_city" class="required" >
371 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
375 <!-- TMPL_IF NAME="I" -->
376 <!-- TMPL_IF NAME="memberofinstution" -->
377 <fieldset class="rows" id="memberentry_organisation">
378 <legend>Organisations</legend><ol>
380 <!-- TMPL_IF NAME="mandatoryphone" -->
381 <label for="organisations" class="required">
383 <label for="organisations">
385 Organisation(s): </label>
386 <!-- TMPL_VAR NAME="CGIorganisations" -->
395 <!--TMPL_IF Name="step_3"-->
396 <!--TMPL_IF Name="step_1"-->
397 <div id="step3" class="content_hidden">
399 <div id="step3" class="content_visible">
402 <fieldset class="rows" id="memberentry_library_management">
403 <legend>Library Management</legend><ol>
404 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
405 <label for="cardnumber" class="required">
407 <label for="cardnumber">
409 Card number: </label>
410 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
412 <!-- TMPL_IF NAME="mandatorybranchcode" -->
413 <label for="branchcode" class="required">
415 <label for="branchcode">
418 <!-- TMPL_VAR NAME="CGIbranch" -->
421 <!-- TMPL_IF NAME="catcodepopup" -->
422 <label for="categorycode">Category: </label>
423 <!-- TMPL_VAR NAME="catcodepopup" -->
425 <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>
426 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
430 <!-- TMPL_IF NAME="mandatorysort1" -->
431 <label for="sort1" class="required">
436 <!--TMPL_IF NAME="CGIsort1" -->
437 <!-- TMPL_VAR NAME="CGIsort1" -->
439 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
443 <!-- TMPL_IF NAME="mandatorysort2" -->
444 <label for="sort2" class="required">
449 <!--TMPL_IF NAME="CGIsort2" -->
450 <!-- TMPL_VAR NAME="CGIsort2" -->
452 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
457 <fieldset class="rows" id="memberentry_subscription">
458 <legend>Library set-up</legend><ol>
460 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
461 <label for="dateenrolled" class="required">
463 <label for="dateenrolled">
465 Arrival date: </label>
466 <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" -->" />
467 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
468 <script language="JavaScript" type="text/javascript">
471 inputField : "dateenrolled",
472 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
473 button : "dateenrolled_button"
479 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
480 <label for="dateexpiry" class="required">
482 <label for="dateexpiry">
484 Expiry date: </label>
485 <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" -->" />
486 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
487 <script language="JavaScript" type="text/javascript">
490 inputField : "dateexpiry",
491 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
492 button : "dateexpiry_button"
498 <!-- TMPL_IF NAME="mandatoryopacnote" -->
499 <label for="opacnote" class="required">
501 <label for="opacnote">
504 <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
507 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
508 <label for="borrowernotes" class="required">
510 <label for="borrowernotes">
512 Library note: </label>
513 <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
517 <fieldset class="rows" id="memberentry_userid">
518 <legend>OPAC login</legend><ol>
520 <!-- TMPL_IF NAME="mandatoryuserid" -->
521 <label for="userid" class="required">
526 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
529 <!-- TMPL_IF NAME="mandatorypassword" -->
530 <label for="password" class="required">
532 <label for="password">
535 <!--TMPL_IF NAME="opadd"-->
536 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
538 <!--TMPL_IF NAME="password"-->
539 <input type="text" id="password" name="password" size="20" value="****" />
541 <input type="text" id="password" name="password" size="20" value="" />
546 <!--this zones are not necessary in modif mode -->
547 <!-- TMPL_UNLESS NAME="opadd" -->
548 <fieldset class="rows">
549 <legend>Patron Account Flags</legend>
551 <!-- TMPL_LOOP NAME="flagloop" -->
552 <li><label class="radio" for="yes<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="html" -->: </label>
554 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
555 <!-- TMPL_IF NAME="yes" -->
556 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
558 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
561 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
562 <!-- TMPL_IF NAME="no" -->
563 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
565 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
572 <!-- /TMPL_UNLESS -->
575 <fieldset class="action">
576 <!-- TMPL_IF NAME="opadd" -->
577 <input type="button" name="step4" onclick="return check_form_borrowers(); unique();" value="Add Patron" />
579 <input type="button" name="step4" onclick="return check_form_borrowers();" value="Save Changes" />
588 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
591 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->