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 -->
83 <!-- TMPL_IF NAME="no_add" --><div class="dialog alert"><h3>Cannot add patron</h3>
84 <!-- TMPL_IF NAME="no_branches" --><p>There are <strong>no libraries defined</strong>. <!-- TMPL_IF NAME="CAN_user_parameters" -->Please <a href="/cgi-bin/koha/admin/branches.pl">add a library</a>.<!-- TMPL_ELSE -->An administrator must define at least one library.<!-- /TMPL_IF --></p><!-- /TMPL_IF -->
85 <!-- TMPL_IF NAME="no_categories" --><p>There are <strong>no patron categories defined</strong>. <!-- TMPL_IF NAME="CAN_user_parameters" -->Please <a href="/cgi-bin/koha/admin/categorie.pl">add a patron category</a>.<!-- TMPL_ELSE -->An administrator must define at least one patron category.</p><!-- /TMPL_IF --><!-- /TMPL_IF --></div><!-- /TMPL_IF -->
87 <!-- TMPL_UNLESS NAME="no_add" -->
88 <!-- TMPL_IF NAME="opadd" -->
90 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" -->
94 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 -->
95 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
99 <!-- TMPL_IF NAME="check_member" -->
100 <div class="dialog alert">
101 <h3>Duplicate patron record?</h3>
102 <p><a class="popup" href="javascript:Dopop('moremember.pl?print=brief&borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >View existing record</a></p>
103 <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>
105 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
106 <input type="hidden" name="nodouble" value="1" />
107 <input class="new" type="submit" value="Not a duplicate. Save as new record" />
111 <!-- TMPL_IF Name="debug" -->
113 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
116 <!-- TMPL_IF Name="nok" -->
117 <div class="dialog alert">
118 <p>The following fields are wrong. Please fix them.</p>
120 <!-- TMPL_IF NAME="ERROR_login_exist" -->
121 <li id="ERROR_login_exist">Login/password already exists.</li>
123 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
124 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
126 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
127 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
128 Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
130 <!-- TMPL_IF NAME="ERROR_branch" -->
131 <li id="ERROR_branch">Library is invalid.</li>
133 <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
134 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
136 <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
137 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
139 <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
140 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
142 <!-- TMPL_IF NAME="ERROR_short_password" -->
143 <li id="ERROR_short_password">Password must be at least <!-- TMPL_VAR NAME="minPasswordLength" --> characters long.</li>
145 <!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
146 <li id="ERROR_extended_unique_id_failed">The attribute value
147 <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
154 <!-- TMPL_UNLESS NAME="check_member" --><form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
155 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" /> <!-- /TMPL_UNLESS -->
156 <!-- field always hidden in different form (1,2,3) -->
157 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
158 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
159 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
160 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
161 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
162 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
163 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
164 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
165 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
167 <!--TMPL_IF Name="step_1"-->
168 <fieldset class="rows" id="memberentry_identity">
169 <legend><!--TMPL_IF Name="I"-->Organization <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
171 <!-- TMPL_UNLESS name="I" -->
172 <!-- TMPL_IF NAME="title_cgipopup" -->
174 <!-- TMPL_IF NAME="mandatorytitle" -->
175 <label for="btitle" class="required">
180 <!-- TMPL_VAR NAME="borrotitlepopup" -->
181 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
184 <!-- /TMPL_UNLESS -->
186 <!-- TMPL_IF NAME="mandatorysurname" -->
187 <label for="surname" class="required">
189 <label for="surname">
192 <!-- TMPL_IF NAME="uppercasesurnames" -->
193 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
195 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
197 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
199 <!-- TMPL_UNLESS name="I" -->
201 <!-- TMPL_IF NAME="mandatoryfirstname" -->
202 <label for="firstname" class="required">
204 <label for="firstname">
207 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
208 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
211 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
212 <label for="dateofbirth" class="required">
214 <label for="dateofbirth">
216 Date of birth: </label>
218 <!-- TMPL_IF NAME="metric" -->
219 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
221 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
224 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
225 <script language="JavaScript" type="text/javascript">
228 inputField : "dateofbirth",
229 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
230 button : "dateofbirth_button"
234 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
235 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
236 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
239 <!-- TMPL_IF NAME="mandatoryinitials" -->
240 <label for="initials" class="required">
242 <label for="initials">
245 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
246 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
248 <!-- /TMPL_UNLESS -->
250 <!-- TMPL_IF NAME="mandatoryothernames" -->
251 <label for="othernames" class="required">
253 <label for="othernames">
256 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
257 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
258 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
260 <!--TMPL_UNLESS Name="I"-->
263 <!-- TMPL_IF NAME="female" -->
264 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
266 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
268 <!-- TMPL_IF NAME="male" -->
269 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
271 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
273 <!-- TMPL_IF NAME="none" -->
274 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
276 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
283 <!--TMPL_IF Name="showguarantor"--><input type="hidden" id="guarantorid" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
284 <fieldset class="rows">
285 <legend>Guarantor Information</legend>
287 <!--TMPL_IF Name="P"-->
288 <!-- TMPL_IF NAME="guarantorid" -->
289 <li id="contact-details">
291 <li id="contact-details" style="display: none">
293 <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 -->
296 <label for="contactname">Organization name: </label>
297 <!-- TMPL_IF NAME="guarantorid" -->
298 <span><!-- TMPL_VAR NAME="contactname" --></span>
299 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
301 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
305 <!-- TMPL_IF NAME="C" -->
306 <!-- TMPL_IF NAME="guarantorid" -->
307 <li id="contact-details">
309 <li id="contact-details" style="display: none">
311 <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 -->
314 <label for="contactname">Surname: </label>
315 <!-- TMPL_IF NAME="guarantorid" -->
316 <span><!-- TMPL_VAR NAME="contactname" --></span>
317 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
319 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
323 <label for="contactfirstname">First name: </label>
324 <!-- TMPL_IF NAME="guarantorid" -->
325 <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
326 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
328 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
331 <!-- TMPL_IF name="relshiploop" -->
333 <label for="relationship">Relationship: </label>
334 <select name="relationship" id="relationship" >
335 <!-- TMPL_LOOP name="relshiploop" -->
336 <!-- TMPL_IF name="selected" -->
337 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
339 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
348 <span class="label"> </span>
349 <!-- TMPL_IF NAME="guarantorid" -->
350 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl?category_type=<!-- TMPL_VAR NAME="category_type" -->');" />
352 <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl?category_type=<!-- TMPL_VAR NAME="category_type" -->');" />
354 <input id="guarantordelete" type="button" value="Delete" />
360 <fieldset class="rows">
361 <legend>Main address</legend><ol>
363 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
364 <label for="streetnumber" class="required">
366 <label for="streetnumber">
368 Street number: </label>
369 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
370 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
372 <!-- TMPL_IF NAME="road_cgipopup" -->
374 <!-- TMPL_IF NAME="mandatorystreettype" -->
375 <label for="streettype" class="required">
377 <label for="streettype">
379 Street type: </label>
380 <!-- TMPL_VAR NAME="roadpopup" -->
381 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
385 <!-- TMPL_IF NAME="mandatoryaddress" -->
386 <label for="address" class="required">
388 <label for="address">
391 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
392 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
395 <!-- TMPL_IF NAME="mandatoryaddress2" -->
396 <label for="address2" class="required">
398 <label for="address2">
401 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
402 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
405 <!-- TMPL_IF NAME="mandatorycity" -->
406 <label for="city" class="required">
410 City, State: </label>
412 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
413 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong>
414 <select id="select_city" name="select_city">
415 <!-- TMPL_LOOP NAME="city_loop" -->
416 <!-- TMPL_IF NAME="selected" -->
417 <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->" selected="selected">
419 <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->">
421 <!-- TMPL_VAR NAME="city_name" --> <!-- TMPL_VAR NAME="city_zipcode" -->
426 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
429 <!-- TMPL_IF NAME="mandatoryzipcode" -->
430 <label for="zipcode" class="required">
432 <label for="zipcode">
434 Zip/Postal code: </label>
435 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
436 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
440 <!-- TMPL_IF NAME="mandatorycountry" -->
441 <label for="country" class="required">
443 <label for="country">
446 <input type="text" name="country" id="country" size="20" value="<!-- TMPL_VAR NAME="country" -->" />
447 <!-- TMPL_IF NAME="mandatorycountry" --><span class="required">Required</span><!-- /TMPL_IF -->
452 <fieldset class="rows" id="memberentry_contact">
453 <legend>Contact</legend><ol>
455 <!-- TMPL_IF NAME="mandatoryphone" -->
456 <label for="phone" class="required">
460 Phone (home): </label>
461 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
462 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
466 <!-- TMPL_IF NAME="mandatoryphonepro" -->
467 <label for="phonepro" class="required">
469 <label for="phonepro">
471 Phone (work): </label>
472 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
473 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
476 <!-- TMPL_IF NAME="mandatorymobile" -->
477 <label for="mobile" class="required">
481 Phone (cell): </label>
482 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
483 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
486 <!-- TMPL_IF NAME="mandatoryemail" -->
487 <label for="email" class="required">
491 Email (home): </label>
492 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
493 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
497 <!-- TMPL_IF NAME="mandatoryemailpro" -->
498 <label for="emailpro" class="required">
500 <label for="emailpro">
502 Email (work): </label>
503 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
504 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
507 <!-- TMPL_IF NAME="mandatoryfax" -->
508 <label for="fax" class="required">
513 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
514 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
520 <!-- ************************ STEP_1 *********************** -->
522 <!--TMPL_IF Name="step_6"-->
524 <fieldset class="rows" id="memberentry_address">
525 <legend>Alternate address</legend><ol>
527 <!-- TMPL_IF NAME="mandatoryB_address" -->
528 <label for="B_address" class="required">
530 <label for="B_address">
533 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
534 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
537 <!-- TMPL_IF NAME="mandatoryB_address2" -->
538 <label for="B_address2" class="required">
540 <label for="B_address2">
543 <input type="text" id="B_address2" name="B_address2" size="40" value="<!-- TMPL_VAR NAME="B_address2" -->" />
544 <!-- TMPL_IF NAME="mandatoryB_address2" --><span class="required">Required</span><!-- /TMPL_IF -->
547 <!-- TMPL_IF NAME="mandatoryB_city" -->
548 <label for="B_city" class="required" >
552 City, State: </label>
553 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
554 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
557 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
558 <label for="B_zipcode" class="required">
560 <label for="B_zipcode">
562 Zip/Postal code: </label>
563 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
564 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
567 <!-- TMPL_IF NAME="mandatoryB_country" -->
568 <label for="B_country" class="required">
570 <label for="B_country">
573 <input type="text" id="B_country" name="B_country" size="20" value="<!-- TMPL_VAR NAME="B_country" -->" />
574 <!-- TMPL_IF NAME="mandatoryB_country" --><span class="required">Required</span><!-- /TMPL_IF -->
577 <!-- TMPL_IF NAME="mandatoryB_phone" -->
578 <label for="B_phone" class="required">
580 <label for="B_phone">
583 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
584 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
587 <!-- TMPL_IF NAME="mandatoryB_email" -->
588 <label for="B_email" class="required">
590 <label for="B_email">
593 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
594 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
596 <!-- TMPL_IF NAME="mandatorycontactnote" -->
597 <label for="contactnote" class="required">
599 <label for="contactnote">
601 Contact note: </label>
602 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
603 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
608 <!--TMPL_IF Name="step_2"-->
609 <fieldset class="rows" id="memberentry_altaddress">
610 <legend>Alternate Contact</legend><ol>
612 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
613 <label for="altcontactsurname" class="required">
615 <label for="altcontactsurname">
618 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
619 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
622 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
623 <label for="altcontactfirstname" class="required">
625 <label for="altcontactfirstname">
628 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
629 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
632 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
633 <label for="altcontactaddress1" class="required">
635 <label for="altcontactaddress1">
638 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
639 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
642 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
643 <label for="altcontactaddress2" class="required">
645 <label for="altcontactaddress2">
648 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
649 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
652 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
653 <label for="altcontactaddress3" class="required">
655 <label for="altcontactaddress3">
658 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
659 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
662 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
663 <label for="altcontactzipcode" class="required">
665 <label for="altcontactzipcode">
667 Zip/Postal code:</label>
668 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
669 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
672 <!-- TMPL_IF NAME="mandatoryaltcontactcountry" -->
673 <label for="altcontactcountry" class="required">
675 <label for="altcontactcountry">
678 <input type="text" name="altcontactcountry" id="altcontactcountry" value="<!-- TMPL_VAR NAME="altcontactcountry" -->" size="20" />
679 <!-- TMPL_IF NAME="mandatoryaltcontactcountry" --><span class="required">Required</span><!-- /TMPL_IF -->
682 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
683 <label for="altcontactphone" class="required">
685 <label for="altcontactphone">
688 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
689 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
695 <!-- TMPL_IF NAME="I" -->
696 <!-- TMPL_IF NAME="memberofinstution" -->
697 <fieldset class="rows" id="memberentry_organisation">
698 <legend>Organizations</legend><ol>
700 <!-- TMPL_IF NAME="mandatoryphone" -->
701 <label for="organisations" class="required">
703 <label for="organisations">
705 Organization(s): </label>
706 <!-- TMPL_VAR NAME="CGIorganisations" -->
707 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
715 <!--TMPL_IF Name="step_3"-->
717 <fieldset class="rows" id="memberentry_library_management">
718 <legend>Library Management</legend><ol>
719 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
720 <label for="cardnumber" class="required">
722 <label for="cardnumber">
724 Card number: </label>
725 <input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
726 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
728 <!-- TMPL_IF NAME="mandatorybranchcode" -->
729 <label for="branchcode" class="required">
731 <label for="branchcode">
734 <!-- TMPL_VAR NAME="CGIbranch" -->
735 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
738 <label for="categorycode">Category: </label>
739 <select id="categorycode" name="categorycode">
740 <!-- TMPL_LOOP NAME="typeloop" -->
741 <!-- TMPL_LOOP NAME="categoryloop" -->
742 <!-- TMPL_IF NAME="__first__" -->
743 <!-- TMPL_IF NAME="typename_C" --><optgroup label="Child"><!-- /TMPL_IF -->
744 <!-- TMPL_IF NAME="typename_A" --><optgroup label="Adult"><!-- /TMPL_IF -->
745 <!-- TMPL_IF NAME="typename_S" --><optgroup label="Staff"><!-- /TMPL_IF -->
746 <!-- TMPL_IF NAME="typename_I" --><optgroup label="Organization"><!-- /TMPL_IF -->
747 <!-- TMPL_IF NAME="typename_P" --><optgroup label="Professional"><!-- /TMPL_IF -->
748 <!-- TMPL_IF NAME="typename_X" --><optgroup label="Statistical"><!-- /TMPL_IF -->
750 <!-- TMPL_IF NAME="categorycodeselected" -->
751 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
753 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
755 <!-- TMPL_IF NAME="__last__" -->
763 <!-- TMPL_IF NAME="mandatorysort1" -->
764 <label for="sort1" class="required">
769 <!--TMPL_IF NAME="CGIsort1" -->
770 <!-- TMPL_VAR NAME="CGIsort1" -->
772 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
773 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
777 <!-- TMPL_IF NAME="mandatorysort2" -->
778 <label for="sort2" class="required">
783 <!--TMPL_IF NAME="CGIsort2" -->
784 <!-- TMPL_VAR NAME="CGIsort2" -->
786 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
787 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
792 <fieldset class="rows" id="memberentry_subscription">
793 <legend>Library set-up</legend><ol>
795 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
796 <label for="dateenrolled" class="required">
798 <label for="dateenrolled">
800 Registration date: </label>
801 <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" -->" />
802 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
803 <script language="JavaScript" type="text/javascript">
806 inputField : "dateenrolled",
807 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
808 button : "dateenrolled_button"
812 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
813 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
814 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
817 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
818 <label for="dateexpiry" class="required">
820 <label for="dateexpiry">
822 Expiry date (leave blank for auto calc) </label>
823 <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 -->" />
824 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
825 <script language="JavaScript" type="text/javascript">
828 inputField : "dateexpiry",
829 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
830 button : "dateexpiry_button"
834 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
835 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
836 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
839 <!-- TMPL_IF NAME="mandatoryopacnote" -->
840 <label for="opacnote" class="required">
842 <label for="opacnote">
845 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
846 <div class="hint">This message appears on this patron's user page in the OPAC</div>
847 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
850 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
851 <label for="borrowernotes" class="required">
853 <label for="borrowernotes">
855 Circulation note: </label>
856 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
857 <div class="hint">This message displays when checking out to this patron</div>
858 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
862 <fieldset class="rows" id="memberentry_userid">
863 <legend>OPAC login</legend><ol>
865 <!-- TMPL_IF NAME="mandatoryuserid" -->
866 <label for="userid" class="required">
872 <!-- TMPL_IF NAME="NoUpdateLogin" -->
873 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
875 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
878 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
881 <!-- TMPL_IF NAME="mandatorypassword" -->
882 <label for="password" class="required">
884 <label for="password">
887 <!--TMPL_IF NAME="opadd"-->
888 <!-- TMPL_IF NAME="NoUpdateLogin" -->
889 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
891 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
894 <!--TMPL_IF NAME="password"-->
895 <!-- TMPL_IF NAME="NoUpdateLogin" -->
896 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
898 <input type="text" id="password" name="password" size="20" value="****" />
901 <!-- TMPL_IF NAME="NoUpdateLogin" -->
902 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
904 <input type="text" id="password" name="password" size="20" value="" />
908 <!-- 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 -->
909 <!-- TMPL_IF NAME="minPasswordLength" --><div class="hint">Minimum password length: <!-- TMPL_VAR NAME="minPasswordLength" --></div><!-- /TMPL_IF -->
912 <!--this zones are not necessary in modif mode -->
913 <!-- TMPL_UNLESS NAME="opadd" -->
914 <fieldset class="rows">
915 <legend>Patron Account Flags</legend>
917 <!-- TMPL_LOOP NAME="flagloop" -->
918 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
919 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
920 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
921 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
924 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
925 <!-- TMPL_IF NAME="yes" -->
926 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
928 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
931 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
932 <!-- TMPL_IF NAME="no" -->
933 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
935 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
942 <!-- /TMPL_UNLESS -->
946 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" --><!-- TMPL_UNLESS NAME="no_patron_attribute_types" -->
947 <fieldset class="rows" id="memberentry_patron_attributes">
948 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
949 <legend>Additional attributes and identifiers</legend>
953 <th colspan="2">Value</th>
955 <!-- TMPL_LOOP NAME='patron_attributes' -->
957 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
960 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code" value="<!-- TMPL_VAR NAME="code" ESCAPE="HTML" -->" />
961 <!-- TMPL_IF NAME="use_dropdown" -->
962 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
964 <!-- TMPL_LOOP NAME="auth_val_loop" -->
965 <!-- TMPL_IF NAME="selected" -->
966 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
967 <!-- TMPL_VAR NAME="lib" -->
970 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
971 <!-- TMPL_VAR NAME="lib" -->
977 <input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
978 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
980 <!-- TMPL_IF NAME="password_allowed" -->
981 (Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
982 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
986 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
987 <!-- TMPL_IF NAME="repeatable" -->
988 <a href="#" onclick="clone_entry(this); return false;">New</a>
995 <!-- /TMPL_IF--><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
997 <!-- TMPL_IF NAME="step_5" --><!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
998 <fieldset class="rows" id="memberentry_messaging_prefs">
999 <!-- TMPL_IF NAME="opadd" -->
1000 <!-- handle changing prefs if creating new patron and changing
1003 <script language="javascript" type="text/javascript">//<![CDATA[
1004 $(document).ready(function(){
1005 var message_prefs_dirty = false;
1006 $('#memberentry_messaging_prefs > *').change(function() {
1007 message_prefs_dirty = true;
1009 $('#categorycode').change(function() {
1010 var categorycode = $(this).val();
1011 if (message_prefs_dirty) {
1012 if (!confirm('Change messaging preferences to default for this category?')) {
1016 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
1018 $.each(data.messaging_preferences, function(i, item) {
1019 var attrid = item.message_attribute_id;
1020 var transports = ['email', 'rss', 'sms'];
1021 $.each(transports, function(j, transport) {
1022 if (item['transport-' + transport] != ' ') {
1023 $('#' + transport + attrid).attr('checked', item['transport-' + transport]);
1025 $('#' + transport + attrid).removeAttr('checked');
1028 if (item.digest && item.digest != ' ') {
1029 $('#digest' + attrid).attr('checked', item.digest);
1031 $('#digest' + attrid).removeAttr('checked');
1033 if (item.takes_days == '1') {
1034 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1037 message_prefs_dirty = false;
1045 <input type="hidden" name="setting_messaging_prefs" value="1" />
1046 <legend>Patron messaging preferences</legend>
1047 <!-- TMPL_INCLUDE NAME="messaging-preference-form.inc" -->
1048 <!-- TMPL_IF NAME="SMSSendDriver" -->
1049 <p><label for="SMSnumber">SMS number:</label>
1050 <input type="text" id="SMSnumber" name="SMSnumber" value="<!-- TMPL_VAR NAME="SMSnumber" -->" />
1054 <!-- /TMPL_IF --> <!-- /TMPL_IF -->
1056 <fieldset class="action">
1057 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1058 <!-- TMPL_IF NAME="opadd" -->
1059 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1061 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
1069 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
1070 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
1071 </div><!-- /TMPL_UNLESS -->
1072 <!-- /TMPL_UNLESS -->
1074 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->