3 [% USE AuthorisedValues %]
4 [% USE ColumnsSettings %]
5 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
6 [% SET exports_enabled = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Patrons ›
10 [% IF ( unknowuser ) %]
13 Patron details for [% INCLUDE 'patron-title.inc' %]
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% INCLUDE 'calendar.inc' %]
18 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
19 [% INCLUDE 'datatables.inc' %]
20 [% INCLUDE 'columns_settings.inc' %]
21 [% INCLUDE 'strings.inc' %]
22 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
24 [% INCLUDE 'timepicker.inc' %]
25 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
26 <script type="text/javascript" src="[% interface %]/[% theme %]/js/pages/circulation.js"></script>
27 <script type="text/javascript" src="[% interface %]/[% theme %]/js/checkouts.js"></script>
28 <script type="text/javascript" src="[% interface %]/[% theme %]/js/holds.js"></script>
29 <script type="text/JavaScript">
31 /* Set some variable needed in circulation.js */
32 var interface = "[% interface %]";
33 var theme = "[% theme %]";
34 var borrowernumber = "[% borrowernumber %]";
35 var branchcode = "[% branch %]";
36 var exports_enabled = "[% exports_enabled %]";
37 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]
38 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
39 var script = "moremember";
40 var relatives_borrowernumbers = new Array();
41 [% FOREACH b IN relatives_borrowernumbers %]
42 relatives_borrowernumbers.push("[% b %]");
45 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
47 columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %]
49 $(document).ready(function() {
50 $('#finesholdsissues').tabs({
51 // Correct table sizing for tables hidden in tabs
52 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
53 "show": function(event, ui) {
54 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
55 if ( oTable.length > 0 ) {
56 oTable.fnAdjustColumnSizing();
59 "activate": function( event, ui ) {
60 $('#'+ui.newTab.context.id).click();
63 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
66 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
69 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
74 // new YAHOO.widget.Button("delpicture"); // FIXME: formatting mismatch between YUI and normal button
75 $('#delpicture').click(function(){
76 return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
78 $('#manage-patron-image').find("input[value*=Upload]").click(function(){
79 if($("#uploadfile").val() == ""){
80 alert(_("Please choose a file to upload"));
83 return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
86 $("#suspend_until").datepicker({ minDate: 1 }); // require that hold suspended until date is after today
87 $("#newduedate").datetimepicker({
88 minDate: 1, // require that renewal date is after today
92 $("#view_restrictions").on("click",function(){
93 $('#debarments-tab-link').click();
96 function uncheck_sibling(me){
97 nodename=me.getAttribute("name");
98 if (nodename =="barcodes[]"){
99 var Node=me.parentNode.previousSibling;
100 while (Node.nodeName!="TD"){Node=Node.previousSibling}
101 var Nodes=Node.childNodes;
102 for (var i=0;i < Nodes.length;i++){
103 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
104 Nodes[i].checked=false;
109 var Node=me.parentNode.nextSibling;
110 while (Node.nodeName!="TD"){Node=Node.nextSibling}
111 var Nodes=Node.childNodes;
112 for (var i=0;i<Nodes.length;i++){
113 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
114 Nodes[i].checked=false;
119 function validate1(date) {
120 var today = new Date();
121 if ( date < today ) {
131 <body id="pat_moremember" class="pat">
132 [% INCLUDE 'header.inc' %]
133 [% INCLUDE 'patron-search.inc' %]
135 <div id="breadcrumbs">
136 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
137 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
138 › [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
141 <div id="doc3" class="yui-t2">
147 [% UNLESS ( unknowuser ) %]
148 [% INCLUDE 'members-toolbar.inc' %]
152 <div class="dialog alert">
153 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
154 <h3>Unable to delete staff user</h3>
155 <p>Insufficient privileges.</p>
157 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
158 <h3>Not allowed to delete own account</h3>
159 <p>Deleting your own account would lock you out of Koha.</p>
161 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
162 <h3>Unable to delete patrons from other libraries with current settings</h3>
163 <p>Insufficient privileges.</p>
165 [% IF ( error == 'CANT_DELETE' ) %]
166 <h3>Unable to delete patron</h3>
167 <p>Insufficient privileges.</p>
173 [% IF ( unknowuser ) %]
174 <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
176 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry | $KohaDates %]</div>[% END %]
179 [% INCLUDE 'blocked-fines.inc' %]
183 <div id="circmessages" class="circmessage attention">
185 [% IF ( userdebarred ) %]
186 <li class="blocker">Patron's account is restricted
187 [% IF ( userdebarreddate ) %]
188 until [% userdebarreddate %]
191 [% IF ( debarredcomment ) %]
192 with the explanation: <i>
193 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
194 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
196 [% debarredcomment | html_line_break %]
199 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
202 [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
203 [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
208 <h3>[% UNLESS ( I ) %]
209 [% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
210 <div class="yui-u first">
211 <div id="patron-information" style="padding : .5em;">
213 [% UNLESS ( I ) %][% IF ( othernames ) %]“[% othernames %]”[% END %]
215 <div class = "address">
216 [% IF Koha.Preference( 'AddressFormat' ) %]
217 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
219 [% INCLUDE 'member-display-address-style-us.inc' %]
226 [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
227 [% IF ( emailpro ) %]<li class="email"><span class="label">Organization email: </span>[% emailpro %]</li>[% END %]
229 [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
230 [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
231 [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
235 [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
236 [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
238 [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
240 [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email %]">[% email %]</a></li>[% END %]
241 [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
243 [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
244 [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
245 [% IF ( sex ) %]<li><span class="label">Gender:</span>
246 [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
247 </li>[% END %][% END %]
250 <span class="label">Guarantees:</span>
252 [% FOREACH guarantee IN guarantees %]
253 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname %] [% guarantee.surname %]</a></li>
257 [% ELSIF guarantor %]
259 <span class="label">Guarantor:</span>
260 [% IF guarantor.borrowernumber %]
261 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname %] [% guarantor.surname %]</a>
263 [% guarantor.firstname %] [% guarantor.surname %]
270 [% IF ( guarantorborrowernumber ) %]
271 <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1&guarantorid=[% guarantorborrowernumber %]">Edit</a>
273 <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1">Edit</a>
278 <!-- Begin Upload Patron Image Section -->
280 <div id="manage-patron-image">
281 [% IF ( patronimages ) %]
282 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
283 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
284 <fieldset class="brief">
286 <legend>Manage patron image</legend>
287 <div class="hint">To update the image for [% title %] [% surname %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
289 <legend>Upload patron image</legend>
290 <div class="hint">[% title %] [% firstname %] [% surname %] does not currently have an image available. To import an image for [% title %] [% surname %], enter the name of an image file to upload.
292 <br />Only PNG, GIF, JPEG, XPM formats are supported.
294 <input type="hidden" id="image" name="filetype" value="image" />
295 <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber %]" />
296 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
299 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
302 <fieldset class="action">
303 <input type="submit" value="Upload" class="submit" />
304 <input name="op" type="hidden" value="Upload" />
305 [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% borrowernumber %]" class="delete">Delete</a>[% END %]
313 <!-- End Upload Patron Image Section -->
315 [% IF ( ExtendedPatronAttributes ) %]
316 [% UNLESS ( no_patron_attribute_types ) %]
317 <div id="patron-extended-attributes" style="padding-top: 1em;">
318 <h3>Additional attributes and identifiers</h3>
319 [% FOREACH attribute IN attributes_loop %]
320 [% IF attribute.class %]
321 <div id="aai_[% attribute.class %]" class="rows">
323 <div id="aai" class="rows">
325 <h4>[% attribute.lib %]</h4>
327 [% FOREACH item IN attribute.items %]
329 <span class="label">[% item.description %]: </span>
330 [% IF ( item.value_description ) %]
331 [% item.value_description %]
333 [% item.value| html_line_break %]
341 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=4">Edit</a></div>
345 [% IF ( EnhancedMessagingPreferences ) %]
346 <div id="patron-messaging-prefs" style="padding-top: 1em;">
347 <h3>Patron messaging preferences</h3>
348 [% INCLUDE 'messaging-preference-form.inc' %]
349 [% IF ( SMSSendDriver ) %]
350 <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% SMSnumber %]">[% SMSnumber %]</a>
354 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=5">Edit</a></div>
359 <div id="patron-library-details">
363 <li><span class="label">Card number: </span>[% cardnumber %]</li>
364 <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
365 <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
366 <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
368 <li><span class="label">Expiration date: </span>
369 [% IF ( was_renewed ) %]
370 <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
372 [% dateexpiry | $KohaDates %]
376 <li><span class="label">Library: </span>[% branchname %]</li>
378 [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
379 [% IF ( privacy0 ) %]Forever[% END %]
380 [% IF ( privacy1 ) %]Default[% END %]
381 [% IF ( privacy2 ) %]Never[% END %]
385 <span class="label">Show checkouts to guarantor</span>
386 [% IF privacy_guarantor_checkouts %]
393 [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
394 [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
395 <li><span class="label">Username: </span>[% userid %]</li>
396 <li><span class="label">Password: </span>
397 [% IF ( password ) %]
400 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
403 [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
404 [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
405 [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
406 [% IF ( sync == 1 ) %]
407 <li><span class="label">Activate sync: </span>Yes</li>
408 [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
409 [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
411 <li><span class="label">Activate sync: </span>No</li>
414 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
415 <li><span class="label">Check previous checkouts: </span>
416 [% IF ( checkprevcheckout == 'yes' ) %]
418 [% ELSIF ( checkprevcheckout == 'no' ) %]
428 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=3">Edit</a></div>
431 <div id="patron-alternate-address" style="padding-top: 1em;">
432 <h3>Alternate address</h3>
433 <div class="rows"> <ol><li><span class="label">Address: </span>[% B_address %]</li>
434 <li><span class="label">Address 2: </span>[% B_address2 %]</li>
435 <li><span class="label">City: </span>[% B_city %]</li>
436 [% IF ( B_state ) %]<li><span class="label">State: </span>[% B_state %]</li>[% END %]
437 <li><span class="label">ZIP/Postal code: </span>[% B_zipcode %]</li>
438 [% IF ( B_country ) %]<li><span class="label">Country: </span>[% B_country %]</li>[% END %]
439 [% IF ( B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% B_phone %]">[% B_phone %]</a></li>[% END %]
440 [% IF ( B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% B_email %]" href="mailto:[% B_email %]">[% B_email %]</a></li>[% END %]
441 [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote %]</li>[% END %]
445 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=6">Edit</a></div>
448 <div id="patron-alternative-contact" style="padding-top: 1em;">
449 <h3>Alternative contact</h3>
450 <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname %]</li>
451 <li><span class="label">First name: </span>[% altcontactfirstname %]</li>
452 <li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
453 <li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
454 <li><span class="label">City: </span>[% altcontactaddress3 %]</li>
455 [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
456 <li><span class="label">ZIP/Postal code: </span>[% altcontactzipcode %]</li>
457 [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
458 [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone %]">[% altcontactphone %]</a></li>[% END %]
461 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=2">Edit</a></div>
466 <div id="finesholdsissues" class="toptabs">
468 <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
469 [% IF relatives_issues_count %]
470 <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
472 <li><a href="#finesandcharges">Fines & Charges</a></li>
474 [% IF ( holds_count ) %]
475 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
477 <a href="#reserves" id="holds-tab">0 Holds</a>
480 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
483 [% INCLUDE "checkouts-table.inc" %]
485 [% IF ( relatives_issues_count ) %]
486 <div id="relatives-issues">
487 <table id="relatives-issues-table" style="width: 100% !Important;">
490 <th scope="col">Due date hidden not formatted</th>
491 <th scope="col">Due date</th>
492 <th scope="col">Title</th>
493 <th scope="col">Item type</th>
494 <th scope="col">Location</th>
495 <th scope="col">Checked out on</th>
496 <th scope="col">Checked out from</th>
497 <th scope="col">Call no</th>
498 <th scope="col">Charge</th>
499 <th scope="col">Fine</th>
500 <th scope="col">Price</th>
501 <th scope="col">Patron</th>
508 <div id="finesandcharges">
509 [% IF ( totaldue_raw ) %]
510 <p>Total due: [% totaldue %]</p>
512 <p>No outstanding charges</p>
516 [% INCLUDE borrower_debarments.inc %]
519 [% IF ( holds_count ) %]
520 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
521 <input type="hidden" name="from" value="circ" />
522 <table id="holds-table" style="width: 100% !Important;">
538 <fieldset class="action">
539 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
543 [% IF SuspendHoldsIntranet %]
544 <fieldset class="action">
545 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
546 <input type="hidden" name="from" value="borrower" />
547 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
548 <input type="submit" value="Suspend all holds" />
550 [% IF AutoResumeSuspendedHolds %]
551 <label for="suspend_until">until</label>
552 <input type="text" size="10" id="suspend_until" name="suspend_until"/>
553 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
558 <fieldset class="action">
559 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
560 <input type="hidden" name="from" value="borrower" />
561 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
562 <input type="hidden" name="suspend" value="0" />
563 <input type="submit" value="Resume all suspended holds" />
566 [% END # IF SuspendHoldsIntranet %]
568 [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
572 [% END %] <!-- unknowuser -->
578 [% INCLUDE 'circ-menu.inc' %]
581 [% INCLUDE 'intranet-bottom.inc' %]