4 [% USE AuthorisedValues %]
5 [% USE ColumnsSettings %]
6 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
7 [% SET exports_enabled = 1 %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha › Patrons ›
11 [% IF ( unknowuser ) %]
14 Patron details for [% INCLUDE 'patron-title.inc' %]
17 [% INCLUDE 'doc-head-close.inc' %]
18 [% INCLUDE 'calendar.inc' %]
19 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
20 [% INCLUDE 'datatables.inc' %]
21 [% INCLUDE 'columns_settings.inc' %]
22 [% INCLUDE 'strings.inc' %]
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
24 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
25 [% INCLUDE 'timepicker.inc' %]
26 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
27 <script type="text/javascript" src="[% interface %]/[% theme %]/js/pages/circulation.js"></script>
28 <script type="text/javascript" src="[% interface %]/[% theme %]/js/checkouts.js"></script>
29 <script type="text/javascript" src="[% interface %]/[% theme %]/js/holds.js"></script>
30 <script type="text/JavaScript">
32 /* Set some variable needed in circulation.js */
33 var interface = "[% interface %]";
34 var theme = "[% theme %]";
35 var borrowernumber = "[% borrowernumber %]";
36 var branchcode = "[% Branches.GetLoggedInBranchcode() %]";
37 var exports_enabled = "[% exports_enabled %]";
38 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]
39 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
40 var script = "moremember";
41 var relatives_borrowernumbers = new Array();
42 [% FOREACH b IN relatives_borrowernumbers %]
43 relatives_borrowernumbers.push("[% b %]");
46 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
48 columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %]
50 $(document).ready(function() {
51 $('#finesholdsissues').tabs({
52 // Correct table sizing for tables hidden in tabs
53 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
54 "show": function(event, ui) {
55 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
56 if ( oTable.length > 0 ) {
57 oTable.fnAdjustColumnSizing();
60 "activate": function( event, ui ) {
61 $('#'+ui.newTab.context.id).click();
64 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
67 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
70 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
75 // new YAHOO.widget.Button("delpicture"); // FIXME: formatting mismatch between YUI and normal button
76 $('#delpicture').click(function(){
77 return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
79 $('#manage-patron-image').find("input[value*=Upload]").click(function(){
80 if($("#uploadfile").val() == ""){
81 alert(_("Please choose a file to upload"));
84 return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
87 $("#suspend_until").datepicker({
88 onClose: function(dateText, inst) {
89 validate_date(dateText, inst);
91 minDate: 1, // require that hold suspended until date is after today
92 }).on("change", function(e, value) {
93 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
96 $("#view_restrictions").on("click",function(){
97 $('#debarments-tab-link').click();
100 function uncheck_sibling(me){
101 nodename=me.getAttribute("name");
102 if (nodename =="barcodes[]"){
103 var Node=me.parentNode.previousSibling;
104 while (Node.nodeName!="TD"){Node=Node.previousSibling}
105 var Nodes=Node.childNodes;
106 for (var i=0;i < Nodes.length;i++){
107 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
108 Nodes[i].checked=false;
113 var Node=me.parentNode.nextSibling;
114 while (Node.nodeName!="TD"){Node=Node.nextSibling}
115 var Nodes=Node.childNodes;
116 for (var i=0;i<Nodes.length;i++){
117 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
118 Nodes[i].checked=false;
123 function validate1(date) {
124 var today = new Date();
125 if ( date < today ) {
135 <body id="pat_moremember" class="pat">
136 [% INCLUDE 'header.inc' %]
137 [% INCLUDE 'patron-search.inc' %]
139 <div id="breadcrumbs">
140 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
141 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
142 › [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
145 <div id="doc3" class="yui-t2">
151 [% UNLESS ( unknowuser ) %]
152 [% INCLUDE 'members-toolbar.inc' %]
156 <div class="dialog alert">
157 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
158 <h3>Unable to delete staff user</h3>
159 <p>Insufficient privileges.</p>
161 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
162 <h3>Not allowed to delete own account</h3>
163 <p>Deleting your own account would lock you out of Koha.</p>
165 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
166 <h3>Unable to delete patrons from other libraries with current settings</h3>
167 <p>Insufficient privileges.</p>
169 [% IF ( error == 'CANT_DELETE' ) %]
170 <h3>Unable to delete patron</h3>
171 <p>Insufficient privileges.</p>
177 [% IF ( unknowuser ) %]
178 <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
180 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry | $KohaDates %]</div>[% END %]
183 [% INCLUDE 'blocked-fines.inc' %]
187 <div id="circmessages" class="circmessage attention">
189 [% IF ( userdebarred ) %]
190 <li class="blocker">Patron's account is restricted
191 [% IF ( userdebarreddate ) %]
192 until [% userdebarreddate %]
195 [% IF ( debarredcomment ) %]
196 with the explanation: <i>
197 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
198 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
200 [% debarredcomment | html_line_break %]
204 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
207 [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
208 [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
213 <h3>[% UNLESS ( I ) %]
214 [% title | html %] [% firstname | html %] [% END %] [% surname | html %] ([% cardnumber | html %])</h3>
215 <div class="yui-u first">
216 <div id="patron-information" style="padding : .5em;">
218 [% UNLESS ( I ) %][% IF ( othernames ) %]“[% othernames | html %]”[% END %]
220 <div class = "address">
221 [% IF Koha.Preference( 'AddressFormat' ) %]
222 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
224 [% INCLUDE 'member-display-address-style-us.inc' %]
231 [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span><a href="tel:[% phonepro %]">[% phonepro | html %]</a></li>[% END %]
232 [% IF ( emailpro ) %]<li class="email"><span class="label">Organization email: </span>[% emailpro | html %]</li>[% END %]
234 [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone | html %]</a></li>[% END %]
235 [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro | html %]</a></li>[% END %]
236 [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile | html %]</a></li>[% END %]
239 [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
241 [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email | url %]">[% email | html %]</a></li>[% END %]
242 [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro | url %]">[% emailpro | html %]</a></li>[% END %]
244 [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
245 [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
246 [% IF ( sex ) %]<li><span class="label">Gender:</span>
247 [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
248 </li>[% END %][% END %]
251 <span class="label">Guarantees:</span>
253 [% FOREACH guarantee IN guarantees %]
254 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
258 [% ELSIF guarantor %]
260 <span class="label">Guarantor:</span>
261 [% IF guarantor.borrowernumber %]
262 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
264 [% guarantor.firstname | html %] [% guarantor.surname | html %]
271 [% IF ( guarantor.borrowernumber ) %]
272 <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1&guarantorid=[% guarantor.borrowernumber %]">Edit</a>
274 <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1">Edit</a>
279 <!-- Begin Upload Patron Image Section -->
281 <div id="manage-patron-image">
282 [% IF ( patronimages ) %]
283 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
284 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
285 <fieldset class="brief">
287 <legend>Manage patron image</legend>
288 <div class="hint">To update the image for [% title | html %] [% surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
290 <legend>Upload patron image</legend>
291 <div class="hint">[% title %] [% firstname | html %] [% surname | html %] does not currently have an image available. To import an image for [% title %] [% surname | html %], enter the name of an image file to upload.
293 <br />Only PNG, GIF, JPEG, XPM formats are supported.
295 <input type="hidden" id="image" name="filetype" value="image" />
296 <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" />
297 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
300 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
303 <fieldset class="action">
304 <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
305 <input type="submit" value="Upload" class="submit" />
306 <input name="op" type="hidden" value="Upload" />
307 [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %]
315 <!-- End Upload Patron Image Section -->
317 [% IF Koha.Preference('HouseboundModule') %]
318 <div id="houseboundroles">
319 <h3>Housebound roles</h3>
323 <span class="label">Chooser:</span>
324 [% IF ( housebound_role.housebound_chooser == 1 ) %]
331 <span class="label">Deliverer:</span>
332 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
341 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=4">Edit</a></div>
344 [% IF ( ExtendedPatronAttributes ) %]
345 [% UNLESS ( no_patron_attribute_types ) %]
346 <div id="patron-extended-attributes" style="padding-top: 1em;">
347 <h3>Additional attributes and identifiers</h3>
348 [% FOREACH attribute IN attributes_loop %]
349 [% IF attribute.class %]
350 <div id="aai_[% attribute.class %]" class="rows">
352 <div id="aai" class="rows">
354 <h4>[% attribute.lib %]</h4>
356 [% FOREACH item IN attribute.items %]
358 <span class="label">[% item.description %]: </span>
359 [% IF ( item.value_description ) %]
360 [% item.value_description %]
362 [% item.value| html_line_break %]
370 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=4">Edit</a></div>
375 [% IF ( EnhancedMessagingPreferences ) %]
376 <div id="patron-messaging-prefs" style="padding-top: 1em;">
377 <h3>Patron messaging preferences</h3>
378 [% INCLUDE 'messaging-preference-form.inc' %]
379 [% IF ( SMSSendDriver ) %]
380 <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% SMSnumber %]">[% SMSnumber %]</a>
384 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=5">Edit</a></div>
389 <div id="patron-library-details">
393 <li><span class="label">Card number: </span>[% cardnumber %]</li>
394 <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
395 <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
396 <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
398 <li><span class="label">Expiration date: </span>
399 [% IF ( was_renewed ) %]
400 <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
402 [% dateexpiry | $KohaDates %]
406 <li><span class="label">Library: </span>[% branchname %]</li>
408 [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
409 [% IF ( privacy0 ) %]Forever[% END %]
410 [% IF ( privacy1 ) %]Default[% END %]
411 [% IF ( privacy2 ) %]Never[% END %]
415 <span class="label">Show checkouts to guarantor</span>
416 [% IF privacy_guarantor_checkouts %]
423 [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', sort1) %]</li>[% END %]
424 [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', sort2) %]</li>[% END %]
425 <li><span class="label">Username: </span>[% userid %]</li>
426 <li><span class="label">Password: </span>
427 [% IF ( password ) %]
430 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
433 [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
434 [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
435 [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
436 [% IF ( sync == 1 ) %]
437 <li><span class="label">Activate sync: </span>Yes</li>
438 [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
439 [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
441 <li><span class="label">Activate sync: </span>No</li>
444 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
445 <li><span class="label">Check previous checkouts: </span>
446 [% IF ( checkprevcheckout == 'yes' ) %]
448 [% ELSIF ( checkprevcheckout == 'no' ) %]
458 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=3">Edit</a></div>
461 <div id="patron-alternate-address" style="padding-top: 1em;">
462 <h3>Alternate address</h3>
464 [% IF Koha.Preference( 'AddressFormat' ) %]
465 [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
467 [% INCLUDE 'member-display-alt-address-style-us.inc' %]
470 <div class="rows"> <ol>
471 [% IF ( B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% B_phone %]">[% B_phone %]</a></li>[% END %]
472 [% IF ( B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% B_email %]" href="mailto:[% B_email %]">[% B_email %]</a></li>[% END %]
473 [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote %]</li>[% END %]
477 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=6">Edit</a></div>
480 <div id="patron-alternative-contact" style="padding-top: 1em;">
481 <h3>Alternative contact</h3>
482 <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname | html %]</li>
483 <li><span class="label">First name: </span>[% altcontactfirstname | html %]</li>
484 <li><span class="label">Address: </span>[% altcontactaddress1 | html %]</li>
485 <li><span class="label">Address 2: </span>[% altcontactaddress2 | html %]</li>
486 <li><span class="label">City: </span>[% altcontactaddress3 | html %]</li>
487 [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate | html %]</li>[% END %]
488 <li><span class="label">ZIP/Postal code: </span>[% altcontactzipcode | html %]</li>
489 [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry | html %]</li>[% END %]
490 [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone | url %]">[% altcontactphone | html %]</a></li>[% END %]
493 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=2">Edit</a></div>
498 <div id="finesholdsissues" class="toptabs">
500 <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
501 [% IF relatives_issues_count %]
502 <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
504 <li><a href="#finesandcharges">Fines & Charges</a></li>
506 [% IF ( holds_count ) %]
507 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
509 <a href="#reserves" id="holds-tab">0 Holds</a>
512 [% IF Koha.Preference('ArticleRequests') %]
514 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
517 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
520 [% INCLUDE "checkouts-table.inc" %]
522 [% IF ( relatives_issues_count ) %]
523 <div id="relatives-issues">
524 <table id="relatives-issues-table" style="width: 100% !Important;">
527 <th scope="col">Due date hidden not formatted</th>
528 <th scope="col">Due date</th>
529 <th scope="col">Title</th>
530 <th scope="col">Item type</th>
531 <th scope="col">Location</th>
532 <th scope="col">Checked out on</th>
533 <th scope="col">Checked out from</th>
534 <th scope="col">Call no</th>
535 <th scope="col">Charge</th>
536 <th scope="col">Fine</th>
537 <th scope="col">Price</th>
538 <th scope="col">Patron</th>
545 <div id="finesandcharges">
546 [% IF ( totaldue_raw ) %]
547 <p>Total due: [% totaldue %]</p>
549 <p>No outstanding charges</p>
553 [% INCLUDE borrower_debarments.inc %]
556 [% IF ( holds_count ) %]
557 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
558 <input type="hidden" name="from" value="circ" />
559 <table id="holds-table" style="width: 100% !Important;">
575 <fieldset class="action">
576 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
580 [% IF SuspendHoldsIntranet %]
581 <fieldset class="action">
582 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
583 <input type="hidden" name="from" value="borrower" />
584 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
585 <input type="submit" value="Suspend all holds" />
587 [% IF AutoResumeSuspendedHolds %]
588 <label for="suspend_until">until</label>
589 <input type="text" size="10" id="suspend_until" name="suspend_until datepicker"/>
590 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
595 <fieldset class="action">
596 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
597 <input type="hidden" name="from" value="borrower" />
598 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
599 <input type="hidden" name="suspend" value="0" />
600 <input type="submit" value="Resume all suspended holds" />
603 [% END # IF SuspendHoldsIntranet %]
605 [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
609 [% IF Koha.Preference('ArticleRequests') %]
610 [% INCLUDE 'patron-article-requests.inc' %]
614 [% END %] <!-- unknowuser -->
620 [% INCLUDE 'circ-menu.inc' %]
623 [% INCLUDE 'intranet-bottom.inc' %]