8 [% USE AuthorisedValues %]
9 [% USE TablesSettings %]
11 [% PROCESS 'member-display-address-style.inc' %]
12 [% PROCESS 'member-display-alt-address-style.inc' %]
13 [% SET footerjs = 1 %]
14 [% INCLUDE 'doc-head-open.inc' %]
15 [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
17 [% UNLESS blocking_error %]
18 Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
19 [% END %] › Patrons › Koha
21 [% INCLUDE 'doc-head-close.inc' %]
24 <body id="pat_moremember" class="pat">
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'patron-search.inc' %]
28 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
31 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
34 [% IF blocking_error %]
36 <a href="#" aria-current="page">
42 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
45 <a href="#" aria-current="page">
46 Patron details for [% INCLUDE 'patron-title.inc' %]
53 <div class="main container-fluid">
55 <div class="col-sm-10 col-sm-push-2">
59 [% INCLUDE 'members-toolbar.inc' %]
62 <div class="dialog alert">
63 [% IF ( error == 'CANT_DELETE_STAFF' ) %]
64 <h3>Unable to delete staff user</h3>
65 <p>Insufficient privileges.</p>
67 [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
68 <h3>Not allowed to delete own account</h3>
69 <p>Deleting your own account would lock you out of Koha.</p>
71 [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
72 <h3>Unable to delete patrons from other libraries with current settings</h3>
73 <p>Insufficient privileges.</p>
75 [% IF ( error == 'CANT_DELETE_ANONYMOUS_PATRON' ) %]
76 <h3>Unable to delete patron that is set as AnonymousPatron</h3>
77 <p>This patron cannot be deleted while set as AnonymousPatron in the system preferences.</p>
79 [% IF ( error == 'CANT_DELETE' ) %]
80 <h3>Unable to delete patron</h3>
81 <p>Insufficient privileges.</p>
90 [% patron.title | html %] [% patron.firstname | html %]
92 [% patron.surname | html %] ([% patron.cardnumber | html %])
95 [% IF ( was_renewed ) %]
96 <div class="dialog message">
97 Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
101 <div id="patron_messages" class="circmessage attention">
102 [% INCLUDE 'patron_messages.inc' %]
105 <div class="col-sm-6">
107 <div id="patron-information" class="patroninfo-section">
109 <div class="patroninfo-heading">
110 <h3>Contact information</h3>
111 [% IF ( guarantor.borrowernumber ) %]
112 <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>
114 <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>
118 [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
120 <div class="address">
122 [% PROCESS 'display-address-style' %]
128 [% IF ( patron.phone ) %]
130 <span class="label">Primary phone: </span>
131 <a href="tel:[% patron.phone | uri %]">[% patron.phone | html %]</a>
134 [% IF ( patron.phonepro ) %]
136 <span class="label">Secondary phone: </span>
137 <a href="tel:[% patron.phonepro | uri %]">[% patron.phonepro | html %]</a>
140 [% IF ( patron.mobile ) %]
142 <span class="label">Other phone: </span>
143 <a href="tel:[% patron.mobile | uri %]">[% patron.mobile | html %]</a>
146 [% IF ( patron.fax ) %]
148 <span class="label">Fax: </span>
149 [% patron.fax | html %]
152 [% IF ( patron.email ) %]
154 <span class="label">Primary email:</span>
155 <a title="[% patron.email | html %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a>
158 [% IF ( patron.emailpro ) %]
160 <span class="label">Secondary email: </span>
161 <a title="[% patron.emailpro | html %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a>
165 [% IF ( patron.initials ) %]
167 <span class="label">Initials: </span>
168 [% patron.initials | html %]
171 [% IF ( patron.dateofbirth ) %]
173 <span class="label">Date of birth:</span>
174 [% INCLUDE 'patron-age.inc' %]
177 [% IF ( patron.sex ) %]
179 <span class="label">Gender:</span>
180 [% IF ( patron.sex == 'F' ) %]<span class="patronsex-female">Female</span>[% ELSIF ( patron.sex == 'M' ) %]<span class="patronsex-male">Male</span>[% ELSIF (patron.sex == 'O' ) %]<span class="patronsex-other">Other</span>[% ELSE %][% patron.sex | html %][% END %]
184 <li id="patron-privacyguarantor">
185 <span class="label">Show checkouts to guarantor</span>
186 [% IF patron.privacy_guarantor_checkouts %]
193 <li id="patron-privacy_guarantor_fines">
194 <span class="label">Show fines to guarantor</span>
195 [% IF patron.privacy_guarantor_fines %]
204 <span class="label">Guarantees:</span>
206 [% FOREACH guarantee IN guarantees %]
207 [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
208 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
210 <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
215 [% ELSIF guarantor_relationships.count > 0 OR ( patron.contactfirstname OR patron.contactname ) %]
217 [% IF guarantor_relationships.count > 1 OR guarantor_relationships.count == 0 AND ( patron.contactfirstname OR patron.contactname ) %]
218 <span class="label">Guarantors:</span>
220 <span class="label">Guarantor:</span>
223 [% FOREACH gr IN guarantor_relationships %]
224 [% SET guarantor = gr.guarantor %]
225 [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
226 <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>
229 [% IF patron.contactfirstname OR patron.contactname %]
230 <li>[% patron.contactfirstname | html %] [% patron.contactname | html %][% IF patron.relationship %] ([% patron.relationship | html %])[% END %]</li>
236 [% IF ( patron.primary_contact_method ) %]
238 <span class="label">Main contact method: </span>
239 [% SWITCH patron.primary_contact_method %]
242 [% CASE 'phonepro' %]
248 [% CASE 'emailpro' %]
256 </div> [% # /div.rows %]
257 </div> [% # /div#patron-information %]
259 [% IF ( patronimages ) %]
260 [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
261 <div id="manage-patron-image" class="patroninfo-section">
262 [% IF ( patron.image ) %]
263 <div class="patroninfo-heading">
264 <h3>Manage patron image</h3>
265 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-pencil"></i> Edit</a>
268 <div class="patroninfo-heading">
269 <h3>Upload patron image</h3>
270 <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-plus"></i> Add</a>
273 <form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
274 [% IF ( patron.image ) %]
275 <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>
277 <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>
279 <p>Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 2MB.</p>
280 <label for="uploadfile">Select the file to upload: </label>
281 <input type="file" id="uploadfile" name="uploadfile" required="required" />
283 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
284 <input type="hidden" id="image" name="filetype" value="image" />
285 <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
286 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
287 <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-upload"></i> Upload</button>
288 <input name="op" type="hidden" value="Upload" />
289 [% IF ( patron.image ) %]
290 <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>
292 <a href="#" id="cancel-picture-upload" class="cancel">Cancel</a>
295 </div> [% # /div#manage-patron-image %]
299 [% IF Koha.Preference('HouseboundModule') %]
300 <div id="houseboundroles" class="patroninfo-section">
301 [% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %]
302 <div class="patroninfo-heading">
303 <h3>Housebound roles</h3>
304 <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>
309 <span class="label">Chooser:</span>
310 [% IF ( housebound_role.housebound_chooser == 1 ) %]
317 <span class="label">Deliverer:</span>
318 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
327 <div class="patroninfo-heading">
328 <h3>Housebound roles</h3>
329 <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>
332 </div> [% #/ div#houseboundroles %]
335 [% IF Koha.Preference('ExtendedPatronAttributes') %]
336 [% UNLESS ( no_patron_attribute_types ) %]
337 <div id="patron-extended-attributes" class="patroninfo-section">
338 [% IF ( attributes_loop ) %]
339 <div class="patroninfo-heading">
340 <h3>Additional attributes and identifiers</h3>
341 <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>
343 [% FOREACH attribute IN attributes_loop %]
344 [% IF attribute.class %]
345 <div id="aai_[% attribute.class | html %]" class="rows">
347 <div id="aai" class="rows">
349 <h4>[% attribute.lib | html %]</h4>
351 [% FOREACH item IN attribute.items %]
353 <span class="label">[% item.type.description | html %]: </span>
354 [% item.description | html_line_break %]
363 <div class="patroninfo-heading">
364 <h3>Additional attributes and identifiers</h3>
365 <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>
368 </div> [% # /div#patron-extended-attributes %]
372 [% IF ( EnhancedMessagingPreferences ) %]
373 <div id="patron-messaging-prefs" class="patroninfo-section">
374 <div class="patroninfo-heading">
375 <h3>Patron messaging preferences</h3>
376 <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>
378 [% INCLUDE 'messaging-preference-form.inc' %]
379 [% IF Koha.Preference('SMSSendDriver') %]
383 <span class="label">SMS number:</span>
384 <a href="sms:[% patron.smsalertnumber | uri %]">[% patron.smsalertnumber | html %]</a>
387 <span class="label">SMS provider:</span>
388 [% patron.sms_provider.name | html %]
393 </div> [% # /div#patron-messaging-prefs %]
396 </div> <!-- /.col-sm-6 -->
398 <div class="col-sm-6">
399 <div id="patron-library-details" class="patroninfo-section">
400 <div class="patroninfo-heading">
402 <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>
406 <li id="patron-cardnumber">
407 <span class="label">Card number: </span>
408 [% patron.cardnumber | html %]
410 <li id="patron-borrowernumber">
411 <span class="label">Borrowernumber: </span>
412 [% patron.borrowernumber | html %]
414 <li id="patron-categorydescription">
415 <span class="label">Category: </span>
416 [% patron.category.description | html %] ([% patron.categorycode | html %])
418 <li id="patron-dateenrolled">
419 <span class="label">Registration date: </span>
420 [% patron.dateenrolled | $KohaDates %]
423 [% IF ( patron.date_renewed ) %]
424 <li id="patron-daterenewed">
425 <span class="label">Renewal date: </span>
426 [% patron.date_renewed | $KohaDates %]
430 <li id="patron-expirationdate">
431 <span class="label">Expiration date: </span>
432 [% IF ( was_renewed ) %]
433 <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
434 [% ELSIF ( patron.is_expired ) %]
435 <span class="blocker">
436 [% patron.dateexpiry | $KohaDates %]
437 <strong><em>Expired</em></strong>
438 <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 %]">Edit details</a>
440 [% ELSIF ( patron.is_going_to_expire ) %]
441 [% patron.dateexpiry | $KohaDates %]
442 <strong><em>Patron expires soon</em></strong>
443 <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 %]">Edit details</a>
445 [% patron.dateexpiry | $KohaDates %]
448 <li id="patron-branchname">
449 <span class="label">Library: </span>
450 [% Branches.GetName( patron.branchcode ) | html %]
453 [% IF Koha.Preference( 'OPACPrivacy') %]
454 <li id="patron-privacypref">
455 <span class="label">Privacy pref:</span>
456 [% IF ( patron.privacy == 0 ) %]Forever[% END %]
457 [% IF ( patron.privacy == 1 ) %]Default[% END %]
458 [% IF ( patron.privacy == 2 ) %]Never[% END %]
462 [% IF ( patron.sort1 ) %]
463 <li id="patron-sort1">
464 <span class="label">Sort field 1:</span>
465 [% AuthorisedValues.GetByCode('Bsort1', patron.sort1) | html %]
468 [% IF ( patron.sort2 ) %]
469 <li id="patron-sort2">
470 <span class="label">Sort field 2:</span>
471 [% AuthorisedValues.GetByCode('Bsort2', patron.sort2) | html %]
474 [% UNLESS ( patron.autorenew_checkouts ) %]
475 <li id="patron-autorenew_checkouts">
476 <span class="label">Auto-renewal:</span>
480 <li id="patron-username">
481 <span class="label">Username: </span>
482 [% patron.userid | html %]
484 <li id="patron-password">
485 <span class="label">Password: </span>
486 [% IF ( patron.password ) %]
489 <i class="fa fa-exclamation-circle problem" aria-hidden="true"></i> <a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | uri %]">Undefined</a>
493 [% IF ( patron.borrowernotes ) %]
494 <li id="patron-borrowernotes">
495 <span class="label">Circulation note: </span><br />
496 [% patron.borrowernotes | $raw | html_line_break %]
500 [% IF ( patron.opacnote ) %]
501 <li id="patron-opacnote">
502 <span class="label">OPAC note:</span><br />
503 [% patron.opacnote | html | html_line_break %]
507 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
508 <li id="patron-checkprev">
509 <span class="label">Check previous checkouts: </span>
510 [% IF ( patron.checkprevcheckout == 'yes' ) %]
512 [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
520 [% IF Koha.Preference('TranslateNotices') %]
521 <li id="patron-translatenotices">
522 <span class="label">Preferred language for notices: </span>
523 [% translated_language | html %]
527 </div> [% # /div.rows %]
528 </div> [% # /div#patron-library-details %]
530 <div id="patron-alternate-address" class="patroninfo-section">
531 [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
532 <div class="patroninfo-heading">
533 <h3>Alternate address</h3>
534 <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>
536 <div class="address">
538 [% PROCESS 'display-alt-address-style' %]
543 [% IF ( patron.B_phone ) %]
544 <li id="patron-bphone">
545 <span class="label">Phone: </span>
546 <a href="tel:[% patron.B_phone | uri %]">[% patron.B_phone |html %]</a>
550 [% IF ( patron.B_email ) %]
551 <li id="patron-bemail" class="email">
552 <span class="label">Email: </span>
553 <a title="[% patron.B_email | html %]" href="mailto:[% patron.B_email | url %]">[% patron.B_email |html %]</a>
557 [% IF ( patron.contactnote ) %]
558 <li id="patron-contactnote">
559 <span class="label">Contact note: </span>
560 [% patron.contactnote |html %]
566 <div class="patroninfo-heading">
567 <h3 class="inline">Alternate address</h3>
568 <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>
571 </div> [% # /div#patron-alternate-address %]
573 <div id="patron-alternative-contact" class="patroninfo-section">
574 [% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %]
575 <div class="patroninfo-heading">
576 <h3>Alternative contact</h3>
577 <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>
581 [% IF ( patron.altcontactsurname ) %]
582 <li id="patron-altcontactsurname">
583 <span class="label">Surname: </span>
584 [% patron.altcontactsurname | html %]
587 [% IF ( patron.altcontactfirstname ) %]
588 <li id="patron-altcontactfirstname">
589 <span class="label">First name: </span>
590 [% patron.altcontactfirstname | html %]
593 [% IF ( patron.altcontactaddress1 ) %]
594 <li id="patron-altcontactaddress1">
595 <span class="label">Address: </span>
596 [% patron.altcontactaddress1 | html %]
599 [% IF ( patron.altcontactaddress2 ) %]
600 <li id="patron-altcontactaddress2">
601 <span class="label">Address 2: </span>
602 [% patron.altcontactaddress2 | html %]
605 [% IF ( patron.altcontactaddress3 ) %]
606 <li id="patron-altcontactaddress3">
607 <span class="label">City: </span>
608 [% patron.altcontactaddress3 | html %]
612 [% IF ( patron.altcontactstate ) %]
613 <li id="patron-altcontactstate">
614 <span class="label">State: </span>
615 [% patron.altcontactstate | html %]
618 [% IF ( patron.altcontactzipcode ) %]
619 <li id="patron-altcontactzipcode">
620 <span class="label">ZIP/Postal code: </span>
621 [% patron.altcontactzipcode | html %]
624 [% IF ( patron.altcontactcountry ) %]
625 <li id="patron-altcontactcountry">
626 <span class="label">Country: </span>
627 [% patron.altcontactcountry | html %]
630 [% IF ( patron.altcontactphone ) %]
631 <li id="patron-altcontactphone">
632 <span class="label">Phone: </span>
633 <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
637 </div> [% # /div.rows %]
639 <div class="patroninfo-heading">
640 <h3>Alternative contact</h3>
641 <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>
644 </div> [% # /div#patron-alternative-contact %]
646 [% IF Koha.Preference('EnableBorrowerFiles') %]
647 <div id="patron-files" class="patroninfo-section">
648 <div class="patroninfo-heading">
650 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]"><i class="fa fa-list"></i> Manage</a>
655 [% FOREACH f IN files %]
657 <a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=download&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a>
658 [% IF ( f.file_description ) %]
659 - [% f.file_description | html %]
662 [% END # /FOREACH f %]
665 [% END # /IF files %]
667 </div> <!-- /.patroninfo-heading -->
668 </div> <!-- /#patron-files -->
669 [% END # /IF EnableBorrowerFiles %]
671 </div> <!-- /div.col-sm-6 -->
672 </div> <!-- /div.row -->
674 <div id="finesholdsissues" class="toptabs">
677 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
679 [% IF relatives_issues_count %]
681 <a href="#relatives-issues" id="relatives-issues-tab">[% relatives_issues_count | html %] Relatives' checkouts</a>
686 <a href="#finesandcharges">Charges ([% fines | $Price %])</a>
689 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
691 [% IF ( holds_count ) %]
692 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
694 <a href="#reserves" id="holds-tab">0 Holds</a>
698 [% IF Koha.Preference('ArticleRequests') %]
699 [% SET article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current') %]
701 <a href="#article-requests" id="article-requests-tab"> [% article_requests.count | html %] Article requests</a>
705 [% IF Koha.Preference('ClaimReturnedLostValue') %]
707 [% IF ( patron.return_claims.count ) %]
708 <a href="#return-claims" id="return-claims-tab">
710 [% IF patron.return_claims.resolved.count == 0 %]
711 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
713 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
715 [% IF patron.return_claims.unresolved.count == 0 %]
716 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
718 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
723 <a href="#return-claims" id="return-claims-tab">
725 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
726 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
733 <a id="debarments-tab-link" href="#reldebarments">[% debarments.size | html %] Restrictions</a>
735 [% SET enrollments = patron.get_club_enrollments %]
736 [% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC -->
737 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
739 <a id="clubs-tab-link" href="#clubs-tab">
740 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
745 [% IF Koha.Preference('UseRecalls') %]
747 <a href="#recalls" id="recalls-tab">
748 [% recalls.count | html %] Recalls
754 [% INCLUDE "checkouts-table.inc" %]
756 [% INCLUDE "relatives-issues-table.inc" %]
759 <div id="finesandcharges">
761 <p>Total due: [% fines | $Price %]</p>
763 <p>No outstanding charges</p>
768 [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
774 [% IF Koha.Preference('UseRecalls') %]
776 [% INCLUDE 'recalls.inc' %]
780 [% INCLUDE borrower_debarments.inc %]
782 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
784 [% IF ( holds_count ) %]
785 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
786 <input type="hidden" name="from" value="circ" />
787 <table id="holds-table" style="width: 100% !Important;">
805 <fieldset class="action">
806 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
808 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
809 [% IF hold_cancellation %]
810 <label for="cancellation-reason">Cancellation reason:</label>
811 <select name="cancellation-reason">
812 <option value="">No reason given</option>
813 [% FOREACH reason IN hold_cancellation %]
814 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
821 [% IF Koha.Preference('SuspendHoldsIntranet') %]
822 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
823 <fieldset class="action">
824 <input type="hidden" name="from" value="borrower" />
825 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
826 <input type="submit" value="Suspend all holds" />
828 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
829 <label for="suspend_until">until</label>
830 <input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true"/>
831 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
836 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
837 <fieldset class="action">
838 <input type="hidden" name="from" value="borrower" />
839 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
840 <input type="hidden" name="suspend" value="0" />
841 <input type="submit" value="Resume all suspended holds" />
844 [% END # IF SuspendHoldsIntranet %]
847 <p>Patron has nothing on hold.</p>
849 </div> [% # /div#reserves %]
852 [% IF Koha.Preference('ClaimReturnedLostValue') %]
853 [% INCLUDE 'patron-return-claims.inc' %]
856 [% IF Koha.Preference('ArticleRequests') %]
857 [% INCLUDE 'patron-article-requests.inc' %]
860 </div> <!-- /div#finesholdsissues -->
862 </div> <!-- /.col-sm-10.col-sm-push-2 -->
864 <div class="col-sm-2 col-sm-pull-10">
866 [% INCLUDE 'circ-menu.inc' %]
868 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
869 </div> <!-- /.row -->
871 [% IF Koha.Preference('ClaimReturnedLostValue') %]
872 [% INCLUDE 'modals/resolve_return_claim.inc' %]
875 [% MACRO jsinclude BLOCK %]
876 [% INCLUDE 'datatables.inc' %]
877 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
878 [% INCLUDE 'columns_settings.inc' %]
879 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
880 [% INCLUDE 'timepicker.inc' %]
881 [% INCLUDE 'select2.inc' %]
882 [% INCLUDE 'js-date-format.inc' %]
884 /* Set some variable needed in circulation.js */
885 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
886 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
887 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
888 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
889 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
890 var interface = "[% interface | html %]";
891 var theme = "[% theme | html %]";
892 var borrowernumber = "[% patron.borrowernumber | html %]";
893 var branchcode = "[% Branches.GetLoggedInBranchcode() | html %]";
894 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
895 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %]
896 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
897 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
898 var script = "moremember";
899 var relatives_borrowernumbers = new Array();
900 [% FOREACH b IN relatives_borrowernumbers %]
901 relatives_borrowernumbers.push("[% b | html %]");
903 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
905 [% Asset.js("js/pages/circulation.js") | $raw %]
906 [% Asset.js("js/checkouts.js") | $raw %]
907 [% IF Koha.Preference('ClaimReturnedLostValue') %]
908 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
910 [% Asset.js("js/holds.js") | $raw %]
911 [% INCLUDE 'calendar.inc' %]
912 [% INCLUDE 'str/members-menu.inc' %]
913 [% Asset.js("js/members-menu.js") | $raw %]
914 [% Asset.js("js/recalls.js") | $raw %]
917 columns_settings_issues_table = [% TablesSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
919 $(document).ready(function() {
920 $("#info_digests").tooltip();
922 if ( $('#clubs-tab').length ) {
923 $('#clubs-tab-link').on('click', function() {
924 $('#clubs-tab').text(_("Loading..."));
925 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
929 $('#finesholdsissues').tabs({
930 // Correct table sizing for tables hidden in tabs
931 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
932 "show": function(event, ui) {
933 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
934 if ( oTable.length > 0 ) {
935 oTable.fnAdjustColumnSizing();
938 "activate": function( event, ui ) {
939 $('#'+ui.newTab.context.id).click();
943 $("#view_restrictions").on("click",function(){
944 $('#debarments-tab-link').click();
947 $("#show-picture-upload").on("click", function(e){
950 $("#picture-upload").toggle();
953 $("#cancel-picture-upload").on("click", function(e){
955 $("#picture-upload, #show-picture-upload").toggle();
959 function uncheck_sibling(me){
960 nodename=me.getAttribute("name");
961 if (nodename =="barcodes[]"){
962 var Node=me.parentNode.previousSibling;
963 while (Node.nodeName!="TD"){Node=Node.previousSibling}
964 var Nodes=Node.childNodes;
965 for (var i=0;i < Nodes.length;i++){
966 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
967 Nodes[i].checked=false;
971 var Node=me.parentNode.nextSibling;
972 while (Node.nodeName!="TD"){Node=Node.nextSibling}
973 var Nodes=Node.childNodes;
974 for (var i=0;i<Nodes.length;i++){
975 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
976 Nodes[i].checked=false;
984 [% INCLUDE 'intranet-bottom.inc' %]