1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha ›<!--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 --> Patron Management</title>
3 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <!-- TMPL_INCLUDE NAME="menus.inc" -->
8 <!-- TMPL_INCLUDE NAME="menu-members.inc" -->
9 <!-- TMPL_IF NAME="opadd" -->
11 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 -->
12 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
16 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" -->
20 <!-- TMPL_IF NAME="check_member" -->
22 <form name="form_double">
25 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
27 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
28 No, it is not
29 <!-- TMPL_IF NAME="checked"-->
30 <input type="checkbox" checked name="answernodouble" >
32 <input type="checkbox" name="answernodouble" >
39 <!-- TMPL_IF Name="nok" -->
41 <p>The following fields are wrong. Please fix it/them</p>
42 <!-- TMPL_IF NAME="ERROR_login_exist" -->
43 <p>login/password already exist</p>
45 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
46 <p>Cardnumber already in use</p>
48 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
49 Patron is too young or too old for this category
54 <!--TMPL_IF Name="opadd"-->
56 <a href="javascript:active(1)" class="tab_active" id="link1">Personal Information</a>
57 <a href="javascript:active(2)" class="tab_inactive" id="link2">Contacts</a>
58 <a href="javascript:active(3)" class="tab_inactive" id="link3">Library Management</a>
60 <script language="JavaScript" type="text/javascript">
61 function active(numlayer){
62 for (i=1; i <= 3 ; i++ ) {
63 var tab = document.getElementById('step'+i);
65 tab.setAttribute("class","content_visible");
66 var tabactive=document.getElementById('link'+i);
67 tabactive.removeAttribute("class");
68 tabactive.setAttribute("class","tab_active");
70 tab.setAttribute("class","content_hidden");
72 var tabactive=document.getElementById('link'+i);
73 tabactive.removeAttribute("class");
74 tabactive.setAttribute("class","tab_inactive");
83 <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
84 <!-- field always hidden in different form (1,2,3) -->
85 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->">
86 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->">
87 <input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->">
88 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->">
89 <input type="hidden" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->">
90 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->">
91 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
92 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
93 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->">
94 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
95 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert"><!-- TMPL_ELSE --><input type="hidden" name="op" value="save"><!-- /TMPL_IF -->
97 <!--TMPL_IF Name="step_1"-->
98 <div name="step_1" id="step1" class="content_visible">
99 <!--TMPL_IF Name="I"-->
100 <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-->
101 <fieldset id="memberentry_identity">
102 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
104 <!-- TMPL_IF NAME="female" -->
105 <input type="radio" name="sex" value="F" checked>Female
106 <input type="radio" name="sex" value="M">Male
108 <input type="radio" name="sex" value="F">Female
109 <input type="radio" name="sex" value="M" checked>Male
113 <!-- TMPL_IF NAME="mandatorytitle" -->
114 <label style="font-weight:bold">
119 <!-- TMPL_VAR NAME="borrotitlepopup" -->
123 <!-- TMPL_IF NAME="mandatorysurname" -->
124 <label style="font-weight:bold">
129 <!-- TMPL_IF NAME="uppercasesurnames" -->
130 <input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
132 <input style="text-transform:capitalize;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
136 <!-- TMPL_IF NAME="mandatoryfirstname" -->
137 <label style="font-weight:bold">
142 <input style="text-transform:capitalize;" type="text" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->">
145 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
146 <label style="font-weight:bold">
150 Date of birth</label>
151 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->">
152 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" />
153 <script language="JavaScript" type="text/javascript">
156 inputField : "dateofbirth",
157 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
158 button : "dateofbirth_button"
164 <!-- TMPL_IF NAME="mandatoryinitials" -->
165 <label style="font-weight:bold">
170 <input type="text" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->">
173 <!-- TMPL_IF NAME="mandatoryothernames" -->
174 <label style="font-weight:bold">
179 <input style="text-transform:uppercase;" type="text" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" >
182 <!--TMPL_IF Name="C"--> <p>
183 <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
184 <!-- TMPL_IF NAME="guarantorid"-->
186 <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
188 <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
190 <input name="guarantorinfo" type="text" size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
195 <legend>Main address</legend>
197 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
198 <label style="font-weight:bold">
202 Street number</label>
203 <input type="text" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->">
205 <!-- TMPL_IF NAME="road_cgipopup" -->
207 <!-- TMPL_IF NAME="mandatorystreettype" -->
208 <label style="font-weight:bold">
213 <!-- TMPL_VAR NAME="roadpopup" -->
217 <!-- TMPL_IF NAME="mandatoryaddress" -->
218 <label style="font-weight:bold">
223 <input type="text" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->">
226 <!-- TMPL_IF NAME="mandatoryaddress2" -->
227 <label style="font-weight:bold">
232 <input type="text" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->">
235 <!-- TMPL_IF NAME="mandatoryzipcode" -->
236 <label style="font-weight:bold">
241 <input type="text" maxlength="5" name="zipcode" size="5" value="<!-- TMPL_VAR NAME="zipcode" -->">
243 <!-- TMPL_IF NAME="city_cgipopup" -->
245 <!-- TMPL_IF NAME="mandatoryselect_city" -->
246 <label style="font-weight:bold">
250 Select a city</label>
251 <!-- TMPL_VAR NAME="citypopup" -->
255 <!-- TMPL_IF NAME="mandatorycity" -->
256 <label style="font-weight:bold">
261 <input style="text-transform:uppercase;" type="text" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->">
264 <fieldset id="memberentry_contact">
265 <legend>Contact</legend>
266 <!--TMPL_IF Name="C"-->
269 <!-- TMPL_IF NAME="mandatoryB_email" -->
270 <label style="font-weight:bold">
274 E-mail (home)</label>
275 <input type="text" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" />
276 <!-- TMPL_IF NAME="mandatoryB_phone" -->
277 <label style="font-weight:bold">
282 <input type="text" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
286 <!-- TMPL_IF NAME="mandatoryphone" -->
287 <label style="font-weight:bold">
292 <input type="text" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" >
295 <!-- TMPL_IF NAME="mandatoryphonepro" -->
296 <label style="font-weight:bold">
301 <input type="text" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" >
304 <!-- TMPL_IF NAME="mandatorymobile" -->
305 <label style="font-weight:bold">
310 <input type="text" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" >
313 <!-- TMPL_IF NAME="mandatoryemail" -->
314 <label style="font-weight:bold">
318 E-mail (home)</label>
319 <input type="text" name="email" value="<!-- TMPL_VAR NAME="email" -->" >
322 <!-- TMPL_IF NAME="mandatoryemailpro" -->
323 <label style="font-weight:bold">
327 E-mail (prof)</label>
328 <input type="text" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" >
331 <!-- TMPL_IF NAME="mandatoryfax" -->
332 <label style="font-weight:bold">
337 <input type="text" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" >
342 <!-- ************************ STEP_1 *********************** -->
344 <!--TMPL_IF Name="step_2"-->
345 <!--TMPL_IF Name="step_1"-->
346 <div name="step_2" id="step2" class="content_hidden">
348 <div name="step_2" id="step2" class="content_visible">
350 <fieldset id="memberentry_address">
351 <legend>Address</legend>
353 <legend>Alternate address</legend>
355 <!-- TMPL_IF NAME="mandatoryB_address" -->
356 <label style="font-weight:bold">
361 <input type="text" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->">
364 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
365 <label style="font-weight:bold">
370 <input type="text" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->">
373 <!-- TMPL_IF NAME="mandatoryB_city" -->
374 <label style="font-weight:bold" >
379 <input type="text" style="text-transform:uppercase;" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->">
383 <!-- TMPL_IF NAME="I" -->
384 <!-- TMPL_IF NAME="memberofinstution" -->
385 <fieldset id="memberentry_organisation">
386 <legend>Organisations</legend>
388 <!-- TMPL_IF NAME="mandatoryphone" -->
389 <label style="font-weight:bold">
393 Organisation(s)</label>
394 <!-- TMPL_VAR NAME="CGIorganisations" -->
402 <!--TMPL_IF Name="step_3"-->
403 <!--TMPL_IF Name="step_1"-->
404 <div name="step_3" id="step3" class="content_hidden">
406 <div name="step_3" id="step3" class="content_visible">
409 <fieldset id="memberentry_identity">
410 <legend>Library Management</legend>
411 <!-- TMPL_IF NAME="mandatorycardnumber" -->
412 <label style="font-weight:bold">
417 <input type="text" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->">
419 <!-- TMPL_IF NAME="mandatorybranchcode" -->
420 <label style="font-weight:bold">
425 <!-- TMPL_VAR NAME="CGIbranch" -->
428 <!-- TMPL_IF NAME="catcodepopup" -->
429 <label>Category</label>
430 <!-- TMPL_VAR NAME="catcodepopup" -->
432 <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>
433 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
437 <!-- TMPL_IF NAME="mandatorysort1" -->
438 <label style="font-weight:bold">
443 <!--TMPL_IF NAME="CGIsort1" -->
444 <!-- TMPL_VAR NAME="CGIsort1" -->
446 <input type="text" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" >
450 <!-- TMPL_IF NAME="mandatorysort2" -->
451 <label style="font-weight:bold">
456 <!--TMPL_IF NAME="CGIsort2" -->
457 <!-- TMPL_VAR NAME="CGIsort2" -->
459 <input type="text" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" >
463 <fieldset id="memberentry_subscription">
464 <legend>Library set-up</legend>
466 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
467 <label style="font-weight:bold">
472 <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" -->">
473 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" />
474 <script language="JavaScript" type="text/javascript">
477 inputField : "dateenrolled",
478 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
479 button : "dateenrolled_button"
485 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
486 <label style="font-weight:bold">
491 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10"
492 onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->">
493 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" />
494 <script language="JavaScript" type="text/javascript">
497 inputField : "dateeexpiry",
498 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
499 button : "dateexpiry_button"
505 <!-- TMPL_IF NAME="mandatoryopacnote" -->
506 <label style="font-weight:bold">
511 <textarea name="opacnote" cols="40" rows="2" ><!-- TMPL_VAR NAME="opacnote" --></textarea>
514 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
515 <label style="font-weight:bold">
520 <textarea name="borrowernotes" cols="40" rows="2" ><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
523 <fieldset id="memberentry_userid">
524 <legend>OPAC login</legend>
526 <!-- TMPL_IF NAME="mandatoryuserid" -->
527 <label style="font-weight:bold">
532 <input type="text" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->">
535 <!-- TMPL_IF NAME="mandatorypassword" -->
536 <label style="font-weight:bold">
541 <!--TMPL_IF NAME="opadd"-->
542 <input type="text" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->">
544 <!--TMPL_IF NAME="password"-->
545 <input type="text" name="password" size="20" value="****">
547 <input type="text" name="password" size="20" value="">
551 <!--this zones are not necessary in modif mode -->
552 <!-- TMPL_UNLESS NAME="opadd" -->
554 <!-- TMPL_LOOP NAME="flagloop" -->
556 <label class="borrowers_labels_title"><!-- TMPL_VAR NAME="html" --></label>
557 <input type="radio" name="<!-- TMPL_VAR NAME="name" -->" value="1" <!-- TMPL_VAR NAME="yes" -->>Yes
558 <input type="radio" name="<!-- TMPL_VAR NAME="name" -->" value="0" <!-- TMPL_VAR NAME="no" -->>No
561 <!-- /TMPL_UNLESS -->
567 <!-- TMPL_IF NAME="opadd" -->
568 <input type="button" name="step4" onclick="check_form_borrowers();unique();" value="Add member">
570 <input type="button" name="step4" onclick="check_form_borrowers();" value="Modify member">
575 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->