1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Patrons ›
3 <!-- TMPL_IF NAME="opadd" --> Add<!-- TMPL_ELSE --> Modify<!--/TMPL_IF--> <!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --><!--TMPL_UNLESS Name="opadd"--> <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!--/TMPL_UNLESS--></title>
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
6 <script type="text/JavaScript" language="JavaScript">
8 $(document).ready(function() {
9 $("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
10 $("#guarantordelete").click(function() {
11 $("#contact-details").hide().find('a').remove();
12 $("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
13 $("#contactname, #contactfirstname")
14 .each(function () { this.type = 'text' })
15 .parent().find('span').remove();
16 $("#guarantorsearch").val("Set to Patron");
18 $("#select_city").change(function(){
19 var myRegEx=new RegExp(/(.*)\|(.*)/);
20 document.form.select_city.value.match(myRegEx);
21 document.form.zipcode.value=RegExp.$1;
22 document.form.city.value=RegExp.$2;
26 function clear_entry(node) {
27 var original = node.parentNode.parentNode;
28 $("input[type=text]", original).attr('value', '');
29 $("select", original).attr('value', '');
32 function clone_entry(node) {
33 var original = node.parentNode.parentNode;
34 var clone = original.cloneNode(true);
35 var newId = 50 + parseInt(Math.random() * 100000);
36 $("input", clone).attr('id', function() {
37 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
39 $("input", clone).attr('name', function() {
40 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
42 $("select", clone).attr('id', function() {
43 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
45 $("select", clone).attr('name', function() {
46 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
48 $("input#patron_attr_" + newId, clone).attr('value','');
49 $("select#patron_attr_" + newId, clone).attr('value','');
50 original.parentNode.insertBefore(clone, original.nextSibling);
52 var MSG_SEPARATOR = _("Separator must be / in field ");
53 var MSG_INCORRECT_DAY = _("Invalid day entered in field ");
54 var MSG_INCORRECT_MONTH = _("Invalid month entered in field ");
55 var MSG_INCORRECT_YEAR = _("Invalid year entered in field ");
56 var MSG_DUPLICATE_PATRON = _("Warning: Duplicate patron");
57 var MSG_DUPLICATE_ORGANIZATION = _("Warning: Duplicate organization");
58 var MSG_LATE_EXPIRY = _("Warning: Expiration date falls before enrollment date");
59 var MSG_MISSING_MANDATORY = _("The following fields are mandatory:");
60 var MSG_DUPLICATE_SUSPICION = _("Please confirm whether this is a duplicate patron");
63 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
66 <!-- TMPL_INCLUDE NAME="header.inc" -->
67 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
69 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
70 <!-- TMPL_IF NAME="opadd" -->
71 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
72 <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
74 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> › <strong>Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
75 </strong><!-- /TMPL_IF --></div>
77 <!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
84 <!-- TMPL_IF NAME="opadd" -->
86 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --> <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
90 Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
91 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
95 <!-- TMPL_IF NAME="check_member" -->
96 <div class="dialog alert">
97 <h3>Duplicate patron record?</h3>
98 <p><a class="popup" href="javascript:Dopop('moremember.pl?print=brief&borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >View existing record</a></p>
99 <form action="/cgi-bin/koha/members/memberentry.pl" method="get"><input type="hidden" name="op" value="modify" /><input type="hidden" name="borrowernumber" value="<!--TMPL_VAR NAME="check_member"-->" /><input type="hidden" name="category_type" value="<!--TMPL_VAR NAME="check_categorytype"-->" /><input class="edit" type="submit" value="It is a duplicate. Edit existing record" /></form>
101 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
102 <input type="hidden" name="nodouble" value="1" />
103 <input class="new" type="submit" value="Not a duplicate. Save as new record" />
107 <!-- TMPL_IF Name="debug" -->
109 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
112 <!-- TMPL_IF Name="nok" -->
113 <div class="dialog alert">
114 <p>The following fields are wrong. Please fix them.</p>
116 <!-- TMPL_IF NAME="ERROR_login_exist" -->
117 <li id="ERROR_login_exist">Login/password already exists.</li>
119 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
120 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
122 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
123 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
124 Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
126 <!-- TMPL_IF NAME="ERROR_branch" -->
127 <li id="ERROR_branch">Library is invalid.</li>
129 <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
130 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
132 <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
133 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
135 <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
136 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
138 <!-- TMPL_IF NAME="ERROR_short_password" -->
139 <li id="ERROR_short_password">Password must be at least <!-- TMPL_VAR NAME="minPasswordLength" --> characters long.</li>
141 <!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
142 <li id="ERROR_extended_unique_id_failed">The attribute value
143 <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
150 <!-- TMPL_UNLESS NAME="check_member" --><form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
151 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" /> <!-- /TMPL_UNLESS -->
152 <!-- field always hidden in different form (1,2,3) -->
153 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
154 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
155 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
156 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
157 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
158 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
159 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
160 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
161 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
163 <!--TMPL_IF Name="step_1"-->
164 <fieldset class="rows" id="memberentry_identity">
165 <legend><!--TMPL_IF Name="I"-->Organization <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
167 <!-- TMPL_UNLESS name="I" -->
168 <!-- TMPL_IF NAME="title_cgipopup" -->
170 <!-- TMPL_IF NAME="mandatorytitle" -->
171 <label for="btitle" class="required">
176 <!-- TMPL_VAR NAME="borrotitlepopup" -->
177 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
180 <!-- /TMPL_UNLESS -->
182 <!-- TMPL_IF NAME="mandatorysurname" -->
183 <label for="surname" class="required">
185 <label for="surname">
188 <!-- TMPL_IF NAME="uppercasesurnames" -->
189 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
191 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
193 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
195 <!-- TMPL_UNLESS name="I" -->
197 <!-- TMPL_IF NAME="mandatoryfirstname" -->
198 <label for="firstname" class="required">
200 <label for="firstname">
203 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
204 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
207 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
208 <label for="dateofbirth" class="required">
210 <label for="dateofbirth">
212 Date of birth: </label>
214 <!-- TMPL_IF NAME="metric" -->
215 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
217 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
220 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
221 <script language="JavaScript" type="text/javascript">
224 inputField : "dateofbirth",
225 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
226 button : "dateofbirth_button"
230 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
231 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
232 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
235 <!-- TMPL_IF NAME="mandatoryinitials" -->
236 <label for="initials" class="required">
238 <label for="initials">
241 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
242 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
244 <!-- /TMPL_UNLESS -->
246 <!-- TMPL_IF NAME="mandatoryothernames" -->
247 <label for="othernames" class="required">
249 <label for="othernames">
252 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
253 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
254 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
256 <!--TMPL_UNLESS Name="I"-->
259 <!-- TMPL_IF NAME="female" -->
260 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
262 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
264 <!-- TMPL_IF NAME="male" -->
265 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
267 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
269 <!-- TMPL_IF NAME="none" -->
270 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
272 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
279 <!--TMPL_IF Name="showguarantor"--><input type="hidden" id="guarantorid" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
280 <fieldset class="rows">
281 <legend>Guarantor Information</legend>
283 <!--TMPL_IF Name="P"-->
284 <!-- TMPL_IF NAME="guarantorid" -->
285 <li id="contact-details">
287 <li id="contact-details" style="display: none">
289 <span class="label">Organization #:</span> <!-- TMPL_IF NAME="guarantorid" --> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorid" -->" target="blank"><!-- TMPL_VAR NAME="guarantorid" --></a><!-- /TMPL_IF -->
292 <label for="contactname">Organization name: </label>
293 <!-- TMPL_IF NAME="guarantorid" -->
294 <span><!-- TMPL_VAR NAME="contactname" --></span>
295 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
297 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
301 <!-- TMPL_IF NAME="C" -->
302 <!-- TMPL_IF NAME="guarantorid" -->
303 <li id="contact-details">
305 <li id="contact-details" style="display: none">
307 <span class="label">Patron #:</span> <!-- TMPL_IF NAME="guarantorid" --> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorid" -->" target="blank"><!-- TMPL_VAR NAME="guarantorid" --></a><!-- /TMPL_IF -->
310 <label for="contactname">Surname: </label>
311 <!-- TMPL_IF NAME="guarantorid" -->
312 <span><!-- TMPL_VAR NAME="contactname" --></span>
313 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
315 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
319 <label for="contactfirstname">First name: </label>
320 <!-- TMPL_IF NAME="guarantorid" -->
321 <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
322 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
324 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
327 <!-- TMPL_IF name="relshiploop" -->
329 <label for="relationship">Relationship: </label>
330 <select name="relationship" id="relationship" >
331 <!-- TMPL_LOOP name="relshiploop" -->
332 <!-- TMPL_IF name="selected" -->
333 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
335 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
344 <span class="label"> </span>
345 <!-- TMPL_IF NAME="guarantorid" -->
346 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl?category_type=<!-- TMPL_VAR NAME="category_type" -->');" />
348 <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl?category_type=<!-- TMPL_VAR NAME="category_type" -->');" />
350 <input id="guarantordelete" type="button" value="Delete" />
356 <fieldset class="rows">
357 <legend>Main address</legend><ol>
359 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
360 <label for="streetnumber" class="required">
362 <label for="streetnumber">
364 Street number: </label>
365 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
366 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
368 <!-- TMPL_IF NAME="road_cgipopup" -->
370 <!-- TMPL_IF NAME="mandatorystreettype" -->
371 <label for="streettype" class="required">
373 <label for="streettype">
375 Street type: </label>
376 <!-- TMPL_VAR NAME="roadpopup" -->
377 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
381 <!-- TMPL_IF NAME="mandatoryaddress" -->
382 <label for="address" class="required">
384 <label for="address">
387 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
388 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
391 <!-- TMPL_IF NAME="mandatoryaddress2" -->
392 <label for="address2" class="required">
394 <label for="address2">
397 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
398 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
401 <!-- TMPL_IF NAME="mandatorycity" -->
402 <label for="city" class="required">
406 City, State: </label>
408 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
409 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong>
410 <select id="select_city" name="select_city">
411 <!-- TMPL_LOOP NAME="city_loop" -->
412 <!-- TMPL_IF NAME="selected" -->
413 <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->" selected="selected">
415 <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->">
417 <!-- TMPL_VAR NAME="city_name" --> <!-- TMPL_VAR NAME="city_zipcode" -->
422 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
425 <!-- TMPL_IF NAME="mandatoryzipcode" -->
426 <label for="zipcode" class="required">
428 <label for="zipcode">
430 Zip/Postal code: </label>
431 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
432 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
436 <!-- TMPL_IF NAME="mandatorycountry" -->
437 <label for="country" class="required">
439 <label for="country">
442 <input type="text" name="country" id="country" size="20" value="<!-- TMPL_VAR NAME="country" -->" />
443 <!-- TMPL_IF NAME="mandatorycountry" --><span class="required">Required</span><!-- /TMPL_IF -->
448 <fieldset class="rows" id="memberentry_contact">
449 <legend>Contact</legend><ol>
451 <!-- TMPL_IF NAME="mandatoryphone" -->
452 <label for="phone" class="required">
456 Phone (home): </label>
457 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
458 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
462 <!-- TMPL_IF NAME="mandatoryphonepro" -->
463 <label for="phonepro" class="required">
465 <label for="phonepro">
467 Phone (work): </label>
468 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
469 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
472 <!-- TMPL_IF NAME="mandatorymobile" -->
473 <label for="mobile" class="required">
477 Phone (cell): </label>
478 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
479 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
482 <!-- TMPL_IF NAME="mandatoryemail" -->
483 <label for="email" class="required">
487 Email (home): </label>
488 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
489 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
493 <!-- TMPL_IF NAME="mandatoryemailpro" -->
494 <label for="emailpro" class="required">
496 <label for="emailpro">
498 Email (work): </label>
499 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
500 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
503 <!-- TMPL_IF NAME="mandatoryfax" -->
504 <label for="fax" class="required">
509 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
510 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
516 <!-- ************************ STEP_1 *********************** -->
518 <!--TMPL_IF Name="step_6"-->
520 <fieldset class="rows" id="memberentry_address">
521 <legend>Alternate address</legend><ol>
523 <!-- TMPL_IF NAME="mandatoryB_address" -->
524 <label for="B_address" class="required">
526 <label for="B_address">
529 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
530 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
533 <!-- TMPL_IF NAME="mandatoryB_address2" -->
534 <label for="B_address2" class="required">
536 <label for="B_address2">
539 <input type="text" id="B_address2" name="B_address2" size="40" value="<!-- TMPL_VAR NAME="B_address2" -->" />
540 <!-- TMPL_IF NAME="mandatoryB_address2" --><span class="required">Required</span><!-- /TMPL_IF -->
543 <!-- TMPL_IF NAME="mandatoryB_city" -->
544 <label for="B_city" class="required" >
548 City, State: </label>
549 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
550 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
553 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
554 <label for="B_zipcode" class="required">
556 <label for="B_zipcode">
558 Zip/Postal code: </label>
559 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
560 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
563 <!-- TMPL_IF NAME="mandatoryB_country" -->
564 <label for="B_country" class="required">
566 <label for="B_country">
569 <input type="text" id="B_country" name="B_country" size="20" value="<!-- TMPL_VAR NAME="B_country" -->" />
570 <!-- TMPL_IF NAME="mandatoryB_country" --><span class="required">Required</span><!-- /TMPL_IF -->
573 <!-- TMPL_IF NAME="mandatoryB_phone" -->
574 <label for="B_phone" class="required">
576 <label for="B_phone">
579 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
580 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
583 <!-- TMPL_IF NAME="mandatoryB_email" -->
584 <label for="B_email" class="required">
586 <label for="B_email">
589 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
590 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
592 <!-- TMPL_IF NAME="mandatorycontactnote" -->
593 <label for="contactnote" class="required">
595 <label for="contactnote">
597 Contact note: </label>
598 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
599 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
604 <!--TMPL_IF Name="step_2"-->
605 <fieldset class="rows" id="memberentry_altaddress">
606 <legend>Alternate Contact</legend><ol>
608 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
609 <label for="altcontactsurname" class="required">
611 <label for="altcontactsurname">
614 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
615 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
618 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
619 <label for="altcontactfirstname" class="required">
621 <label for="altcontactfirstname">
624 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
625 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
628 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
629 <label for="altcontactaddress1" class="required">
631 <label for="altcontactaddress1">
634 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
635 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
638 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
639 <label for="altcontactaddress2" class="required">
641 <label for="altcontactaddress2">
644 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
645 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
648 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
649 <label for="altcontactaddress3" class="required">
651 <label for="altcontactaddress3">
654 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
655 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
658 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
659 <label for="altcontactzipcode" class="required">
661 <label for="altcontactzipcode">
663 Zip/Postal code:</label>
664 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
665 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
668 <!-- TMPL_IF NAME="mandatoryaltcontactcountry" -->
669 <label for="altcontactcountry" class="required">
671 <label for="altcontactcountry">
674 <input type="text" name="altcontactcountry" id="altcontactcountry" value="<!-- TMPL_VAR NAME="altcontactcountry" -->" size="20" />
675 <!-- TMPL_IF NAME="mandatoryaltcontactcountry" --><span class="required">Required</span><!-- /TMPL_IF -->
678 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
679 <label for="altcontactphone" class="required">
681 <label for="altcontactphone">
684 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
685 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
691 <!-- TMPL_IF NAME="I" -->
692 <!-- TMPL_IF NAME="memberofinstution" -->
693 <fieldset class="rows" id="memberentry_organisation">
694 <legend>Organizations</legend><ol>
696 <!-- TMPL_IF NAME="mandatoryphone" -->
697 <label for="organisations" class="required">
699 <label for="organisations">
701 Organization(s): </label>
702 <!-- TMPL_VAR NAME="CGIorganisations" -->
703 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
711 <!--TMPL_IF Name="step_3"-->
713 <fieldset class="rows" id="memberentry_library_management">
714 <legend>Library Management</legend><ol>
715 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
716 <label for="cardnumber" class="required">
718 <label for="cardnumber">
720 Card number: </label>
721 <input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
722 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
724 <!-- TMPL_IF NAME="mandatorybranchcode" -->
725 <label for="branchcode" class="required">
727 <label for="branchcode">
730 <!-- TMPL_VAR NAME="CGIbranch" -->
731 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
734 <!-- TMPL_IF NAME="typeloop" -->
735 <label for="categorycode">Category: </label>
736 <select id="categorycode" name="categorycode">
737 <!-- TMPL_LOOP NAME="typeloop" -->
738 <!-- TMPL_LOOP NAME="categoryloop" -->
739 <!-- TMPL_IF NAME="__first__" -->
740 <!-- TMPL_IF NAME="typename_C" --><optgroup label="Child"><!-- /TMPL_IF -->
741 <!-- TMPL_IF NAME="typename_A" --><optgroup label="Adult"><!-- /TMPL_IF -->
742 <!-- TMPL_IF NAME="typename_S" --><optgroup label="Staff"><!-- /TMPL_IF -->
743 <!-- TMPL_IF NAME="typename_I" --><optgroup label="Organization"><!-- /TMPL_IF -->
744 <!-- TMPL_IF NAME="typename_P" --><optgroup label="Professional"><!-- /TMPL_IF -->
745 <!-- TMPL_IF NAME="typename_X" --><optgroup label="Statistical"><!-- /TMPL_IF -->
747 <!-- TMPL_IF NAME="categorycodeselected" -->
748 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
750 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
752 <!-- TMPL_IF NAME="__last__" -->
759 <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 Professional<!--/TMPL_IF--><!--TMPL_IF Name="S"-->a Staff Member<!--/TMPL_IF-->.</span>
760 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
764 <!-- TMPL_IF NAME="mandatorysort1" -->
765 <label for="sort1" class="required">
770 <!--TMPL_IF NAME="CGIsort1" -->
771 <!-- TMPL_VAR NAME="CGIsort1" -->
773 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
774 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
778 <!-- TMPL_IF NAME="mandatorysort2" -->
779 <label for="sort2" class="required">
784 <!--TMPL_IF NAME="CGIsort2" -->
785 <!-- TMPL_VAR NAME="CGIsort2" -->
787 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
788 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
793 <fieldset class="rows" id="memberentry_subscription">
794 <legend>Library set-up</legend><ol>
796 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
797 <label for="dateenrolled" class="required">
799 <label for="dateenrolled">
801 Registration date: </label>
802 <input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_VAR NAME="dateenrolled" -->" />
803 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
804 <script language="JavaScript" type="text/javascript">
807 inputField : "dateenrolled",
808 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
809 button : "dateenrolled_button"
813 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
814 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
815 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
818 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
819 <label for="dateexpiry" class="required">
821 <label for="dateexpiry">
823 Expiry date (leave blank for auto calc) </label>
824 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_UNLESS NAME="opadd" --><!-- TMPL_VAR NAME="dateexpiry" --><!-- /TMPL_UNLESS -->" />
825 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
826 <script language="JavaScript" type="text/javascript">
829 inputField : "dateexpiry",
830 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
831 button : "dateexpiry_button"
835 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
836 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
837 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
840 <!-- TMPL_IF NAME="mandatoryopacnote" -->
841 <label for="opacnote" class="required">
843 <label for="opacnote">
846 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
847 <div class="hint">This message appears on this patron's user page in the OPAC</div>
848 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
851 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
852 <label for="borrowernotes" class="required">
854 <label for="borrowernotes">
856 Circulation note: </label>
857 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
858 <div class="hint">This message displays when checking out to this patron</div>
859 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
863 <fieldset class="rows" id="memberentry_userid">
864 <legend>OPAC login</legend><ol>
866 <!-- TMPL_IF NAME="mandatoryuserid" -->
867 <label for="userid" class="required">
873 <!-- TMPL_IF NAME="NoUpdateLogin" -->
874 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
876 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
879 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
882 <!-- TMPL_IF NAME="mandatorypassword" -->
883 <label for="password" class="required">
885 <label for="password">
888 <!--TMPL_IF NAME="opadd"-->
889 <!-- TMPL_IF NAME="NoUpdateLogin" -->
890 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
892 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
895 <!--TMPL_IF NAME="password"-->
896 <!-- TMPL_IF NAME="NoUpdateLogin" -->
897 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
899 <input type="text" id="password" name="password" size="20" value="****" />
902 <!-- TMPL_IF NAME="NoUpdateLogin" -->
903 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
905 <input type="text" id="password" name="password" size="20" value="" />
909 <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="ERROR_short_password" --><span class="required">Password is too short</span><!-- /TMPL_IF -->
910 <!-- TMPL_IF NAME="minPasswordLength" --><div class="hint">Minimum password length: <!-- TMPL_VAR NAME="minPasswordLength" --></div><!-- /TMPL_IF -->
913 <!--this zones are not necessary in modif mode -->
914 <!-- TMPL_UNLESS NAME="opadd" -->
915 <fieldset class="rows">
916 <legend>Patron Account Flags</legend>
918 <!-- TMPL_LOOP NAME="flagloop" -->
919 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
920 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
921 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
922 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
925 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
926 <!-- TMPL_IF NAME="yes" -->
927 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
929 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
932 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
933 <!-- TMPL_IF NAME="no" -->
934 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
936 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
943 <!-- /TMPL_UNLESS -->
947 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" --><!-- TMPL_UNLESS NAME="no_patron_attribute_types" -->
948 <fieldset class="rows" id="memberentry_patron_attributes">
949 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
950 <legend>Additional attributes and identifiers</legend>
954 <th colspan="2">Value</th>
956 <!-- TMPL_LOOP NAME='patron_attributes' -->
958 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
961 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code" value="<!-- TMPL_VAR NAME="code" ESCAPE="HTML" -->" />
962 <!-- TMPL_IF NAME="use_dropdown" -->
963 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
965 <!-- TMPL_LOOP NAME="auth_val_loop" -->
966 <!-- TMPL_IF NAME="selected" -->
967 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
968 <!-- TMPL_VAR NAME="lib" -->
971 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
972 <!-- TMPL_VAR NAME="lib" -->
978 <input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
979 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
981 <!-- TMPL_IF NAME="password_allowed" -->
982 (Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
983 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
987 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
988 <!-- TMPL_IF NAME="repeatable" -->
989 <a href="#" onclick="clone_entry(this); return false;">New</a>
996 <!-- /TMPL_IF--><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
998 <!-- TMPL_IF NAME="step_5" --><!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
999 <fieldset class="rows" id="memberentry_messaging_prefs">
1000 <!-- TMPL_IF NAME="opadd" -->
1001 <!-- handle changing prefs if creating new patron and changing
1004 <script language="javascript" type="text/javascript">//<![CDATA[
1005 $(document).ready(function(){
1006 var message_prefs_dirty = false;
1007 $('#memberentry_messaging_prefs > *').change(function() {
1008 message_prefs_dirty = true;
1010 $('#categorycode').change(function() {
1011 var categorycode = $(this).val();
1012 if (message_prefs_dirty) {
1013 if (!confirm('Change messaging preferences to default for this category?')) {
1017 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
1019 $.each(data.messaging_preferences, function(i, item) {
1020 var attrid = item.message_attribute_id;
1021 var transports = ['email', 'rss', 'sms'];
1022 $.each(transports, function(j, transport) {
1023 if (item['transport-' + transport] != ' ') {
1024 $('#' + transport + attrid).attr('checked', item['transport-' + transport]);
1026 $('#' + transport + attrid).removeAttr('checked');
1029 if (item.digest && item.digest != ' ') {
1030 $('#digest' + attrid).attr('checked', item.digest);
1032 $('#digest' + attrid).removeAttr('checked');
1034 if (item.takes_days == '1') {
1035 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1038 message_prefs_dirty = false;
1046 <input type="hidden" name="setting_messaging_prefs" value="1" />
1047 <legend>Patron messaging preferences</legend>
1048 <!-- TMPL_INCLUDE NAME="messaging-preference-form.inc" -->
1049 <!-- TMPL_IF NAME="SMSSendDriver" -->
1050 <p><label for="SMSnumber">SMS number:</label>
1051 <input type="text" id="SMSnumber" name="SMSnumber" value="<!-- TMPL_VAR NAME="SMSnumber" -->" />
1055 <!-- /TMPL_IF --> <!-- /TMPL_IF -->
1057 <fieldset class="action">
1058 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1059 <!-- TMPL_IF NAME="opadd" -->
1060 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1062 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
1070 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
1071 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
1072 </div><!-- /TMPL_UNLESS -->
1074 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->