5 [% USE AuthorisedValues %]
6 [% USE ColumnsSettings %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Patrons ›
10 [% UNLESS blocking_error %]
11 Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
14 [% INCLUDE 'doc-head-close.inc' %]
15 [% Asset.css("css/datatables.css") %]
18 <body id="pat_moremember" class="pat">
19 [% INCLUDE 'header.inc' %]
20 [% INCLUDE 'patron-search.inc' %]
22 <div id="breadcrumbs">
23 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25 › [% UNLESS blocking_error %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
28 <div id="doc3" class="yui-t2">
34 [% INCLUDE 'members-toolbar.inc' %]
37 <div class="dialog alert">
38 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
39 <h3>Unable to delete staff user</h3>
40 <p>Insufficient privileges.</p>
42 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
43 <h3>Not allowed to delete own account</h3>
44 <p>Deleting your own account would lock you out of Koha.</p>
46 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
47 <h3>Unable to delete patrons from other libraries with current settings</h3>
48 <p>Insufficient privileges.</p>
50 [% IF ( error == 'CANT_DELETE' ) %]
51 <h3>Unable to delete patron</h3>
52 <p>Insufficient privileges.</p>
58 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]</div>[% END %]
61 <div id="circmessages" class="circmessage attention">
63 [% INCLUDE 'blocked-fines.inc' %]
68 [% IF ( patron_messages ) %]
69 <div id="messages" class="circmessage">
72 [% FOREACH patron_message IN patron_messages %]
74 [% IF(patron_message.message_type == "L") %]
75 <span class="circ-hlt">
79 [% patron_message.message_date | $KohaDates %]
80 [% Branches.GetName( patron_message.branchcode ) %]
81 [% IF patron_message.manager_id %]
82 ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id %]">[% patron_message.get_column('manager_firstname') %] [% patron_message.get_column('manager_surname') %]</a> )
84 <i>"[% patron_message.message | html %]"</i>
86 [% IF patron_message.branchcode == branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
87 <a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id %]&borrowernumber=[% patron_message.borrowernumber %]&from=moremember" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
92 <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
97 <div id="circmessages" class="circmessage attention">
99 [% IF ( userdebarred ) %]
100 <li class="blocker">Patron's account is restricted
101 [% IF ( userdebarreddate ) %]
102 until [% userdebarreddate %]
105 [% IF ( debarredcomment ) %]
106 with the explanation: <i>
107 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
108 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
110 [% debarredcomment | html_line_break %]
114 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
117 [% IF ( patron.gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
118 [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
122 <h3>[% UNLESS ( I ) %]
123 [% patron.title | html %] [% patron.firstname | html %] [% END %] [% patron.surname | html %] ([% patron.cardnumber | html %])</h3>
124 <div class="yui-u first">
125 <div id="patron-information" style="padding : .5em;">
127 [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
129 <div class = "address">
130 [% IF Koha.Preference( 'AddressFormat' ) %]
131 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
133 [% INCLUDE 'member-display-address-style-us.inc' %]
139 [% IF ( patron.phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% patron.phone %]">[% patron.phone | html %]</a></li>[% END %]
140 [% IF ( patron.phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% patron.phonepro %]">[% patron.phonepro | html %]</a></li>[% END %]
141 [% IF ( patron.mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% patron.mobile %]">[% patron.mobile | html %]</a></li>[% END %]
142 [% IF ( patron.fax ) %]<li><span class="label">Fax: </span>[% patron.fax |html %]</li>[% END %]
143 [% IF ( patron.email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% patron.email %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a></li>[% END %]
144 [% IF ( patron.emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a></li>[% END %]
146 [% IF ( patron.initials ) %]<li><span class="label">Initials: </span>[% patron.initials | html %]</li>[% END %]
147 [% IF ( patron.dateofbirth ) %]<li><span class="label">Date of birth:</span>[% patron.dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
148 [% IF ( patron.sex ) %]<li><span class="label">Gender:</span>
149 [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex %][% END %]
154 <span class="label">Guarantees:</span>
156 [% FOREACH guarantee IN guarantees %]
157 [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
158 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
160 <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
165 [% ELSIF guarantor %]
167 <span class="label">Guarantor:</span>
168 [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
169 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
171 [% guarantor.firstname | html %] [% guarantor.surname | html %]
178 [% IF ( guarantor.borrowernumber ) %]
179 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1&guarantorid=[% guarantor.borrowernumber %]">Edit</a>
181 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1">Edit</a>
186 <!-- Begin Upload Patron Image Section -->
188 <div id="manage-patron-image">
189 [% IF ( patronimages ) %]
190 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
191 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
192 <fieldset class="brief">
193 [% IF ( patron.image ) %]
194 <legend>Manage patron image</legend>
195 <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
197 <legend>Upload patron image</legend>
198 <div class="hint">[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload.
200 <br />Only PNG, GIF, JPEG, XPM formats are supported.
202 <input type="hidden" id="image" name="filetype" value="image" />
203 <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
204 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
207 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
210 <fieldset class="action">
211 <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
212 <input type="submit" value="Upload" class="submit" />
213 <input name="op" type="hidden" value="Upload" />
214 [% IF ( patron.image ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% patron.borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %]
222 <!-- End Upload Patron Image Section -->
224 [% IF Koha.Preference('HouseboundModule') %]
225 <div id="houseboundroles">
226 <h3>Housebound roles</h3>
230 <span class="label">Chooser:</span>
231 [% IF ( housebound_role.housebound_chooser == 1 ) %]
238 <span class="label">Deliverer:</span>
239 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
248 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">Edit</a></div>
251 [% IF ( ExtendedPatronAttributes ) %]
252 [% UNLESS ( no_patron_attribute_types ) %]
253 <div id="patron-extended-attributes" style="padding-top: 1em;">
254 <h3>Additional attributes and identifiers</h3>
255 [% FOREACH attribute IN attributes_loop %]
256 [% IF attribute.class %]
257 <div id="aai_[% attribute.class %]" class="rows">
259 <div id="aai" class="rows">
261 <h4>[% attribute.lib %]</h4>
263 [% FOREACH item IN attribute.items %]
265 <span class="label">[% item.description %]: </span>
266 [% IF ( item.value_description ) %]
267 [% item.value_description %]
269 [% item.value| html_line_break %]
277 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">Edit</a></div>
282 [% IF ( EnhancedMessagingPreferences ) %]
283 <div id="patron-messaging-prefs" style="padding-top: 1em;">
284 <h3>Patron messaging preferences</h3>
285 [% INCLUDE 'messaging-preference-form.inc' %]
286 [% IF ( SMSSendDriver ) %]
287 <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% patron.smsalertnumber %]">[% patron.smsalertnumber %]</a>
291 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=5">Edit</a></div>
296 <div id="patron-library-details">
300 <li><span class="label">Card number: </span>[% patron.cardnumber %]</li>
301 <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li>
302 <li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li>
303 <li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li>
305 <li><span class="label">Expiration date: </span>
306 [% IF ( was_renewed ) %]
307 <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
309 [% patron.dateexpiry | $KohaDates %]
313 <li><span class="label">Library: </span>[% branchname %]</li>
315 [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
316 [% IF ( privacy0 ) %]Forever[% END %]
317 [% IF ( privacy1 ) %]Default[% END %]
318 [% IF ( privacy2 ) %]Never[% END %]
322 <span class="label">Show checkouts to guarantor</span>
323 [% IF privacy_guarantor_checkouts %]
330 [% IF ( patron.sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]</li>[% END %]
331 [% IF ( patron.sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]</li>[% END %]
332 <li><span class="label">Username: </span>[% patron.userid |html %]</li>
333 <li><span class="label">Password: </span>
334 [% IF ( patron.password ) %]
337 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]">Undefined</a></span>
340 [% IF ( patron.borrowernotes ) %]<li><span class="label">Circulation note: </span>[% patron.borrowernotes |html %]</li>[% END %]
341 [% IF ( patron.opacnote ) %]<li><span class="label">OPAC note:</span>[% patron.opacnote |html %]</li>[% END %]
342 [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
343 [% IF ( sync == 1 ) %]
344 <li><span class="label">Activate sync: </span>Yes</li>
345 [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
346 [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
348 <li><span class="label">Activate sync: </span>No</li>
351 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
352 <li><span class="label">Check previous checkouts: </span>
353 [% IF ( patron.checkprevcheckout == 'yes' ) %]
355 [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
362 [% IF Koha.Preference('TranslateNotices') %]
364 <span class="label">Preferred language for notices: </span>
365 [% patron.translated_language %]
371 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=3">Edit</a></div>
373 <div id="patron-alternate-address" style="padding-top: 1em;">
374 <h3>Alternate address</h3>
376 [% IF Koha.Preference( 'AddressFormat' ) %]
377 [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
379 [% INCLUDE 'member-display-alt-address-style-us.inc' %]
382 <div class="rows"> <ol>
383 [% IF ( patron.B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.B_phone %]">[% patron.B_phone |html %]</a></li>[% END %]
384 [% IF ( patron.B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a></li>[% END %]
385 [% IF ( patron.contactnote ) %]<li><span class="label">Contact note: </span> [% patron.contactnote |html %]</li>[% END %]
389 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=6">Edit</a></div>
391 <div id="patron-alternative-contact" style="padding-top: 1em;">
392 <h3>Alternative contact</h3>
393 <div class="rows"> <ol><li><span class="label">Surname: </span>[% patron.altcontactsurname | html %]</li>
394 <li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li>
395 <li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li>
396 <li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li>
397 <li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li>
398 [% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %]
399 <li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li>
400 [% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %]
401 [% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %]
404 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=2">Edit</a></div>
408 <div id="finesholdsissues" class="toptabs">
410 <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
411 [% IF relatives_issues_count %]
412 <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
414 <li><a href="#finesandcharges">Fines & Charges</a></li>
416 [% IF ( holds_count ) %]
417 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
419 <a href="#reserves" id="holds-tab">0 Holds</a>
422 [% IF Koha.Preference('ArticleRequests') %]
424 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
427 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
429 [% SET enrollments = patron.get_club_enrollments(1) %]
430 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
431 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
433 <a id="clubs-tab-link" href="#clubs-tab">
434 Clubs ([% enrollments.count %]/[% enrollable.count %])
440 [% INCLUDE "checkouts-table.inc" %]
442 [% IF ( relatives_issues_count ) %]
443 <div id="relatives-issues">
444 <table id="relatives-issues-table" style="width: 100% !Important;">
447 <th scope="col">Due date hidden not formatted</th>
448 <th scope="col">Due date</th>
449 <th scope="col">Title</th>
450 <th scope="col">Item type</th>
451 <th scope="col">Location</th>
452 <th scope="col">Checked out on</th>
453 <th scope="col">Checked out from</th>
454 <th scope="col">Call no</th>
455 <th scope="col">Charge</th>
456 <th scope="col">Fine</th>
457 <th scope="col">Price</th>
458 <th scope="col">Patron</th>
465 <div id="finesandcharges">
466 [% IF ( totaldue_raw ) %]
467 <p>Total due: [% totaldue %]</p>
469 <p>No outstanding charges</p>
473 [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
479 [% INCLUDE borrower_debarments.inc %]
482 [% IF ( holds_count ) %]
483 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
484 <input type="hidden" name="from" value="circ" />
485 <table id="holds-table" style="width: 100% !Important;">
501 <fieldset class="action">
502 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
506 [% IF Koha.Preference('SuspendHoldsIntranet') %]
507 <fieldset class="action">
508 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
509 <input type="hidden" name="from" value="borrower" />
510 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
511 <input type="submit" value="Suspend all holds" />
513 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
514 <label for="suspend_until">until</label>
515 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
516 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
521 <fieldset class="action">
522 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
523 <input type="hidden" name="from" value="borrower" />
524 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
525 <input type="hidden" name="suspend" value="0" />
526 <input type="submit" value="Resume all suspended holds" />
529 [% END # IF SuspendHoldsIntranet %]
531 [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
535 [% IF Koha.Preference('ArticleRequests') %]
536 [% INCLUDE 'patron-article-requests.inc' %]
544 [% INCLUDE 'circ-menu.inc' %]
548 [% MACRO jsinclude BLOCK %]
549 [% INCLUDE 'datatables.inc' %]
550 [% INCLUDE 'columns_settings.inc' %]
551 [% INCLUDE 'strings.inc' %]
552 [% INCLUDE 'calendar.inc' %]
553 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
554 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") %]
555 [% INCLUDE 'timepicker.inc' %]
556 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") %]
557 [% Asset.js("js/pages/circulation.js") %]
558 [% Asset.js("js/checkouts.js") %]
559 [% Asset.js("js/holds.js") %]
560 [% Asset.js("js/members-menu.js") %]
561 [% Asset.js("js/messaging-preference-form.js") %]
562 <script type="text/javascript">
563 /* Set some variable needed in circulation.js */
564 var interface = "[% interface %]";
565 var theme = "[% theme %]";
566 var borrowernumber = "[% patron.borrowernumber %]";
567 var branchcode = "[% Branches.GetLoggedInBranchcode() %]";
568 var exports_enabled = "[% Koha.Preference('ExportCircHistory') %]";
569 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]
570 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
571 var script = "moremember";
572 var relatives_borrowernumbers = new Array();
573 [% FOREACH b IN relatives_borrowernumbers %]
574 relatives_borrowernumbers.push("[% b %]");
577 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
578 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
580 columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %]
582 $(document).ready(function() {
583 if ( $('#clubs-tab').length ) {
584 $('#clubs-tab-link').on('click', function() {
585 $('#clubs-tab').text(_("Loading..."));
586 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% borrowernumber %]');
590 $('#finesholdsissues').tabs({
591 // Correct table sizing for tables hidden in tabs
592 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
593 "show": function(event, ui) {
594 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
595 if ( oTable.length > 0 ) {
596 oTable.fnAdjustColumnSizing();
599 "activate": function( event, ui ) {
600 $('#'+ui.newTab.context.id).click();
603 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
606 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
609 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
613 [% IF ( patron.image ) %]
614 $('#delpicture').click(function(){
615 return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
617 $('#manage-patron-image').find("input[value*=Upload]").click(function(){
618 if($("#uploadfile").val() == ""){
619 alert(_("Please choose a file to upload"));
622 return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
626 $("#suspend_until").datepicker({
627 onClose: function(dateText, inst) {
628 validate_date(dateText, inst);
630 minDate: 1, // require that hold suspended until date is after today
631 }).on("change", function(e, value) {
632 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
635 $("#view_restrictions").on("click",function(){
636 $('#debarments-tab-link').click();
639 function uncheck_sibling(me){
640 nodename=me.getAttribute("name");
641 if (nodename =="barcodes[]"){
642 var Node=me.parentNode.previousSibling;
643 while (Node.nodeName!="TD"){Node=Node.previousSibling}
644 var Nodes=Node.childNodes;
645 for (var i=0;i < Nodes.length;i++){
646 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
647 Nodes[i].checked=false;
651 var Node=me.parentNode.nextSibling;
652 while (Node.nodeName!="TD"){Node=Node.nextSibling}
653 var Nodes=Node.childNodes;
654 for (var i=0;i<Nodes.length;i++){
655 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
656 Nodes[i].checked=false;
662 function validate1(date) {
663 var today = new Date();
664 if ( date < today ) {
673 [% INCLUDE 'intranet-bottom.inc' %]