3 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
4 [% SET exports_enabled = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Patrons ›
8 [% IF ( unknowuser ) %]
11 Patron details for [% INCLUDE 'patron-title.inc' %]
14 [% INCLUDE 'doc-head-close.inc' %]
15 [% INCLUDE 'calendar.inc' %]
16 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
17 [% INCLUDE 'datatables.inc' %]
18 [% INCLUDE 'strings.inc' %]
19 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
20 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
21 [% INCLUDE 'timepicker.inc' %]
22 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
23 <script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script>
24 <script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script>
25 <script type="text/javascript" src="[% themelang %]/js/holds.js"></script>
26 <script type="text/JavaScript">
28 /* Set some variable needed in circulation.js */
29 var interface = "[% interface %]";
30 var theme = "[% theme %]";
31 var borrowernumber = "[% borrowernumber %]";
32 var branchcode = "[% branch %]";
33 var exports_enabled = "[% exports_enabled %]";
34 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && AllowRenewalLimitOverride)? 1: 0 %];
35 var script = "moremember";
36 var relatives_borrowernumbers = new Array();
37 [% FOREACH b IN relatives_borrowernumbers %]
38 relatives_borrowernumbers.push("[% b %]");
41 var MSG_ADD_MESSAGE = _("Add a new message");
42 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
44 $(document).ready(function() {
45 $('#finesholdsissues').tabs({
46 // Correct table sizing for tables hidden in tabs
47 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
48 "show": function(event, ui) {
49 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
50 if ( oTable.length > 0 ) {
51 oTable.fnAdjustColumnSizing();
54 "activate": function( event, ui ) {
55 $('#'+ui.newTab.context.id).click();
58 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
61 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
64 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
69 // new YAHOO.widget.Button("delpicture"); // FIXME: formatting mismatch between YUI and normal button
70 $('#delpicture').click(function(){
71 return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
73 $('#manage-patron-image').find("input[value*=Upload]").click(function(){
74 if($("#uploadfile").val() == ""){
75 alert(_("Please choose a file to upload"));
78 return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
81 $("#suspend_until").datepicker({ minDate: 1 }); // require that hold suspended until date is after today
82 $("#newduedate").datetimepicker({
83 minDate: 1, // require that renewal date is after today
88 function uncheck_sibling(me){
89 nodename=me.getAttribute("name");
90 if (nodename =="barcodes[]"){
91 var Node=me.parentNode.previousSibling;
92 while (Node.nodeName!="TD"){Node=Node.previousSibling}
93 var Nodes=Node.childNodes;
94 for (var i=0;i < Nodes.length;i++){
95 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
96 Nodes[i].checked=false;
101 var Node=me.parentNode.nextSibling;
102 while (Node.nodeName!="TD"){Node=Node.nextSibling}
103 var Nodes=Node.childNodes;
104 for (var i=0;i<Nodes.length;i++){
105 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
106 Nodes[i].checked=false;
111 function validate1(date) {
112 var today = new Date();
113 if ( date < today ) {
123 <body id="pat_moremember" class="pat">
124 [% INCLUDE 'header.inc' %]
125 [% INCLUDE 'patron-search.inc' %]
127 <div id="breadcrumbs">
128 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
129 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
130 › [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
133 <div id="doc3" class="yui-t1">
138 [% INCLUDE 'members-toolbar.inc' %]
141 <div class="dialog alert">
142 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
143 <h3>Unable to delete staff user</h3>
144 <p>Insufficient privileges.</p>
146 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
147 <h3>Not allowed to delete own account</h3>
148 <p>Deleting your own account would lock you out of Koha.</p>
150 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
151 <h3>Unable to delete patrons from other libraries with current settings</h3>
152 <p>Insufficient privileges.</p>
154 [% IF ( error == 'CANT_DELETE' ) %]
155 <h3>Unable to delete patron</h3>
156 <p>Insufficient privileges.</p>
162 [% IF ( unknowuser ) %]
163 <div class="dialog message">This patron does not exist.</div>
165 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
168 <div id="circmessages" class="circmessage attention">
170 [% IF ( userdebarred ) %]
171 <li class="blocker">Patron's account is restricted
172 [% IF ( userdebarreddate ) %]
173 until [% userdebarreddate %]
176 [% IF ( debarredcomment ) %]
177 with the explanation: <i>[% debarredcomment | html_line_break %]</i>
179 <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
182 [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
183 [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
188 <h3>[% UNLESS ( I ) %]
189 [% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
190 <div class="yui-u first">
191 <div id="patron-information" style="padding : .5em;">
193 [% UNLESS ( I ) %][% IF ( othernames ) %]“[% othernames %]”[% END %]
197 [% IF ( address2 ) %][% address2 %]<br />[% END %]
198 [% IF ( city ) %][% city %][% END %]
199 [% IF ( state ) %][% state %][% END %]
200 [% IF ( zipcode ) %][% zipcode %]<br />[% END %]
201 [% IF ( country ) %][% country %][% END %]</p>
206 [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span>[% phonepro %]</li>[% END %]
207 [% IF ( emailpro ) %]<li><span class="label">Organization email: </span>[% emailpro %]</li>[% END %]
209 [% IF ( phone ) %]<li><span class="label">Primary phone: </span>[% phone %]</li>[% END %]
210 [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span>[% phonepro %]</li>[% END %]
211 [% IF ( mobile ) %]<li><span class="label">Other phone: </span>[% mobile %]</li>[% END %]
215 [% IF ( phone ) %]<li><span class="label">Primary phone: </span>[% phone %]</li>[% END %]
216 [% IF ( mobile ) %]<li><span class="label">Other phone: </span>[% mobile %]</li>[% END %]
218 [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
220 [% IF ( email ) %]<li><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
221 [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
223 [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
224 [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth %]</li>[% END %]
225 [% IF ( sex ) %]<li><span class="label">Gender:</span>
226 [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
227 </li>[% END %][% END %]
228 [% IF ( printethnicityline ) %]
229 <li><span class="label">Ethnicity:</span>[% ethnicity %]</li>
230 <li><span class="label">Ethnicity notes: </span>[% ethnotes %]</li>
232 [% IF ( isguarantee ) %]
233 [% IF ( guaranteeloop ) %]
234 <li><span class="label">Guarantees:</span><ul>[% FOREACH guaranteeloo IN guaranteeloop %]<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guaranteeloo.borrowernumber %]">[% guaranteeloo.name %] </a></li>[% END %]</ul></li>
237 [% IF ( guarantorborrowernumber ) %]
238 <li><span class="label">Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorborrowernumber %]">[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %] [% END %]</a></li>
244 [% IF ( guarantorborrowernumber ) %]
245 <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1&guarantorid=[% guarantorborrowernumber %]">Edit</a>
247 <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1">Edit</a>
252 <!-- Begin Upload Patron Image Section -->
254 <div id="manage-patron-image">
255 [% IF ( patronimages ) %]
256 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
257 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
258 <fieldset class="brief">
260 <legend>Manage Patron Image</legend>
261 <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.
263 <legend>Upload Patron Image</legend>
264 <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.
266 <br />Only PNG, GIF, JPEG, XPM formats are supported.
268 <input type="hidden" id="image" name="filetype" value="image" />
269 <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber %]" />
270 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
273 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
276 <fieldset class="action">
277 <input type="submit" value="Upload" class="submit" />
278 <input name="op" type="hidden" value="Upload" />
279 [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&cardnumber=[% cardnumber %]&borrowernumber=[% borrowernumber %]" class="delete">Delete</a>[% END %]
287 <!-- End Upload Patron Image Section -->
289 [% IF ( ExtendedPatronAttributes ) %]
290 [% UNLESS ( no_patron_attribute_types ) %]
291 <div id="patron-extended-attributes" style="padding-top: 1em;">
292 <h3>Additional attributes and identifiers</h3>
293 [% FOREACH attribute IN attributes_loop %]
294 [% IF attribute.class %]
295 <div id="aai_[% attribute.class %]" class="rows">
297 <div id="aai" class="rows">
299 <h4>[% attribute.lib %]</h4>
301 [% FOREACH item IN attribute.items %]
303 <span class="label">[% item.description %]: </span>
304 [% IF ( item.value_description ) %]
305 [% item.value_description %]
307 [% item.value| html_line_break %]
315 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=4">Edit</a></div>
319 [% IF ( EnhancedMessagingPreferences ) %]
320 <div id="patron-messaging-prefs" style="padding-top: 1em;">
321 <h3>Patron messaging preferences</h3>
322 [% INCLUDE 'messaging-preference-form.inc' %]
323 [% IF ( SMSSendDriver ) %]
324 <div class="rows"> <ol><li><span class="label">SMS number:</span>[% SMSnumber %]
328 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=5">Edit</a></div>
333 <div id="patron-library-details">
337 <li><span class="label">Card number: </span>[% cardnumber %]</li>
338 <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
339 <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
340 <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
342 <li><span class="label">Expiration date: </span>
343 [% IF ( was_renewed ) %]
344 <strong class="reregistrinfo">[% dateexpiry %]</strong>
350 <li><span class="label">Library: </span>[% branchname %]</li>
352 [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
353 [% IF ( privacy0 ) %]Forever[% END %]
354 [% IF ( privacy1 ) %]Default[% END %]
355 [% IF ( privacy2 ) %]Never[% END %]
357 [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
358 [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
359 <li><span class="label">Username: </span>[% userid %]</li>
360 <li><span class="label">Password: </span>
361 [% IF ( password ) %]
364 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
367 [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
368 [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
369 [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
370 [% IF ( sync == 1 ) %]
371 <li><span class="label">Activate sync: </span>Yes</li>
372 [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
373 [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
375 <li><span class="label">Activate sync: </span>No</li>
381 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=3">Edit</a></div>
384 <div id="patron-alternate-address" style="padding-top: 1em;">
385 <h3>Alternate address</h3>
386 <div class="rows"> <ol><li><span class="label">Address: </span>[% B_address %]</li>
387 <li><span class="label">Address 2: </span>[% B_address2 %]</li>
388 <li><span class="label">City: </span>[% B_city %]</li>
389 [% IF ( B_state ) %]<li><span class="label">State: </span>[% B_state %]</li>[% END %]
390 <li><span class="label">Zip/Postal code: </span>[% B_zipcode %]</li>
391 [% IF ( B_country ) %]<li><span class="label">Country: </span>[% B_country %]</li>[% END %]
392 [% IF ( B_phone ) %]<li><span class="label">Phone: </span>[% B_phone %]</li>[% END %]
393 [% IF ( B_email ) %]<li><span class="label">Email: </span><a href="mailto:[% B_email %]">[% B_email %]</a></li>[% END %]
394 [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote %]</li>[% END %]
398 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=6">Edit</a></div>
401 <div id="patron-alternative-contact" style="padding-top: 1em;">
402 <h3>Alternative contact</h3>
403 <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname %]</li>
404 <li><span class="label">First name: </span>[% altcontactfirstname %]</li>
405 <li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
406 <li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
407 <li><span class="label">City: </span>[% altcontactaddress3 %]</li>
408 [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
409 <li><span class="label">Zip/Postal code: </span>[% altcontactzipcode %]</li>
410 [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
411 [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span>[% altcontactphone %]</li>[% END %]
414 <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=2">Edit</a></div>
419 <div id="finesholdsissues" class="toptabs">
421 <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
422 [% IF relatives_issues_count %]
423 <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
425 <li><a href="#finesandcharges">Fines & Charges</a></li>
427 [% IF ( holds_count ) %]
428 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
430 <a href="#reserves" id="holds-tab">0 Holds</a>
433 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
436 [% INCLUDE "checkouts-table.inc" %]
438 [% IF ( relatives_issues_count ) %]
439 <div id="relatives-issues">
440 <table id="relatives-issues-table" style="width: 100% !Important;">
443 <th scope="col">Due date</th>
444 <th scope="col">Title</th>
445 <th scope="col">Item type</th>
446 <th scope="col">Checked out on</th>
447 <th scope="col">Checked out from</th>
448 <th scope="col">Call no</th>
449 <th scope="col">Charge</th>
450 <th scope="col">Price</th>
451 <th scope="col">Patron</th>
458 <div id="finesandcharges">
459 [% IF ( totaldue_raw ) %]
460 <p>Total due: [% totaldue %]</p>
462 <p>No outstanding charges</p>
466 [% INCLUDE borrower_debarments.inc %]
469 [% IF ( holds_count ) %]
470 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
471 <input type="hidden" name="from" value="circ" />
472 <table id="holds-table" style="width: 100% !Important;">
486 <fieldset class="action">
487 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
491 [% IF SuspendHoldsIntranet %]
492 <fieldset class="action">
493 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
494 <input type="hidden" name="from" value="borrower" />
495 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
496 <input type="submit" value="Suspend all holds" />
498 [% IF AutoResumeSuspendedHolds %]
499 <label for="suspend_until">until</label>
500 <input type="text" size="10" id="suspend_until" name="suspend_until"/>
501 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
506 <fieldset class="action">
507 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
508 <input type="hidden" name="from" value="borrower" />
509 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
510 <input type="hidden" name="suspend" value="0" />
511 <input type="submit" value="Resume all suspended holds" />
514 [% END # IF SuspendHoldsIntranet %]
516 [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
520 [% END %] <!-- unknowuser -->
526 [% INCLUDE 'circ-menu.inc' %]
529 [% INCLUDE 'intranet-bottom.inc' %]