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">
33 [% INCLUDE 'members-toolbar.inc' %]
36 <div class="dialog alert">
37 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
38 <h3>Unable to delete staff user</h3>
39 <p>Insufficient privileges.</p>
41 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
42 <h3>Not allowed to delete own account</h3>
43 <p>Deleting your own account would lock you out of Koha.</p>
45 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
46 <h3>Unable to delete patrons from other libraries with current settings</h3>
47 <p>Insufficient privileges.</p>
49 [% IF ( error == 'CANT_DELETE' ) %]
50 <h3>Unable to delete patron</h3>
51 <p>Insufficient privileges.</p>
58 [% IF ( was_renewed ) %]
59 <div class="dialog message">
60 Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
65 <div id="circmessages" class="circmessage attention">
67 [% INCLUDE 'blocked-fines.inc' %]
72 [% IF ( patron_messages ) %]
73 <div id="messages" class="circmessage">
76 [% FOREACH patron_message IN patron_messages %]
78 [% IF(patron_message.message_type == "L") %]
79 <span class="circ-hlt">
83 [% patron_message.message_date | $KohaDates %]
84 [% Branches.GetName( patron_message.branchcode ) %]
85 [% IF patron_message.manager_id %]
86 ( <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> )
88 <i>"[% patron_message.message | html %]"</i>
90 [% IF patron_message.branchcode == branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
91 <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>
96 <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>
101 <div id="circmessages" class="circmessage attention">
103 [% IF ( userdebarred ) %]
104 <li class="blocker">Patron's account is restricted
105 [% IF ( userdebarreddate ) %]
106 until [% userdebarreddate %]
109 [% IF ( debarredcomment ) %]
110 with the explanation: <i>
111 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
112 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
114 [% debarredcomment | html_line_break %]
118 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
121 [% IF ( patron.gonenoaddress ) %]
122 <li class="blocker">Patron's address is in doubt.</li>
125 <li class="blocker">Patron's card has been reported lost.</li>
133 [% patron.title | html %] [% patron.firstname | html %]
135 [% patron.surname | html %] ([% patron.cardnumber | html %])
137 <div class="yui-u first">
139 <div id="patron-information" style="padding : .5em;">
140 [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
142 <div class="address">
143 [% IF Koha.Preference( 'AddressFormat' ) %]
144 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
146 [% INCLUDE 'member-display-address-style-us.inc' %]
152 [% IF ( patron.phone ) %]
154 <span class="label">Primary phone: </span>
155 <a href="tel:[% patron.phone %]">[% patron.phone | html %]</a>
158 [% IF ( patron.phonepro ) %]
160 <span class="label">Secondary phone: </span>
161 <a href="tel:[% patron.phonepro %]">[% patron.phonepro | html %]</a>
164 [% IF ( patron.mobile ) %]
166 <span class="label">Other phone: </span>
167 <a href="tel:[% patron.mobile %]">[% patron.mobile | html %]</a>
170 [% IF ( patron.fax ) %]
172 <span class="label">Fax: </span>
173 [% patron.fax |html %]
176 [% IF ( patron.email ) %]
178 <span class="label">Primary email:</span>
179 <a title="[% patron.email %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a>
182 [% IF ( patron.emailpro ) %]
184 <span class="label">Secondary email: </span>
185 <a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a>
189 [% IF ( patron.initials ) %]
191 <span class="label">Initials: </span>
192 [% patron.initials | html %]
195 [% IF ( patron.dateofbirth ) %]
197 <span class="label">Date of birth:</span>
198 [% patron.dateofbirth | $KohaDates %] ([% age %] years)
201 [% IF ( patron.sex ) %]
203 <span class="label">Gender:</span>
204 [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex %][% END %]
210 <span class="label">Guarantees:</span>
212 [% FOREACH guarantee IN guarantees %]
213 [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
214 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
216 <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
221 [% ELSIF guarantor %]
223 <span class="label">Guarantor:</span>
224 [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
225 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
227 [% guarantor.firstname | html %] [% guarantor.surname | html %]
232 </div> [% # /div.rows %]
234 [% IF ( guarantor.borrowernumber ) %]
235 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1&guarantorid=[% guarantor.borrowernumber %]">Edit</a>
237 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1">Edit</a>
241 </div> [% # /div#patron-information %]
243 [% IF ( patronimages ) %]
244 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
245 <div id="manage-patron-image">
246 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
247 <fieldset class="brief">
248 [% IF ( patron.image ) %]
249 <legend>Manage patron image</legend>
250 <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.
252 <legend>Upload patron image</legend>
253 <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.
255 <br />Only PNG, GIF, JPEG, XPM formats are supported.
257 <input type="hidden" id="image" name="filetype" value="image" />
258 <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
259 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
262 <label for="uploadfile">Select the file to upload: </label>
263 <input type="file" id="uploadfile" name="uploadfile" />
266 <fieldset class="action">
267 <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
268 <input type="submit" value="Upload" class="submit" />
269 <input name="op" type="hidden" value="Upload" />
270 [% IF ( patron.image ) %]
271 <a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% patron.borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">Delete</a>
276 </div> [% # /div#manage-patron-image %]
280 [% IF Koha.Preference('HouseboundModule') %]
281 <div id="houseboundroles">
282 <h3>Housebound roles</h3>
286 <span class="label">Chooser:</span>
287 [% IF ( housebound_role.housebound_chooser == 1 ) %]
294 <span class="label">Deliverer:</span>
295 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
305 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">Edit</a>
309 [% IF ( ExtendedPatronAttributes ) %]
310 [% UNLESS ( no_patron_attribute_types ) %]
311 <div id="patron-extended-attributes" style="padding-top: 1em;">
312 <h3>Additional attributes and identifiers</h3>
313 [% FOREACH attribute IN attributes_loop %]
314 [% IF attribute.class %]
315 <div id="aai_[% attribute.class %]" class="rows">
317 <div id="aai" class="rows">
319 <h4>[% attribute.lib %]</h4>
321 [% FOREACH item IN attribute.items %]
323 <span class="label">[% item.description %]: </span>
324 [% IF ( item.value_description ) %]
325 [% item.value_description %]
327 [% item.value| html_line_break %]
336 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">Edit</a>
341 [% IF ( EnhancedMessagingPreferences ) %]
342 <div id="patron-messaging-prefs" style="padding-top: 1em;">
343 <h3>Patron messaging preferences</h3>
344 [% INCLUDE 'messaging-preference-form.inc' %]
345 [% IF ( SMSSendDriver ) %]
349 <span class="label">SMS number:</span>
350 <a href="sms:[% patron.smsalertnumber %]">[% patron.smsalertnumber %]</a>
357 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=5">Edit</a>
361 </div> [% # /div.yui-u.first %]
364 <div id="patron-library-details">
369 <span class="label">Card number: </span>
370 [% patron.cardnumber %]
373 <span class="label">Borrowernumber: </span>
374 [% patron.borrowernumber %]
377 <span class="label">Category: </span>
378 [% patron.category.description %] ([% patron.categorycode %])
381 <span class="label">Registration date: </span>
382 [% patron.dateenrolled | $KohaDates %]
385 [% IF ( patron.date_renewed ) %]
387 <span class="label">Renewal date: </span>
388 [% patron.date_renewed | $KohaDates %]
393 <span class="label">Expiration date: </span>
394 [% IF ( was_renewed ) %]
395 <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
397 [% patron.dateexpiry | $KohaDates %]
401 <span class="label">Library: </span>
405 [% IF ( OPACPrivacy ) %]
407 <span class="label">Privacy Pref:</span>
408 [% IF ( privacy0 ) %]Forever[% END %]
409 [% IF ( privacy1 ) %]Default[% END %]
410 [% IF ( privacy2 ) %]Never[% END %]
415 <span class="label">Show checkouts to guarantor</span>
416 [% IF privacy_guarantor_checkouts %]
423 [% IF ( patron.sort1 ) %]
425 <span class="label">Sort field 1:</span>
426 [% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]
429 [% IF ( patron.sort2 ) %]
431 <span class="label">Sort field 2:</span>
432 [% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]
436 <span class="label">Username: </span>
437 [% patron.userid |html %]
440 <span class="label">Password: </span>
441 [% IF ( patron.password ) %]
444 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]">Undefined</a></span>
448 [% IF ( patron.borrowernotes ) %]
450 <span class="label">Circulation note: </span>
451 [% patron.borrowernotes |html %]
455 [% IF ( patron.opacnote ) %]
457 <span class="label">OPAC note:</span>
458 [% patron.opacnote |html %]
462 [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
463 [% IF ( sync == 1 ) %]
465 <span class="label">Activate sync: </span>
468 [% IF ( syncstatus ) %]
470 <span class="label">Sync status: </span>
474 [% IF ( lastsync ) %]
476 <span class="label">Last sync: </span>
477 [% lastsync | $KohaDates %]
482 <span class="label">Activate sync: </span>
488 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
490 <span class="label">Check previous checkouts: </span>
491 [% IF ( patron.checkprevcheckout == 'yes' ) %]
493 [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
501 [% IF Koha.Preference('TranslateNotices') %]
503 <span class="label">Preferred language for notices: </span>
504 [% translated_language %]
508 </div> [% # /div.rows %]
509 </div> [% # /div#patron-library-details %]
511 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=3">Edit</a>
514 <div id="patron-alternate-address" style="padding-top: 1em;">
515 <h3>Alternate address</h3>
517 [% IF Koha.Preference( 'AddressFormat' ) %]
518 [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
520 [% INCLUDE 'member-display-alt-address-style-us.inc' %]
525 [% IF ( patron.B_phone ) %]
527 <span class="label">Phone: </span>
528 <a href="tel:[% patron.B_phone %]">[% patron.B_phone |html %]</a>
531 [% IF ( patron.B_email ) %]
533 <span class="label">Email: </span>
534 <a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
537 [% IF ( patron.contactnote ) %]
539 <span class="label">Contact note: </span>
540 [% patron.contactnote |html %]
545 </div> [% # /div#patron-alternate-address %]
547 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=6">Edit</a>
550 <div id="patron-alternative-contact" style="padding-top: 1em;">
551 <h3>Alternative contact</h3>
555 <span class="label">Surname: </span>
556 [% patron.altcontactsurname | html %]
559 <span class="label">First name: </span>
560 [% patron.altcontactfirstname | html %]
563 <span class="label">Address: </span>
564 [% patron.altcontactaddress1 | html %]
567 <span class="label">Address 2: </span>
568 [% patron.altcontactaddress2 | html %]
571 <span class="label">City: </span>
572 [% patron.altcontactaddress3 | html %]
575 [% IF ( patron.altcontactstate ) %]
577 <span class="label">State: </span>
578 [% patron.altcontactstate | html %]
583 <span class="label">ZIP/Postal code: </span>
584 [% patron.altcontactzipcode | html %]
586 [% IF ( patron.altcontactcountry ) %]
588 <span class="label">Country: </span>
589 [% patron.altcontactcountry | html %]
592 [% IF ( patron.altcontactphone ) %]
594 <span class="label">Phone: </span>
595 <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
599 </div> [% # /div.rows %]
600 </div> [% # /div#patron-alternative-contact %]
602 <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=2">Edit</a>
604 </div> [% # /div.yui-u %]
605 </div> [% # /div.yui-g %]
607 <div id="finesholdsissues" class="toptabs">
610 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
612 [% IF relatives_issues_count %]
614 <a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a>
618 <a href="#finesandcharges">Fines & Charges</a>
620 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
622 [% IF ( holds_count ) %]
623 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
625 <a href="#reserves" id="holds-tab">0 Holds</a>
629 [% IF Koha.Preference('ArticleRequests') %]
631 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
635 <a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a>
637 [% SET enrollments = patron.get_club_enrollments(1) %]
638 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
639 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
641 <a id="clubs-tab-link" href="#clubs-tab">
642 Clubs ([% enrollments.count %]/[% enrollable.count %])
648 [% INCLUDE "checkouts-table.inc" %]
650 [% IF ( relatives_issues_count ) %]
651 <div id="relatives-issues">
652 <table id="relatives-issues-table" style="width: 100% !Important;">
655 <th scope="col">Due date hidden not formatted</th>
656 <th scope="col">Due date</th>
657 <th scope="col">Title</th>
658 <th scope="col">Item type</th>
659 <th scope="col">Location</th>
660 <th scope="col">Checked out on</th>
661 <th scope="col">Checked out from</th>
662 <th scope="col">Call no</th>
663 <th scope="col">Charge</th>
664 <th scope="col">Fine</th>
665 <th scope="col">Price</th>
666 <th scope="col">Patron</th>
673 <div id="finesandcharges">
674 [% IF ( totaldue_raw ) %]
675 <p>Total due: [% totaldue %]</p>
677 <p>No outstanding charges</p>
681 [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
687 [% INCLUDE borrower_debarments.inc %]
689 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
691 [% IF ( holds_count ) %]
692 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
693 <input type="hidden" name="from" value="circ" />
694 <table id="holds-table" style="width: 100% !Important;">
710 <fieldset class="action">
711 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
715 [% IF Koha.Preference('SuspendHoldsIntranet') %]
716 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
717 <fieldset class="action">
718 <input type="hidden" name="from" value="borrower" />
719 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
720 <input type="submit" value="Suspend all holds" />
722 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
723 <label for="suspend_until">until</label>
724 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
725 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
730 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
731 <fieldset class="action">
732 <input type="hidden" name="from" value="borrower" />
733 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
734 <input type="hidden" name="suspend" value="0" />
735 <input type="submit" value="Resume all suspended holds" />
738 [% END # IF SuspendHoldsIntranet %]
741 <p>Patron has nothing on hold.</p>
743 </div> [% # /div#reserves %]
746 [% IF Koha.Preference('ArticleRequests') %]
747 [% INCLUDE 'patron-article-requests.inc' %]
750 </div> [% # /div#finesholdsissues %]
751 </div> [% # /div.yui-b %]
752 </div> [% # /div#yui-main %]
755 [% INCLUDE 'circ-menu.inc' %]
757 </div> [% # /div#bd %]
759 [% MACRO jsinclude BLOCK %]
760 [% INCLUDE 'datatables.inc' %]
761 [% INCLUDE 'columns_settings.inc' %]
762 [% INCLUDE 'strings.inc' %]
763 [% INCLUDE 'calendar.inc' %]
764 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
765 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") %]
766 [% INCLUDE 'timepicker.inc' %]
767 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") %]
768 [% Asset.js("js/pages/circulation.js") %]
769 [% Asset.js("js/checkouts.js") %]
770 [% Asset.js("js/holds.js") %]
771 [% Asset.js("js/members-menu.js") %]
772 [% Asset.js("js/messaging-preference-form.js") %]
774 /* Set some variable needed in circulation.js */
775 var interface = "[% interface %]";
776 var theme = "[% theme %]";
777 var borrowernumber = "[% patron.borrowernumber %]";
778 var branchcode = "[% Branches.GetLoggedInBranchcode() %]";
779 var exports_enabled = "[% Koha.Preference('ExportCircHistory') %]";
780 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]
781 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
782 var script = "moremember";
783 var relatives_borrowernumbers = new Array();
784 [% FOREACH b IN relatives_borrowernumbers %]
785 relatives_borrowernumbers.push("[% b %]");
788 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
789 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
791 columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %]
793 $(document).ready(function() {
794 if ( $('#clubs-tab').length ) {
795 $('#clubs-tab-link').on('click', function() {
796 $('#clubs-tab').text(_("Loading..."));
797 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% borrowernumber %]');
801 $('#finesholdsissues').tabs({
802 // Correct table sizing for tables hidden in tabs
803 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
804 "show": function(event, ui) {
805 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
806 if ( oTable.length > 0 ) {
807 oTable.fnAdjustColumnSizing();
810 "activate": function( event, ui ) {
811 $('#'+ui.newTab.context.id).click();
814 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
817 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
820 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
824 [% IF ( patron.image ) %]
825 $('#delpicture').click(function(){
826 return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
828 $('#manage-patron-image').find("input[value*=Upload]").click(function(){
829 if($("#uploadfile").val() == ""){
830 alert(_("Please choose a file to upload"));
833 return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
837 $("#suspend_until").datepicker({
838 onClose: function(dateText, inst) {
839 validate_date(dateText, inst);
841 minDate: 1, // require that hold suspended until date is after today
842 }).on("change", function(e, value) {
843 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
846 $("#view_restrictions").on("click",function(){
847 $('#debarments-tab-link').click();
850 function uncheck_sibling(me){
851 nodename=me.getAttribute("name");
852 if (nodename =="barcodes[]"){
853 var Node=me.parentNode.previousSibling;
854 while (Node.nodeName!="TD"){Node=Node.previousSibling}
855 var Nodes=Node.childNodes;
856 for (var i=0;i < Nodes.length;i++){
857 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
858 Nodes[i].checked=false;
862 var Node=me.parentNode.nextSibling;
863 while (Node.nodeName!="TD"){Node=Node.nextSibling}
864 var Nodes=Node.childNodes;
865 for (var i=0;i<Nodes.length;i++){
866 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
867 Nodes[i].checked=false;
873 function validate1(date) {
874 var today = new Date();
875 if ( date < today ) {
884 [% INCLUDE 'intranet-bottom.inc' %]