6 [% USE AuthorisedValues %]
7 [% USE ColumnsSettings %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
12 <title>Koha › Patrons ›
13 [% UNLESS blocking_error %]
14 Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
17 [% INCLUDE 'doc-head-close.inc' %]
20 <body id="pat_moremember" class="pat">
21 [% INCLUDE 'header.inc' %]
22 [% INCLUDE 'patron-search.inc' %]
24 <div id="breadcrumbs">
25 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
26 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
27 › [% UNLESS blocking_error %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
30 <div class="main container-fluid">
32 <div class="col-sm-10 col-sm-push-2">
36 [% INCLUDE 'members-toolbar.inc' %]
39 <div class="dialog alert">
40 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
41 <h3>Unable to delete staff user</h3>
42 <p>Insufficient privileges.</p>
44 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
45 <h3>Not allowed to delete own account</h3>
46 <p>Deleting your own account would lock you out of Koha.</p>
48 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
49 <h3>Unable to delete patrons from other libraries with current settings</h3>
50 <p>Insufficient privileges.</p>
52 [% IF ( error == 'CANT_DELETE' ) %]
53 <h3>Unable to delete patron</h3>
54 <p>Insufficient privileges.</p>
61 [% IF ( was_renewed ) %]
62 <div class="dialog message">
63 Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
67 [% IF fines || age_limitations %]
68 <div id="circmessages" class="circmessage attention">
71 [% INCLUDE 'blocked-fines.inc' %]
73 [% IF age_limitations %]
74 [% INCLUDE 'category-out-of-age-limit.inc' %]
80 [% IF ( patron_messages ) %]
81 <div id="messages" class="circmessage">
84 [% FOREACH patron_message IN patron_messages %]
86 [% IF(patron_message.message_type == "L") %]
87 <span class="circ-hlt">
91 [% patron_message.message_date | $KohaDates %]
92 [% Branches.GetName( patron_message.branchcode ) | html %]
93 [% IF patron_message.manager_id %]
94 ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id | uri %]">[% patron_message.get_column('manager_firstname') | html %] [% patron_message.get_column('manager_surname') | html %]</a> )
96 <i>"[% patron_message.message | html %]"</i>
98 [% IF patron_message.branchcode == patron.branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
99 <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&borrowernumber=[% patron_message.borrowernumber | html %]&from=moremember" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
104 <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
109 <div id="circmessages" class="circmessage attention">
111 [% IF ( patron.is_debarred ) %]
112 <li class="blocker">Patron's account is restricted
113 [% IF ( userdebarreddate ) %]
114 until [% userdebarreddate | $KohaDates %]
117 [% IF ( patron.debarredcomment ) %]
118 with the explanation: <i>
119 [% IF patron.debarredcomment.search('OVERDUES_PROCESS') %]
120 Restriction added by overdues process [% patron.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
122 [% patron.debarredcomment | html_line_break %]
126 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
129 [% IF ( patron.gonenoaddress ) %]
130 <li class="blocker">Patron's address is in doubt.</li>
132 [% IF ( patron.lost ) %]
133 <li class="blocker">Patron's card has been reported lost.</li>
135 [% IF ( patron.is_expired ) %]
137 <span class="circ-hlt">Expiration:</span>
138 [% IF ( patron.dateexpiry ) %]
139 Patron's card expired on [% patron.dateexpiry | $KohaDates %].
141 Patron's card has expired.
143 <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a>
145 [% ELSIF ( patron.is_going_to_expire ) %]
147 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
148 Patron's card expires on [% expiry | $KohaDates %]
149 <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a>
153 [% IF patron.account_locked %]
154 [% IF patron.login_attempts < 0 %]
155 <li class="blocker">Account has been administratively locked.</li>
157 <li class="blocker">Account has been locked.</li>
166 [% patron.title | html %] [% patron.firstname | html %]
168 [% patron.surname | html %] ([% patron.cardnumber | html %])
170 <div class="col-sm-6">
172 <div id="patron-information" class="patroninfo-section">
174 <div class="patroninfo-heading">
175 <h3>Contact information</h3>
176 [% IF ( guarantor.borrowernumber ) %]
177 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=1&guarantorid=[% guarantor.borrowernumber | html %]"><i class="fa fa-pencil"></i> Edit</a>
179 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=1"><i class="fa fa-pencil"></i> Edit</a>
183 [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
185 <div class="address">
187 [% IF Koha.Preference( 'AddressFormat' ) %]
188 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
190 [% INCLUDE 'member-display-address-style-us.inc' %]
197 [% IF ( patron.phone ) %]
199 <span class="label">Primary phone: </span>
200 <a href="tel:[% patron.phone | uri %]">[% patron.phone | html %]</a>
203 [% IF ( patron.phonepro ) %]
205 <span class="label">Secondary phone: </span>
206 <a href="tel:[% patron.phonepro | uri %]">[% patron.phonepro | html %]</a>
209 [% IF ( patron.mobile ) %]
211 <span class="label">Other phone: </span>
212 <a href="tel:[% patron.mobile | uri %]">[% patron.mobile | html %]</a>
215 [% IF ( patron.fax ) %]
217 <span class="label">Fax: </span>
218 [% patron.fax | html %]
221 [% IF ( patron.email ) %]
223 <span class="label">Primary email:</span>
224 <a title="[% patron.email | html %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a>
227 [% IF ( patron.emailpro ) %]
229 <span class="label">Secondary email: </span>
230 <a title="[% patron.emailpro | html %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a>
234 [% IF ( patron.initials ) %]
236 <span class="label">Initials: </span>
237 [% patron.initials | html %]
240 [% IF ( patron.dateofbirth ) %]
242 <span class="label">Date of birth:</span>
243 [% patron.dateofbirth | $KohaDates %] ([% patron.get_age | html %] years)
246 [% IF ( patron.sex ) %]
248 <span class="label">Gender:</span>
249 [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]
255 <span class="label">Guarantees:</span>
257 [% FOREACH guarantee IN guarantees %]
258 [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
259 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
261 <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
266 [% ELSIF guarantor_relationships.count > 0 OR ( patron.contactfirstname OR patron.contactname ) %]
268 [% IF guarantor_relationships.count > 1 OR guarantor_relationships.count == 0 AND ( patron.contactfirstname OR patron.contactname ) %]
269 <span class="label">Guarantors:</span>
271 <span class="label">Guarantor:</span>
274 [% FOREACH gr IN guarantor_relationships %]
275 [% SET guarantor = gr.guarantor %]
276 [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
277 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.id | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %][% IF gr.relationship %] ([% gr.relationship | html %])[% END %]</a></li>
280 [% IF patron.contactfirstname OR patron.contactname %]
281 <li>[% patron.contactfirstname | html %] [% patron.contactname | html %][% IF patron.relationship %] ([% patron.relationship | html %])[% END %]</li>
287 </div> [% # /div.rows %]
288 </div> [% # /div#patron-information %]
290 [% IF ( patronimages ) %]
291 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
292 <div id="manage-patron-image" class="patroninfo-section">
293 [% IF ( patron.image ) %]
294 <div class="patroninfo-heading">
295 <h3>Manage patron image</h3>
296 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-pencil"></i> Edit</a>
299 <div class="patroninfo-heading">
300 <h3>Upload patron image</h3>
301 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-plus"></i> Add</a>
304 <form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
305 [% IF ( patron.image ) %]
306 <div class="hint">To update the image for [% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.</div>
308 <div class="hint">[% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %], enter the name of an image file to upload.</div>
310 <p>Only PNG, GIF, JPEG, XPM formats are supported.</p>
311 <label for="uploadfile">Select the file to upload: </label>
312 <input type="file" id="uploadfile" name="uploadfile" required="required" />
314 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
315 <input type="hidden" id="image" name="filetype" value="image" />
316 <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
317 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
318 <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-upload"></i> Upload</button>
319 <input name="op" type="hidden" value="Upload" />
320 [% IF ( patron.image ) %]
321 <a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% patron.borrowernumber | html %]&csrf_token=[% csrf_token | html %]" class="btn btn-default btn-xs delete"><i class="fa fa-trash"></i> Delete</a>
323 <a href="#" id="cancel-picture-upload" class="cancel">Cancel</a>
326 </div> [% # /div#manage-patron-image %]
330 [% IF Koha.Preference('HouseboundModule') %]
331 <div id="houseboundroles" class="patroninfo-section">
332 [% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %]
333 <div class="patroninfo-heading">
334 <h3>Housebound roles</h3>
335 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-pencil"></i> Edit</a>
340 <span class="label">Chooser:</span>
341 [% IF ( housebound_role.housebound_chooser == 1 ) %]
348 <span class="label">Deliverer:</span>
349 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
358 <div class="patroninfo-heading">
359 <h3>Housebound roles</h3>
360 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-plus"></i> Add</a>
363 </div> [% #/ div#houseboundroles %]
366 [% IF Koha.Preference('ExtendedPatronAttributes') %]
367 [% UNLESS ( no_patron_attribute_types ) %]
368 <div id="patron-extended-attributes" class="patroninfo-section">
369 [% IF ( attributes_loop ) %]
370 <div class="patroninfo-heading">
371 <h3>Additional attributes and identifiers</h3>
372 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-pencil"></i> Edit</a>
374 [% FOREACH attribute IN attributes_loop %]
375 [% IF attribute.class %]
376 <div id="aai_[% attribute.class | html %]" class="rows">
378 <div id="aai" class="rows">
380 <h4>[% attribute.lib | html %]</h4>
382 [% FOREACH item IN attribute.items %]
384 <span class="label">[% item.description | html %]: </span>
385 [% IF ( item.value_description ) %]
386 [% item.value_description | html %]
388 [% item.value| html | html_line_break %]
398 <div class="patroninfo-heading">
399 <h3>Additional attributes and identifiers</h3>
400 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-plus"></i> Add</a>
403 </div> [% # /div#patron-extended-attributes %]
407 [% IF ( EnhancedMessagingPreferences ) %]
408 <div id="patron-messaging-prefs" class="patroninfo-section">
409 <div class="patroninfo-heading">
410 <h3>Patron messaging preferences</h3>
411 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=5"><i class="fa fa-pencil"></i> Edit</a>
413 [% INCLUDE 'messaging-preference-form.inc' %]
414 [% IF Koha.Preference('SMSSendDriver') %]
418 <span class="label">SMS number:</span>
419 <a href="sms:[% patron.smsalertnumber | uri %]">[% patron.smsalertnumber | html %]</a>
424 </div> [% # /div#patron-messaging-prefs %]
427 </div> <!-- /.col-sm-6 -->
429 <div class="col-sm-6">
430 <div id="patron-library-details" class="patroninfo-section">
431 <div class="patroninfo-heading">
433 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=3"><i class="fa fa-pencil"></i> Edit</a>
437 <li id="patron-cardnumber">
438 <span class="label">Card number: </span>
439 [% patron.cardnumber | html %]
441 <li id="patron-borrowernumber">
442 <span class="label">Borrowernumber: </span>
443 [% patron.borrowernumber | html %]
445 <li id="patron-categorydescription">
446 <span class="label">Category: </span>
447 [% patron.category.description | html %] ([% patron.categorycode | html %])
449 <li id="patron-dateenrolled">
450 <span class="label">Registration date: </span>
451 [% patron.dateenrolled | $KohaDates %]
454 [% IF ( patron.date_renewed ) %]
455 <li id="patron-daterenewed">
456 <span class="label">Renewal date: </span>
457 [% patron.date_renewed | $KohaDates %]
461 <li id="patron-expirationdate">
462 <span class="label">Expiration date: </span>
463 [% IF ( was_renewed ) %]
464 <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
465 [% ELSIF ( patron.is_expired ) %]
466 <span class="blocker">
467 [% patron.dateexpiry | $KohaDates %]
468 <strong><em>Expired</em></strong>
469 <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify]&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a>
471 [% ELSIF ( patron.is_going_to_expire ) %]
472 [% patron.dateexpiry | $KohaDates %]
473 <strong><em>Patron expires soon</em></strong>
474 <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify]&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a>
476 [% patron.dateexpiry | $KohaDates %]
479 <li id="patron-branchname">
480 <span class="label">Library: </span>
481 [% Branches.GetName( patron.branchcode ) | html %]
484 [% IF Koha.Preference( 'OPACPrivacy') %]
485 <li id="patron-privacypref">
486 <span class="label">Privacy Pref:</span>
487 [% IF ( patron.privacy == 0 ) %]Forever[% END %]
488 [% IF ( patron.privacy == 1 ) %]Default[% END %]
489 [% IF ( patron.privacy == 2 ) %]Never[% END %]
493 <li id="patron-privacyguarantor">
494 <span class="label">Show checkouts to guarantor</span>
495 [% IF patron.privacy_guarantor_checkouts %]
503 <span class="label">Show fines to guarantor</span>
504 [% IF patron.privacy_guarantor_fines %]
511 [% IF ( patron.sort1 ) %]
512 <li id="patron-sort1">
513 <span class="label">Sort field 1:</span>
514 [% AuthorisedValues.GetByCode('Bsort1', patron.sort1) | html %]
517 [% IF ( patron.sort2 ) %]
518 <li id="patron-sort2">
519 <span class="label">Sort field 2:</span>
520 [% AuthorisedValues.GetByCode('Bsort2', patron.sort2) | html %]
523 <li id="patron-username">
524 <span class="label">Username: </span>
525 [% patron.userid | html %]
527 <li id="patron-password">
528 <span class="label">Password: </span>
529 [% IF ( patron.password ) %]
532 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | uri %]">Undefined</a></span>
536 [% IF ( patron.borrowernotes ) %]
537 <li id="patron-borrowernotes">
538 <span class="label">Circulation note: </span>
539 [% patron.borrowernotes | $raw %]
543 [% IF ( patron.opacnote ) %]
544 <li id="patron-opacnote">
545 <span class="label">OPAC note:</span>
546 [% patron.opacnote | html %]
550 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
551 <li id="patron-checkprev">
552 <span class="label">Check previous checkouts: </span>
553 [% IF ( patron.checkprevcheckout == 'yes' ) %]
555 [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
563 [% IF Koha.Preference('TranslateNotices') %]
564 <li id="patron-translatenotices">
565 <span class="label">Preferred language for notices: </span>
566 [% translated_language | html %]
570 </div> [% # /div.rows %]
571 </div> [% # /div#patron-library-details %]
573 <div id="patron-alternate-address" class="patroninfo-section">
574 [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
575 <div class="patroninfo-heading">
576 <h3>Alternate address</h3>
577 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-pencil"></i> Edit</a>
579 <div class="address">
581 [% IF Koha.Preference( 'AddressFormat' ) %]
582 [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
584 [% INCLUDE 'member-display-alt-address-style-us.inc' %]
590 [% IF ( patron.B_phone ) %]
591 <li id="patron-bphone">
592 <span class="label">Phone: </span>
593 <a href="tel:[% patron.B_phone | uri %]">[% patron.B_phone |html %]</a>
597 [% IF ( patron.B_email ) %]
598 <li id="patron-bemail" class="email">
599 <span class="label">Email: </span>
600 <a title="[% patron.B_email | html %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
604 [% IF ( patron.contactnote ) %]
605 <li id="patron-contactnote">
606 <span class="label">Contact note: </span>
607 [% patron.contactnote |html %]
613 <div class="patroninfo-heading">
614 <h3 class="inline">Alternate address</h3>
615 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-plus"></i> Add</a>
618 </div> [% # /div#patron-alternate-address %]
620 <div id="patron-alternative-contact" class="patroninfo-section">
621 [% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %]
622 <div class="patroninfo-heading">
623 <h3>Alternative contact</h3>
624 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-pencil"></i> Edit</a>
628 [% IF ( patron.altcontactsurname ) %]
629 <li id="patron-altcontactsurname">
630 <span class="label">Surname: </span>
631 [% patron.altcontactsurname | html %]
634 [% IF ( patron.altcontactfirstname ) %]
635 <li id="patron-altcontactfirstname">
636 <span class="label">First name: </span>
637 [% patron.altcontactfirstname | html %]
640 [% IF ( patron.altcontactaddress1 ) %]
641 <li id="patron-altcontactaddress1">
642 <span class="label">Address: </span>
643 [% patron.altcontactaddress1 | html %]
646 [% IF ( patron.altcontactaddress2 ) %]
647 <li id="patron-altcontactaddress2">
648 <span class="label">Address 2: </span>
649 [% patron.altcontactaddress2 | html %]
652 [% IF ( patron.altcontactaddress3 ) %]
653 <li id="patron-altcontactaddress3">
654 <span class="label">City: </span>
655 [% patron.altcontactaddress3 | html %]
659 [% IF ( patron.altcontactstate ) %]
660 <li id="patron-altcontactstate">
661 <span class="label">State: </span>
662 [% patron.altcontactstate | html %]
665 [% IF ( patron.altcontactzipcode ) %]
666 <li id="patron-altcontactzipcode">
667 <span class="label">ZIP/Postal code: </span>
668 [% patron.altcontactzipcode | html %]
671 [% IF ( patron.altcontactcountry ) %]
672 <li id="patron-altcontactcountry">
673 <span class="label">Country: </span>
674 [% patron.altcontactcountry | html %]
677 [% IF ( patron.altcontactphone ) %]
678 <li id="patron-altcontactphone">
679 <span class="label">Phone: </span>
680 <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
684 </div> [% # /div.rows %]
686 <div class="patroninfo-heading">
687 <h3>Alternative contact</h3>
688 <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-plus"></i> Add</a>
691 </div> [% # /div#patron-alternative-contact %]
692 </div> <!-- /div.col-sm-6 -->
693 </div> <!-- /div.row -->
695 <div id="finesholdsissues" class="toptabs">
698 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
700 [% IF relatives_issues_count %]
702 <a href="#relatives-issues" id="relatives-issues-tab">[% relatives_issues_count | html %] Relatives' checkouts</a>
707 <a href="#finesandcharges">Fines & Charges ([% fines | $Price %])</a>
710 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
712 [% IF ( holds_count ) %]
713 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
715 <a href="#reserves" id="holds-tab">0 Holds</a>
719 [% IF Koha.Preference('ArticleRequests') %]
721 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
725 [% IF Koha.Preference('ClaimReturnedLostValue') %]
727 [% IF ( patron.return_claims.count ) %]
728 <a href="#return-claims" id="return-claims-tab">
729 <span id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
731 <span id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
735 <a href="#return-claims" id="return-claims-tab">
736 <span id="return-claims-count-resolved">0</span>
738 <span id="return-claims-count-unresolved">0</span>
746 <a id="debarments-tab-link" href="#reldebarments">[% debarments.size | html %] Restrictions</a>
748 [% SET enrollments = patron.get_club_enrollments(1) %]
749 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
750 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
752 <a id="clubs-tab-link" href="#clubs-tab">
753 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
759 [% INCLUDE "checkouts-table.inc" %]
761 [% INCLUDE "relatives-issues-table.inc" %]
764 <div id="finesandcharges">
766 <p>Total due: [% fines | $Price %]</p>
768 <p>No outstanding charges</p>
773 [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
779 [% INCLUDE borrower_debarments.inc %]
781 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
783 [% IF ( holds_count ) %]
784 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
785 <input type="hidden" name="from" value="circ" />
786 <table id="holds-table" style="width: 100% !Important;">
803 <fieldset class="action">
804 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
808 [% IF Koha.Preference('SuspendHoldsIntranet') %]
809 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
810 <fieldset class="action">
811 <input type="hidden" name="from" value="borrower" />
812 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
813 <input type="submit" value="Suspend all holds" />
815 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
816 <label for="suspend_until">until</label>
817 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
818 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
823 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
824 <fieldset class="action">
825 <input type="hidden" name="from" value="borrower" />
826 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
827 <input type="hidden" name="suspend" value="0" />
828 <input type="submit" value="Resume all suspended holds" />
831 [% END # IF SuspendHoldsIntranet %]
834 <p>Patron has nothing on hold.</p>
836 </div> [% # /div#reserves %]
839 [% IF Koha.Preference('ClaimReturnedLostValue') %]
840 [% INCLUDE 'patron-return-claims.inc' %]
843 [% IF Koha.Preference('ArticleRequests') %]
844 [% INCLUDE 'patron-article-requests.inc' %]
847 </div> <!-- /div#finesholdsissues -->
849 </div> <!-- /.col-sm-10.col-sm-push-2 -->
851 <div class="col-sm-2 col-sm-pull-10">
853 [% INCLUDE 'circ-menu.inc' %]
855 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
856 </div> <!-- /.row -->
858 [% MACRO jsinclude BLOCK %]
859 [% INCLUDE 'datatables.inc' %]
860 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
861 [% INCLUDE 'columns_settings.inc' %]
862 [% INCLUDE 'strings.inc' %]
863 [% INCLUDE 'calendar.inc' %]
864 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
865 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
866 [% INCLUDE 'timepicker.inc' %]
868 /* Set some variable needed in circulation.js */
869 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
870 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
871 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
872 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
873 var interface = "[% interface | html %]";
874 var theme = "[% theme | html %]";
875 var borrowernumber = "[% patron.borrowernumber | html %]";
876 var branchcode = "[% Branches.GetLoggedInBranchcode() | html %]";
877 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
878 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %]
879 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
880 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
881 var script = "moremember";
882 var relatives_borrowernumbers = new Array();
883 [% FOREACH b IN relatives_borrowernumbers %]
884 relatives_borrowernumbers.push("[% b | html %]");
887 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
888 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
889 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
891 [% Asset.js("js/pages/circulation.js") | $raw %]
892 [% Asset.js("js/checkouts.js") | $raw %]
893 [% Asset.js("js/holds.js") | $raw %]
894 [% INCLUDE 'str/members-menu.inc' %]
895 [% Asset.js("js/members-menu.js") | $raw %]
896 [% Asset.js("js/messaging-preference-form.js") | $raw %]
899 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
901 $(document).ready(function() {
903 if ( $('#clubs-tab').length ) {
904 $('#clubs-tab-link').on('click', function() {
905 $('#clubs-tab').text(_("Loading..."));
906 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
910 $('#finesholdsissues').tabs({
911 // Correct table sizing for tables hidden in tabs
912 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
913 "show": function(event, ui) {
914 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
915 if ( oTable.length > 0 ) {
916 oTable.fnAdjustColumnSizing();
919 "activate": function( event, ui ) {
920 $('#'+ui.newTab.context.id).click();
923 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
926 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
929 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
935 $("#view_restrictions").on("click",function(){
936 $('#debarments-tab-link').click();
939 $("#show-picture-upload").on("click", function(e){
942 $("#picture-upload").toggle();
945 $("#cancel-picture-upload").on("click", function(e){
947 $("#picture-upload, #show-picture-upload").toggle();
951 function uncheck_sibling(me){
952 nodename=me.getAttribute("name");
953 if (nodename =="barcodes[]"){
954 var Node=me.parentNode.previousSibling;
955 while (Node.nodeName!="TD"){Node=Node.previousSibling}
956 var Nodes=Node.childNodes;
957 for (var i=0;i < Nodes.length;i++){
958 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
959 Nodes[i].checked=false;
963 var Node=me.parentNode.nextSibling;
964 while (Node.nodeName!="TD"){Node=Node.nextSibling}
965 var Nodes=Node.childNodes;
966 for (var i=0;i<Nodes.length;i++){
967 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
968 Nodes[i].checked=false;
974 function validate1(date) {
975 var today = new Date();
976 if ( date < today ) {
985 [% INCLUDE 'intranet-bottom.inc' %]