6 [% USE AuthorisedValues %]
7 [% USE ColumnsSettings %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>Koha › Patrons ›
12 [% UNLESS blocking_error %]
13 Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
16 [% INCLUDE 'doc-head-close.inc' %]
18 input[type="file"] { display: inline-block; }
19 .patroninfo-section { padding: .5em; margin: .5em; }
20 .patroninfo-section .rows { padding: .5em; }
21 .patroninfo-heading { background-color: rgba(237, 244, 246, .4); padding: .5em; margin-bottom: .3em; clear:both;}
22 .patroninfo-heading h3 { display: inline-block; }
23 .patroninfo-heading .btn { float: right; }
27 <body id="pat_moremember" class="pat">
28 [% INCLUDE 'header.inc' %]
29 [% INCLUDE 'patron-search.inc' %]
31 <div id="breadcrumbs">
32 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
33 › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
34 › [% UNLESS blocking_error %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
37 <div class="main container-fluid">
39 <div class="col-sm-10 col-sm-push-2">
43 [% INCLUDE 'members-toolbar.inc' %]
46 <div class="dialog alert">
47 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
48 <h3>Unable to delete staff user</h3>
49 <p>Insufficient privileges.</p>
51 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
52 <h3>Not allowed to delete own account</h3>
53 <p>Deleting your own account would lock you out of Koha.</p>
55 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
56 <h3>Unable to delete patrons from other libraries with current settings</h3>
57 <p>Insufficient privileges.</p>
59 [% IF ( error == 'CANT_DELETE' ) %]
60 <h3>Unable to delete patron</h3>
61 <p>Insufficient privileges.</p>
68 [% IF ( was_renewed ) %]
69 <div class="dialog message">
70 Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
75 <div id="circmessages" class="circmessage attention">
77 [% INCLUDE 'blocked-fines.inc' %]
82 [% IF ( patron_messages ) %]
83 <div id="messages" class="circmessage">
86 [% FOREACH patron_message IN patron_messages %]
88 [% IF(patron_message.message_type == "L") %]
89 <span class="circ-hlt">
93 [% patron_message.message_date | $KohaDates %]
94 [% Branches.GetName( patron_message.branchcode ) | html %]
95 [% IF patron_message.manager_id %]
96 ( <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> )
98 <i>"[% patron_message.message | html %]"</i>
100 [% IF patron_message.branchcode == patron.branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
101 <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>
106 <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>
111 <div id="circmessages" class="circmessage attention">
113 [% IF ( patron.is_debarred ) %]
114 <li class="blocker">Patron's account is restricted
115 [% IF ( userdebarreddate ) %]
116 until [% userdebarreddate | $KohaDates %]
119 [% IF ( patron.debarredcomment ) %]
120 with the explanation: <i>
121 [% IF patron.debarredcomment.search('OVERDUES_PROCESS') %]
122 Restriction added by overdues process [% patron.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
124 [% patron.debarredcomment | html_line_break %]
128 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
131 [% IF ( patron.gonenoaddress ) %]
132 <li class="blocker">Patron's address is in doubt.</li>
134 [% IF ( patron.lost ) %]
135 <li class="blocker">Patron's card has been reported lost.</li>
137 [% IF ( patron.is_expired ) %]
139 <span class="circ-hlt">Expiration:</span>
140 [% IF ( patron.dateexpiry ) %]
141 Patron's card expired on [% patron.dateexpiry | $KohaDates %].
143 Patron's card has expired.
145 <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>
147 [% ELSIF ( patron.is_going_to_expire ) %]
149 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
150 Patron's card expires on [% expiry | $KohaDates %]
151 <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>
155 [% IF patron.account_locked %]
156 [% IF patron.login_attempts < 0 %]
157 <li class="blocker">Account has been administratively locked.</li>
159 <li class="blocker">Account has been locked.</li>
168 [% patron.title | html %] [% patron.firstname | html %]
170 [% patron.surname | html %] ([% patron.cardnumber | html %])
172 <div class="col-sm-6">
174 <div id="patron-information" class="patroninfo-section">
176 <div class="patroninfo-heading">
177 <h3>Contact information</h3>
178 [% IF ( guarantor.borrowernumber ) %]
179 <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>
181 <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>
185 [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
187 <div class="address">
189 [% IF Koha.Preference( 'AddressFormat' ) %]
190 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
192 [% INCLUDE 'member-display-address-style-us.inc' %]
199 [% IF ( patron.phone ) %]
201 <span class="label">Primary phone: </span>
202 <a href="tel:[% patron.phone | uri %]">[% patron.phone | html %]</a>
205 [% IF ( patron.phonepro ) %]
207 <span class="label">Secondary phone: </span>
208 <a href="tel:[% patron.phonepro | uri %]">[% patron.phonepro | html %]</a>
211 [% IF ( patron.mobile ) %]
213 <span class="label">Other phone: </span>
214 <a href="tel:[% patron.mobile | uri %]">[% patron.mobile | html %]</a>
217 [% IF ( patron.fax ) %]
219 <span class="label">Fax: </span>
220 [% patron.fax | html %]
223 [% IF ( patron.email ) %]
225 <span class="label">Primary email:</span>
226 <a title="[% patron.email | html %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a>
229 [% IF ( patron.emailpro ) %]
231 <span class="label">Secondary email: </span>
232 <a title="[% patron.emailpro | html %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a>
236 [% IF ( patron.initials ) %]
238 <span class="label">Initials: </span>
239 [% patron.initials | html %]
242 [% IF ( patron.dateofbirth ) %]
244 <span class="label">Date of birth:</span>
245 [% patron.dateofbirth | $KohaDates %] ([% patron.get_age | html %] years)
248 [% IF ( patron.sex ) %]
250 <span class="label">Gender:</span>
251 [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]
257 <span class="label">Guarantees:</span>
259 [% FOREACH guarantee IN guarantees %]
260 [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
261 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
263 <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
268 [% ELSIF guarantor %]
270 <span class="label">Guarantor:</span>
271 [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
272 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
274 [% guarantor.firstname | html %] [% guarantor.surname | html %]
279 </div> [% # /div.rows %]
280 </div> [% # /div#patron-information %]
282 [% IF ( patronimages ) %]
283 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
284 <div id="manage-patron-image" class="patroninfo-section">
285 [% IF ( patron.image ) %]
286 <div class="patroninfo-heading">
287 <h3>Manage patron image</h3>
288 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-pencil"></i> Edit</a>
291 <div class="patroninfo-heading">
292 <h3>Upload patron image</h3>
293 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-plus"></i> Add</a>
296 <form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
297 [% IF ( patron.image ) %]
298 <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>
300 <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>
302 <p>Only PNG, GIF, JPEG, XPM formats are supported.</p>
303 <label for="uploadfile">Select the file to upload: </label>
304 <input type="file" id="uploadfile" name="uploadfile" required="required" />
306 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
307 <input type="hidden" id="image" name="filetype" value="image" />
308 <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
309 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
310 <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-upload"></i> Upload</button>
311 <input name="op" type="hidden" value="Upload" />
312 [% IF ( patron.image ) %]
313 <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>
315 <a href="#" id="cancel-picture-upload" class="cancel">Cancel</a>
318 </div> [% # /div#manage-patron-image %]
322 [% IF Koha.Preference('HouseboundModule') %]
323 <div id="houseboundroles" class="patroninfo-section">
324 [% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %]
325 <div class="patroninfo-heading">
326 <h3>Housebound roles</h3>
327 <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>
332 <span class="label">Chooser:</span>
333 [% IF ( housebound_role.housebound_chooser == 1 ) %]
340 <span class="label">Deliverer:</span>
341 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
350 <div class="patroninfo-heading">
351 <h3>Housebound roles</h3>
352 <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>
355 </div> [% #/ div#houseboundroles %]
358 [% IF Koha.Preference('ExtendedPatronAttributes') %]
359 [% UNLESS ( no_patron_attribute_types ) %]
360 <div id="patron-extended-attributes" class="patroninfo-section">
361 [% IF ( attributes_loop ) %]
362 <div class="patroninfo-heading">
363 <h3>Additional attributes and identifiers</h3>
364 <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>
366 [% FOREACH attribute IN attributes_loop %]
367 [% IF attribute.class %]
368 <div id="aai_[% attribute.class | html %]" class="rows">
370 <div id="aai" class="rows">
372 <h4>[% attribute.lib | html %]</h4>
374 [% FOREACH item IN attribute.items %]
376 <span class="label">[% item.description | html %]: </span>
377 [% IF ( item.value_description ) %]
378 [% item.value_description | html %]
380 [% item.value| html | html_line_break %]
390 <div class="patroninfo-heading">
391 <h3>Additional attributes and identifiers</h3>
392 <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>
395 </div> [% # /div#patron-extended-attributes %]
399 [% IF ( EnhancedMessagingPreferences ) %]
400 <div id="patron-messaging-prefs" class="patroninfo-section">
401 <div class="patroninfo-heading">
402 <h3>Patron messaging preferences</h3>
403 <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>
405 [% INCLUDE 'messaging-preference-form.inc' %]
406 [% IF Koha.Preference('SMSSendDriver') %]
410 <span class="label">SMS number:</span>
411 <a href="sms:[% patron.smsalertnumber | uri %]">[% patron.smsalertnumber | html %]</a>
416 </div> [% # /div#patron-messaging-prefs %]
419 </div> <!-- /.col-sm-6 -->
421 <div class="col-sm-6">
422 <div id="patron-library-details" class="patroninfo-section">
423 <div class="patroninfo-heading">
425 <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>
429 <li id="patron-cardnumber">
430 <span class="label">Card number: </span>
431 [% patron.cardnumber | html %]
433 <li id="patron-borrowernumber">
434 <span class="label">Borrowernumber: </span>
435 [% patron.borrowernumber | html %]
437 <li id="patron-categorydescription">
438 <span class="label">Category: </span>
439 [% patron.category.description | html %] ([% patron.categorycode | html %])
441 <li id="patron-dateenrolled">
442 <span class="label">Registration date: </span>
443 [% patron.dateenrolled | $KohaDates %]
446 [% IF ( patron.date_renewed ) %]
447 <li id="patron-daterenewed">
448 <span class="label">Renewal date: </span>
449 [% patron.date_renewed | $KohaDates %]
453 <li id="patron-expirationdate">
454 <span class="label">Expiration date: </span>
455 [% IF ( was_renewed ) %]
456 <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
457 [% ELSIF ( patron.is_expired ) %]
458 <span class="blocker">
459 [% patron.dateexpiry | $KohaDates %]
460 <strong><em>Expired</em></strong>
461 <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>
463 [% ELSIF ( patron.is_going_to_expire ) %]
464 [% patron.dateexpiry | $KohaDates %]
465 <strong><em>Patron expires soon</em></strong>
466 <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>
468 [% patron.dateexpiry | $KohaDates %]
471 <li id="patron-branchname">
472 <span class="label">Library: </span>
473 [% Branches.GetName( patron.branchcode ) | html %]
476 [% IF Koha.Preference( 'OPACPrivacy') %]
477 <li id="patron-privacypref">
478 <span class="label">Privacy Pref:</span>
479 [% IF ( patron.privacy == 0 ) %]Forever[% END %]
480 [% IF ( patron.privacy == 1 ) %]Default[% END %]
481 [% IF ( patron.privacy == 2 ) %]Never[% END %]
485 <li id="patron-privacyguarantor">
486 <span class="label">Show checkouts to guarantor</span>
487 [% IF privacy_guarantor_checkouts %]
494 [% IF ( patron.sort1 ) %]
495 <li id="patron-sort1">
496 <span class="label">Sort field 1:</span>
497 [% AuthorisedValues.GetByCode('Bsort1', patron.sort1) | html %]
500 [% IF ( patron.sort2 ) %]
501 <li id="patron-sort2">
502 <span class="label">Sort field 2:</span>
503 [% AuthorisedValues.GetByCode('Bsort2', patron.sort2) | html %]
506 <li id="patron-username">
507 <span class="label">Username: </span>
508 [% patron.userid | html %]
510 <li id="patron-password">
511 <span class="label">Password: </span>
512 [% IF ( patron.password ) %]
515 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | uri %]">Undefined</a></span>
519 [% IF ( patron.borrowernotes ) %]
520 <li id="patron-borrowernotes">
521 <span class="label">Circulation note: </span>
522 [% patron.borrowernotes | $raw %]
526 [% IF ( patron.opacnote ) %]
527 <li id="patron-opacnote">
528 <span class="label">OPAC note:</span>
529 [% patron.opacnote | html %]
533 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
534 <li id="patron-checkprev">
535 <span class="label">Check previous checkouts: </span>
536 [% IF ( patron.checkprevcheckout == 'yes' ) %]
538 [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
546 [% IF Koha.Preference('TranslateNotices') %]
547 <li id="patron-translatenotices">
548 <span class="label">Preferred language for notices: </span>
549 [% translated_language | html %]
553 </div> [% # /div.rows %]
554 </div> [% # /div#patron-library-details %]
556 <div id="patron-alternate-address" class="patroninfo-section">
557 [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
558 <div class="patroninfo-heading">
559 <h3>Alternate address</h3>
560 <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>
562 <div class="address">
564 [% IF Koha.Preference( 'AddressFormat' ) %]
565 [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
567 [% INCLUDE 'member-display-alt-address-style-us.inc' %]
573 [% IF ( patron.B_phone ) %]
574 <li id="patron-bphone">
575 <span class="label">Phone: </span>
576 <a href="tel:[% patron.B_phone | uri %]">[% patron.B_phone |html %]</a>
580 [% IF ( patron.B_email ) %]
581 <li id="patron-bemail" class="email">
582 <span class="label">Email: </span>
583 <a title="[% patron.B_email | html %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
587 [% IF ( patron.contactnote ) %]
588 <li id="patron-contactnote">
589 <span class="label">Contact note: </span>
590 [% patron.contactnote |html %]
596 <div class="patroninfo-heading">
597 <h3 class="inline">Alternate address</h3>
598 <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>
601 </div> [% # /div#patron-alternate-address %]
603 <div id="patron-alternative-contact" class="patroninfo-section">
604 [% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %]
605 <div class="patroninfo-heading">
606 <h3>Alternative contact</h3>
607 <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>
611 [% IF ( patron.altcontactsurname ) %]
612 <li id="patron-altcontactsurname">
613 <span class="label">Surname: </span>
614 [% patron.altcontactsurname | html %]
617 [% IF ( patron.altcontactfirstname ) %]
618 <li id="patron-altcontactfirstname">
619 <span class="label">First name: </span>
620 [% patron.altcontactfirstname | html %]
623 [% IF ( patron.altcontactaddress1 ) %]
624 <li id="patron-altcontactaddress1">
625 <span class="label">Address: </span>
626 [% patron.altcontactaddress1 | html %]
629 [% IF ( patron.altcontactaddress2 ) %]
630 <li id="patron-altcontactaddress2">
631 <span class="label">Address 2: </span>
632 [% patron.altcontactaddress2 | html %]
635 [% IF ( patron.altcontactaddress3 ) %]
636 <li id="patron-altcontactaddress3">
637 <span class="label">City: </span>
638 [% patron.altcontactaddress3 | html %]
642 [% IF ( patron.altcontactstate ) %]
643 <li id="patron-altcontactstate">
644 <span class="label">State: </span>
645 [% patron.altcontactstate | html %]
648 [% IF ( patron.altcontactzipcode ) %]
649 <li id="patron-altcontactzipcode">
650 <span class="label">ZIP/Postal code: </span>
651 [% patron.altcontactzipcode | html %]
654 [% IF ( patron.altcontactcountry ) %]
655 <li id="patron-altcontactcountry">
656 <span class="label">Country: </span>
657 [% patron.altcontactcountry | html %]
660 [% IF ( patron.altcontactphone ) %]
661 <li id="patron-altcontactphone">
662 <span class="label">Phone: </span>
663 <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
667 </div> [% # /div.rows %]
669 <div class="patroninfo-heading">
670 <h3>Alternative contact</h3>
671 <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>
674 </div> [% # /div#patron-alternative-contact %]
675 </div> <!-- /div.col-sm-6 -->
676 </div> <!-- /div.row -->
678 <div id="finesholdsissues" class="toptabs">
681 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
683 [% IF relatives_issues_count %]
685 <a href="#relatives-issues" id="relatives-issues-tab">[% relatives_issues_count | html %] Relatives' checkouts</a>
689 <a href="#finesandcharges">Fines & Charges</a>
691 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
693 [% IF ( holds_count ) %]
694 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
696 <a href="#reserves" id="holds-tab">0 Holds</a>
700 [% IF Koha.Preference('ArticleRequests') %]
702 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
706 <a id="debarments-tab-link" href="#reldebarments">[% debarments.size | html %] Restrictions</a>
708 [% SET enrollments = patron.get_club_enrollments(1) %]
709 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
710 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
712 <a id="clubs-tab-link" href="#clubs-tab">
713 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
719 [% INCLUDE "checkouts-table.inc" %]
721 [% IF ( relatives_issues_count ) %]
722 <div id="relatives-issues">
723 <table id="relatives-issues-table" style="width: 100% !Important;">
726 <th scope="col">Due date hidden not formatted</th>
727 <th scope="col">Due date</th>
728 <th scope="col">Title</th>
729 <th scope="col">Item type</th>
730 <th scope="col">Location</th>
731 <th scope="col">Checked out on</th>
732 <th scope="col">Checked out from</th>
733 <th scope="col">Call no</th>
734 <th scope="col">Charge</th>
735 <th scope="col">Fine</th>
736 <th scope="col">Price</th>
737 <th scope="col">Patron</th>
744 <div id="finesandcharges">
746 <p>Total due: [% fines | $Price %]</p>
748 <p>No outstanding charges</p>
752 [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
758 [% INCLUDE borrower_debarments.inc %]
760 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
762 [% IF ( holds_count ) %]
763 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
764 <input type="hidden" name="from" value="circ" />
765 <table id="holds-table" style="width: 100% !Important;">
782 <fieldset class="action">
783 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
787 [% IF Koha.Preference('SuspendHoldsIntranet') %]
788 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
789 <fieldset class="action">
790 <input type="hidden" name="from" value="borrower" />
791 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
792 <input type="submit" value="Suspend all holds" />
794 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
795 <label for="suspend_until">until</label>
796 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
797 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
802 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
803 <fieldset class="action">
804 <input type="hidden" name="from" value="borrower" />
805 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
806 <input type="hidden" name="suspend" value="0" />
807 <input type="submit" value="Resume all suspended holds" />
810 [% END # IF SuspendHoldsIntranet %]
813 <p>Patron has nothing on hold.</p>
815 </div> [% # /div#reserves %]
818 [% IF Koha.Preference('ArticleRequests') %]
819 [% INCLUDE 'patron-article-requests.inc' %]
822 </div> <!-- /div#finesholdsissues -->
824 </div> <!-- /.col-sm-10.col-sm-push-2 -->
826 <div class="col-sm-2 col-sm-pull-10">
828 [% INCLUDE 'circ-menu.inc' %]
830 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
831 </div> <!-- /.row -->
833 [% MACRO jsinclude BLOCK %]
834 [% INCLUDE 'datatables.inc' %]
835 [% INCLUDE 'columns_settings.inc' %]
836 [% INCLUDE 'strings.inc' %]
837 [% INCLUDE 'calendar.inc' %]
838 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
839 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
840 [% INCLUDE 'timepicker.inc' %]
841 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") | $raw %]
842 [% Asset.js("js/pages/circulation.js") | $raw %]
843 [% Asset.js("js/checkouts.js") | $raw %]
844 [% Asset.js("js/holds.js") | $raw %]
845 [% INCLUDE 'str/members-menu.inc' %]
846 [% Asset.js("js/members-menu.js") | $raw %]
847 [% Asset.js("js/messaging-preference-form.js") | $raw %]
849 /* Set some variable needed in circulation.js */
850 var interface = "[% interface | html %]";
851 var theme = "[% theme | html %]";
852 var borrowernumber = "[% patron.borrowernumber | html %]";
853 var branchcode = "[% Branches.GetLoggedInBranchcode() | html %]";
854 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
855 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %]
856 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
857 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
858 var script = "moremember";
859 var relatives_borrowernumbers = new Array();
860 [% FOREACH b IN relatives_borrowernumbers %]
861 relatives_borrowernumbers.push("[% b | html %]");
864 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
865 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
867 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
869 $(document).ready(function() {
870 if ( $('#clubs-tab').length ) {
871 $('#clubs-tab-link').on('click', function() {
872 $('#clubs-tab').text(_("Loading..."));
873 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% borrowernumber | html %]');
877 $('#finesholdsissues').tabs({
878 // Correct table sizing for tables hidden in tabs
879 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
880 "show": function(event, ui) {
881 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
882 if ( oTable.length > 0 ) {
883 oTable.fnAdjustColumnSizing();
886 "activate": function( event, ui ) {
887 $('#'+ui.newTab.context.id).click();
890 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
893 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
896 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
901 $("#suspend_until").datepicker({
902 onClose: function(dateText, inst) {
903 validate_date(dateText, inst);
905 minDate: 1, // require that hold suspended until date is after today
906 }).on("change", function(e, value) {
907 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
910 $("#view_restrictions").on("click",function(){
911 $('#debarments-tab-link').click();
914 $("#show-picture-upload").on("click", function(e){
917 $("#picture-upload").toggle();
920 $("#cancel-picture-upload").on("click", function(e){
922 $("#picture-upload, #show-picture-upload").toggle();
926 function uncheck_sibling(me){
927 nodename=me.getAttribute("name");
928 if (nodename =="barcodes[]"){
929 var Node=me.parentNode.previousSibling;
930 while (Node.nodeName!="TD"){Node=Node.previousSibling}
931 var Nodes=Node.childNodes;
932 for (var i=0;i < Nodes.length;i++){
933 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
934 Nodes[i].checked=false;
938 var Node=me.parentNode.nextSibling;
939 while (Node.nodeName!="TD"){Node=Node.nextSibling}
940 var Nodes=Node.childNodes;
941 for (var i=0;i<Nodes.length;i++){
942 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
943 Nodes[i].checked=false;
949 function validate1(date) {
950 var today = new Date();
951 if ( date < today ) {
960 [% INCLUDE 'intranet-bottom.inc' %]