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 %]
74 [% IF fines || age_limitations %]
75 <div id="circmessages" class="circmessage attention">
78 [% INCLUDE 'blocked-fines.inc' %]
80 [% IF age_limitations %]
81 [% INCLUDE 'category-out-of-age-limit.inc' %]
87 [% IF ( patron_messages ) %]
88 <div id="messages" class="circmessage">
91 [% FOREACH patron_message IN patron_messages %]
93 [% IF(patron_message.message_type == "L") %]
94 <span class="circ-hlt">
98 [% patron_message.message_date | $KohaDates %]
99 [% Branches.GetName( patron_message.branchcode ) | html %]
100 [% IF patron_message.manager_id %]
101 ( <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> )
103 <i>"[% patron_message.message | html %]"</i>
105 [% IF patron_message.branchcode == patron.branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
106 <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>
111 <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>
116 <div id="circmessages" class="circmessage attention">
118 [% IF ( patron.is_debarred ) %]
119 <li class="blocker">Patron's account is restricted
120 [% IF ( userdebarreddate ) %]
121 until [% userdebarreddate | $KohaDates %]
124 [% IF ( patron.debarredcomment ) %]
125 with the explanation: <i>
126 [% IF patron.debarredcomment.search('OVERDUES_PROCESS') %]
127 Restriction added by overdues process [% patron.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
129 [% patron.debarredcomment | html_line_break %]
133 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
136 [% IF ( patron.gonenoaddress ) %]
137 <li class="blocker">Patron's address is in doubt.</li>
139 [% IF ( patron.lost ) %]
140 <li class="blocker">Patron's card has been reported lost.</li>
142 [% IF ( patron.is_expired ) %]
144 <span class="circ-hlt">Expiration:</span>
145 [% IF ( patron.dateexpiry ) %]
146 Patron's card expired on [% patron.dateexpiry | $KohaDates %].
148 Patron's card has expired.
150 <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>
152 [% ELSIF ( patron.is_going_to_expire ) %]
154 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
155 Patron's card expires on [% expiry | $KohaDates %]
156 <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>
160 [% IF patron.account_locked %]
161 [% IF patron.login_attempts < 0 %]
162 <li class="blocker">Account has been administratively locked.</li>
164 <li class="blocker">Account has been locked.</li>
173 [% patron.title | html %] [% patron.firstname | html %]
175 [% patron.surname | html %] ([% patron.cardnumber | html %])
177 <div class="col-sm-6">
179 <div id="patron-information" class="patroninfo-section">
181 <div class="patroninfo-heading">
182 <h3>Contact information</h3>
183 [% IF ( guarantor.borrowernumber ) %]
184 <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>
186 <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>
190 [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
192 <div class="address">
194 [% IF Koha.Preference( 'AddressFormat' ) %]
195 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
197 [% INCLUDE 'member-display-address-style-us.inc' %]
204 [% IF ( patron.phone ) %]
206 <span class="label">Primary phone: </span>
207 <a href="tel:[% patron.phone | uri %]">[% patron.phone | html %]</a>
210 [% IF ( patron.phonepro ) %]
212 <span class="label">Secondary phone: </span>
213 <a href="tel:[% patron.phonepro | uri %]">[% patron.phonepro | html %]</a>
216 [% IF ( patron.mobile ) %]
218 <span class="label">Other phone: </span>
219 <a href="tel:[% patron.mobile | uri %]">[% patron.mobile | html %]</a>
222 [% IF ( patron.fax ) %]
224 <span class="label">Fax: </span>
225 [% patron.fax | html %]
228 [% IF ( patron.email ) %]
230 <span class="label">Primary email:</span>
231 <a title="[% patron.email | html %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a>
234 [% IF ( patron.emailpro ) %]
236 <span class="label">Secondary email: </span>
237 <a title="[% patron.emailpro | html %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a>
241 [% IF ( patron.initials ) %]
243 <span class="label">Initials: </span>
244 [% patron.initials | html %]
247 [% IF ( patron.dateofbirth ) %]
249 <span class="label">Date of birth:</span>
250 [% patron.dateofbirth | $KohaDates %] ([% patron.get_age | html %] years)
253 [% IF ( patron.sex ) %]
255 <span class="label">Gender:</span>
256 [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]
262 <span class="label">Guarantees:</span>
264 [% FOREACH guarantee IN guarantees %]
265 [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
266 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
268 <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
273 [% ELSIF guarantor %]
275 <span class="label">Guarantor:</span>
276 [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
277 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
279 [% guarantor.firstname | html %] [% guarantor.surname | html %]
284 </div> [% # /div.rows %]
285 </div> [% # /div#patron-information %]
287 [% IF ( patronimages ) %]
288 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
289 <div id="manage-patron-image" class="patroninfo-section">
290 [% IF ( patron.image ) %]
291 <div class="patroninfo-heading">
292 <h3>Manage patron image</h3>
293 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-pencil"></i> Edit</a>
296 <div class="patroninfo-heading">
297 <h3>Upload patron image</h3>
298 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-plus"></i> Add</a>
301 <form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
302 [% IF ( patron.image ) %]
303 <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>
305 <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>
307 <p>Only PNG, GIF, JPEG, XPM formats are supported.</p>
308 <label for="uploadfile">Select the file to upload: </label>
309 <input type="file" id="uploadfile" name="uploadfile" required="required" />
311 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
312 <input type="hidden" id="image" name="filetype" value="image" />
313 <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
314 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
315 <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-upload"></i> Upload</button>
316 <input name="op" type="hidden" value="Upload" />
317 [% IF ( patron.image ) %]
318 <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>
320 <a href="#" id="cancel-picture-upload" class="cancel">Cancel</a>
323 </div> [% # /div#manage-patron-image %]
327 [% IF Koha.Preference('HouseboundModule') %]
328 <div id="houseboundroles" class="patroninfo-section">
329 [% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %]
330 <div class="patroninfo-heading">
331 <h3>Housebound roles</h3>
332 <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>
337 <span class="label">Chooser:</span>
338 [% IF ( housebound_role.housebound_chooser == 1 ) %]
345 <span class="label">Deliverer:</span>
346 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
355 <div class="patroninfo-heading">
356 <h3>Housebound roles</h3>
357 <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>
360 </div> [% #/ div#houseboundroles %]
363 [% IF Koha.Preference('ExtendedPatronAttributes') %]
364 [% UNLESS ( no_patron_attribute_types ) %]
365 <div id="patron-extended-attributes" class="patroninfo-section">
366 [% IF ( attributes_loop ) %]
367 <div class="patroninfo-heading">
368 <h3>Additional attributes and identifiers</h3>
369 <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>
371 [% FOREACH attribute IN attributes_loop %]
372 [% IF attribute.class %]
373 <div id="aai_[% attribute.class | html %]" class="rows">
375 <div id="aai" class="rows">
377 <h4>[% attribute.lib | html %]</h4>
379 [% FOREACH item IN attribute.items %]
381 <span class="label">[% item.description | html %]: </span>
382 [% IF ( item.value_description ) %]
383 [% item.value_description | html %]
385 [% item.value| html | html_line_break %]
395 <div class="patroninfo-heading">
396 <h3>Additional attributes and identifiers</h3>
397 <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>
400 </div> [% # /div#patron-extended-attributes %]
404 [% IF ( EnhancedMessagingPreferences ) %]
405 <div id="patron-messaging-prefs" class="patroninfo-section">
406 <div class="patroninfo-heading">
407 <h3>Patron messaging preferences</h3>
408 <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>
410 [% INCLUDE 'messaging-preference-form.inc' %]
411 [% IF Koha.Preference('SMSSendDriver') %]
415 <span class="label">SMS number:</span>
416 <a href="sms:[% patron.smsalertnumber | uri %]">[% patron.smsalertnumber | html %]</a>
421 </div> [% # /div#patron-messaging-prefs %]
424 </div> <!-- /.col-sm-6 -->
426 <div class="col-sm-6">
427 <div id="patron-library-details" class="patroninfo-section">
428 <div class="patroninfo-heading">
430 <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>
434 <li id="patron-cardnumber">
435 <span class="label">Card number: </span>
436 [% patron.cardnumber | html %]
438 <li id="patron-borrowernumber">
439 <span class="label">Borrowernumber: </span>
440 [% patron.borrowernumber | html %]
442 <li id="patron-categorydescription">
443 <span class="label">Category: </span>
444 [% patron.category.description | html %] ([% patron.categorycode | html %])
446 <li id="patron-dateenrolled">
447 <span class="label">Registration date: </span>
448 [% patron.dateenrolled | $KohaDates %]
451 [% IF ( patron.date_renewed ) %]
452 <li id="patron-daterenewed">
453 <span class="label">Renewal date: </span>
454 [% patron.date_renewed | $KohaDates %]
458 <li id="patron-expirationdate">
459 <span class="label">Expiration date: </span>
460 [% IF ( was_renewed ) %]
461 <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
462 [% ELSIF ( patron.is_expired ) %]
463 <span class="blocker">
464 [% patron.dateexpiry | $KohaDates %]
465 <strong><em>Expired</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 [% ELSIF ( patron.is_going_to_expire ) %]
469 [% patron.dateexpiry | $KohaDates %]
470 <strong><em>Patron expires soon</em></strong>
471 <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>
473 [% patron.dateexpiry | $KohaDates %]
476 <li id="patron-branchname">
477 <span class="label">Library: </span>
478 [% Branches.GetName( patron.branchcode ) | html %]
481 [% IF Koha.Preference( 'OPACPrivacy') %]
482 <li id="patron-privacypref">
483 <span class="label">Privacy Pref:</span>
484 [% IF ( patron.privacy == 0 ) %]Forever[% END %]
485 [% IF ( patron.privacy == 1 ) %]Default[% END %]
486 [% IF ( patron.privacy == 2 ) %]Never[% END %]
490 <li id="patron-privacyguarantor">
491 <span class="label">Show checkouts to guarantor</span>
492 [% IF privacy_guarantor_checkouts %]
499 [% IF ( patron.sort1 ) %]
500 <li id="patron-sort1">
501 <span class="label">Sort field 1:</span>
502 [% AuthorisedValues.GetByCode('Bsort1', patron.sort1) | html %]
505 [% IF ( patron.sort2 ) %]
506 <li id="patron-sort2">
507 <span class="label">Sort field 2:</span>
508 [% AuthorisedValues.GetByCode('Bsort2', patron.sort2) | html %]
511 <li id="patron-username">
512 <span class="label">Username: </span>
513 [% patron.userid | html %]
515 <li id="patron-password">
516 <span class="label">Password: </span>
517 [% IF ( patron.password ) %]
520 <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | uri %]">Undefined</a></span>
524 [% IF ( patron.borrowernotes ) %]
525 <li id="patron-borrowernotes">
526 <span class="label">Circulation note: </span>
527 [% patron.borrowernotes | $raw %]
531 [% IF ( patron.opacnote ) %]
532 <li id="patron-opacnote">
533 <span class="label">OPAC note:</span>
534 [% patron.opacnote | html %]
538 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
539 <li id="patron-checkprev">
540 <span class="label">Check previous checkouts: </span>
541 [% IF ( patron.checkprevcheckout == 'yes' ) %]
543 [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
551 [% IF Koha.Preference('TranslateNotices') %]
552 <li id="patron-translatenotices">
553 <span class="label">Preferred language for notices: </span>
554 [% translated_language | html %]
558 </div> [% # /div.rows %]
559 </div> [% # /div#patron-library-details %]
561 <div id="patron-alternate-address" class="patroninfo-section">
562 [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
563 <div class="patroninfo-heading">
564 <h3>Alternate address</h3>
565 <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>
567 <div class="address">
569 [% IF Koha.Preference( 'AddressFormat' ) %]
570 [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
572 [% INCLUDE 'member-display-alt-address-style-us.inc' %]
578 [% IF ( patron.B_phone ) %]
579 <li id="patron-bphone">
580 <span class="label">Phone: </span>
581 <a href="tel:[% patron.B_phone | uri %]">[% patron.B_phone |html %]</a>
585 [% IF ( patron.B_email ) %]
586 <li id="patron-bemail" class="email">
587 <span class="label">Email: </span>
588 <a title="[% patron.B_email | html %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
592 [% IF ( patron.contactnote ) %]
593 <li id="patron-contactnote">
594 <span class="label">Contact note: </span>
595 [% patron.contactnote |html %]
601 <div class="patroninfo-heading">
602 <h3 class="inline">Alternate address</h3>
603 <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>
606 </div> [% # /div#patron-alternate-address %]
608 <div id="patron-alternative-contact" class="patroninfo-section">
609 [% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %]
610 <div class="patroninfo-heading">
611 <h3>Alternative contact</h3>
612 <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>
616 [% IF ( patron.altcontactsurname ) %]
617 <li id="patron-altcontactsurname">
618 <span class="label">Surname: </span>
619 [% patron.altcontactsurname | html %]
622 [% IF ( patron.altcontactfirstname ) %]
623 <li id="patron-altcontactfirstname">
624 <span class="label">First name: </span>
625 [% patron.altcontactfirstname | html %]
628 [% IF ( patron.altcontactaddress1 ) %]
629 <li id="patron-altcontactaddress1">
630 <span class="label">Address: </span>
631 [% patron.altcontactaddress1 | html %]
634 [% IF ( patron.altcontactaddress2 ) %]
635 <li id="patron-altcontactaddress2">
636 <span class="label">Address 2: </span>
637 [% patron.altcontactaddress2 | html %]
640 [% IF ( patron.altcontactaddress3 ) %]
641 <li id="patron-altcontactaddress3">
642 <span class="label">City: </span>
643 [% patron.altcontactaddress3 | html %]
647 [% IF ( patron.altcontactstate ) %]
648 <li id="patron-altcontactstate">
649 <span class="label">State: </span>
650 [% patron.altcontactstate | html %]
653 [% IF ( patron.altcontactzipcode ) %]
654 <li id="patron-altcontactzipcode">
655 <span class="label">ZIP/Postal code: </span>
656 [% patron.altcontactzipcode | html %]
659 [% IF ( patron.altcontactcountry ) %]
660 <li id="patron-altcontactcountry">
661 <span class="label">Country: </span>
662 [% patron.altcontactcountry | html %]
665 [% IF ( patron.altcontactphone ) %]
666 <li id="patron-altcontactphone">
667 <span class="label">Phone: </span>
668 <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
672 </div> [% # /div.rows %]
674 <div class="patroninfo-heading">
675 <h3>Alternative contact</h3>
676 <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>
679 </div> [% # /div#patron-alternative-contact %]
680 </div> <!-- /div.col-sm-6 -->
681 </div> <!-- /div.row -->
683 <div id="finesholdsissues" class="toptabs">
686 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
688 [% IF relatives_issues_count %]
690 <a href="#relatives-issues" id="relatives-issues-tab">[% relatives_issues_count | html %] Relatives' checkouts</a>
694 <a href="#finesandcharges">Fines & Charges</a>
696 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
698 [% IF ( holds_count ) %]
699 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
701 <a href="#reserves" id="holds-tab">0 Holds</a>
705 [% IF Koha.Preference('ArticleRequests') %]
707 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
711 <a id="debarments-tab-link" href="#reldebarments">[% debarments.size | html %] Restrictions</a>
713 [% SET enrollments = patron.get_club_enrollments(1) %]
714 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
715 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
717 <a id="clubs-tab-link" href="#clubs-tab">
718 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
724 [% INCLUDE "checkouts-table.inc" %]
726 [% IF ( relatives_issues_count ) %]
727 <div id="relatives-issues">
728 <table id="relatives-issues-table" style="width: 100% !Important;">
731 <th scope="col">Due date hidden not formatted</th>
732 <th scope="col">Due date</th>
733 <th scope="col">Title</th>
734 <th scope="col">Item type</th>
735 <th scope="col">Location</th>
736 <th scope="col">Checked out on</th>
737 <th scope="col">Checked out from</th>
738 <th scope="col">Call no</th>
739 <th scope="col">Charge</th>
740 <th scope="col">Fine</th>
741 <th scope="col">Price</th>
742 <th scope="col">Patron</th>
749 <div id="finesandcharges">
751 <p>Total due: [% fines | $Price %]</p>
753 <p>No outstanding charges</p>
757 [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
763 [% INCLUDE borrower_debarments.inc %]
765 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
767 [% IF ( holds_count ) %]
768 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
769 <input type="hidden" name="from" value="circ" />
770 <table id="holds-table" style="width: 100% !Important;">
787 <fieldset class="action">
788 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
792 [% IF Koha.Preference('SuspendHoldsIntranet') %]
793 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
794 <fieldset class="action">
795 <input type="hidden" name="from" value="borrower" />
796 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
797 <input type="submit" value="Suspend all holds" />
799 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
800 <label for="suspend_until">until</label>
801 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
802 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
807 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
808 <fieldset class="action">
809 <input type="hidden" name="from" value="borrower" />
810 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
811 <input type="hidden" name="suspend" value="0" />
812 <input type="submit" value="Resume all suspended holds" />
815 [% END # IF SuspendHoldsIntranet %]
818 <p>Patron has nothing on hold.</p>
820 </div> [% # /div#reserves %]
823 [% IF Koha.Preference('ArticleRequests') %]
824 [% INCLUDE 'patron-article-requests.inc' %]
827 </div> <!-- /div#finesholdsissues -->
829 </div> <!-- /.col-sm-10.col-sm-push-2 -->
831 <div class="col-sm-2 col-sm-pull-10">
833 [% INCLUDE 'circ-menu.inc' %]
835 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
836 </div> <!-- /.row -->
838 [% MACRO jsinclude BLOCK %]
839 [% INCLUDE 'datatables.inc' %]
840 [% INCLUDE 'columns_settings.inc' %]
841 [% INCLUDE 'strings.inc' %]
842 [% INCLUDE 'calendar.inc' %]
843 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
844 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
845 [% INCLUDE 'timepicker.inc' %]
846 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") | $raw %]
847 [% Asset.js("js/pages/circulation.js") | $raw %]
848 [% Asset.js("js/checkouts.js") | $raw %]
849 [% Asset.js("js/holds.js") | $raw %]
850 [% INCLUDE 'str/members-menu.inc' %]
851 [% Asset.js("js/members-menu.js") | $raw %]
852 [% Asset.js("js/messaging-preference-form.js") | $raw %]
854 /* Set some variable needed in circulation.js */
855 var interface = "[% interface | html %]";
856 var theme = "[% theme | html %]";
857 var borrowernumber = "[% patron.borrowernumber | html %]";
858 var branchcode = "[% Branches.GetLoggedInBranchcode() | html %]";
859 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
860 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %]
861 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
862 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
863 var script = "moremember";
864 var relatives_borrowernumbers = new Array();
865 [% FOREACH b IN relatives_borrowernumbers %]
866 relatives_borrowernumbers.push("[% b | html %]");
869 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
870 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
872 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
874 $(document).ready(function() {
875 if ( $('#clubs-tab').length ) {
876 $('#clubs-tab-link').on('click', function() {
877 $('#clubs-tab').text(_("Loading..."));
878 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% borrowernumber | html %]');
882 $('#finesholdsissues').tabs({
883 // Correct table sizing for tables hidden in tabs
884 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
885 "show": function(event, ui) {
886 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
887 if ( oTable.length > 0 ) {
888 oTable.fnAdjustColumnSizing();
891 "activate": function( event, ui ) {
892 $('#'+ui.newTab.context.id).click();
895 $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
898 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
901 { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
906 $("#suspend_until").datepicker({
907 onClose: function(dateText, inst) {
908 validate_date(dateText, inst);
910 minDate: 1, // require that hold suspended until date is after today
911 }).on("change", function(e, value) {
912 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
915 $("#view_restrictions").on("click",function(){
916 $('#debarments-tab-link').click();
919 $("#show-picture-upload").on("click", function(e){
922 $("#picture-upload").toggle();
925 $("#cancel-picture-upload").on("click", function(e){
927 $("#picture-upload, #show-picture-upload").toggle();
931 function uncheck_sibling(me){
932 nodename=me.getAttribute("name");
933 if (nodename =="barcodes[]"){
934 var Node=me.parentNode.previousSibling;
935 while (Node.nodeName!="TD"){Node=Node.previousSibling}
936 var Nodes=Node.childNodes;
937 for (var i=0;i < Nodes.length;i++){
938 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
939 Nodes[i].checked=false;
943 var Node=me.parentNode.nextSibling;
944 while (Node.nodeName!="TD"){Node=Node.nextSibling}
945 var Nodes=Node.childNodes;
946 for (var i=0;i<Nodes.length;i++){
947 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
948 Nodes[i].checked=false;
954 function validate1(date) {
955 var today = new Date();
956 if ( date < today ) {
965 [% INCLUDE 'intranet-bottom.inc' %]