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-header.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>
88 [% IF ( was_renewed ) %]
89 <div class="dialog message">
90 Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]
94 <div id="patron_messages" class="circmessage attention">
95 [% INCLUDE 'patron_messages.inc' %]
98 <h1>[% INCLUDE 'patron-title.inc' no_html = 1 %]</h1>
99 <div class="col-sm-6">
101 <div id="patron-information" class="patroninfo-section">
103 <div class="patroninfo-heading">
104 <h3>Contact information</h3>
105 [% IF ( guarantor.borrowernumber ) %]
106 <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>
108 <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>
112 [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %]
114 <div class="address">
116 [% PROCESS 'display-address-style' %]
122 [% IF ( patron.phone ) %]
124 <span class="label">Primary phone: </span>
125 <a href="tel:[% patron.phone | uri %]">[% patron.phone | html %]</a>
128 [% IF ( patron.phonepro ) %]
130 <span class="label">Secondary phone: </span>
131 <a href="tel:[% patron.phonepro | uri %]">[% patron.phonepro | html %]</a>
134 [% IF ( patron.mobile ) %]
136 <span class="label">Other phone: </span>
137 <a href="tel:[% patron.mobile | uri %]">[% patron.mobile | html %]</a>
140 [% IF ( patron.fax ) %]
142 <span class="label">Fax: </span>
143 [% patron.fax | html %]
146 [% IF ( patron.email ) %]
148 <span class="label">Primary email:</span>
149 <a title="[% patron.email | html %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a>
152 [% IF ( patron.emailpro ) %]
154 <span class="label">Secondary email: </span>
155 <a title="[% patron.emailpro | html %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a>
159 [% IF ( patron.initials ) %]
161 <span class="label">Initials: </span>
162 [% patron.initials | html %]
165 [% IF ( patron.dateofbirth ) %]
167 <span class="label">Date of birth:</span>
168 [% INCLUDE 'patron-age.inc' %]
171 [% IF ( patron.sex ) %]
173 <span class="label">Gender:</span>
174 [% 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 %]
178 <li id="patron-privacyguarantor">
179 <span class="label">Show checkouts to guarantor</span>
180 [% IF patron.privacy_guarantor_checkouts %]
187 <li id="patron-privacy_guarantor_fines">
188 <span class="label">Show fines to guarantor</span>
189 [% IF patron.privacy_guarantor_fines %]
198 <span class="label">Guarantees:</span>
200 [% FOREACH guarantee IN guarantees %]
201 [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
202 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
204 <li>[% guarantee.firstname | html %] [% guarantee.surname | html %]</li>
209 [% ELSIF guarantor_relationships.count > 0 OR ( patron.contactfirstname OR patron.contactname ) %]
211 [% IF guarantor_relationships.count > 1 OR guarantor_relationships.count == 0 AND ( patron.contactfirstname OR patron.contactname ) %]
212 <span class="label">Guarantors:</span>
214 <span class="label">Guarantor:</span>
217 [% FOREACH gr IN guarantor_relationships %]
218 [% SET guarantor = gr.guarantor %]
219 [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
220 <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>
223 [% IF patron.contactfirstname OR patron.contactname %]
224 <li>[% patron.contactfirstname | html %] [% patron.contactname | html %][% IF patron.relationship %] ([% patron.relationship | html %])[% END %]</li>
230 [% IF ( patron.primary_contact_method ) %]
232 <span class="label">Main contact method: </span>
233 [% SWITCH patron.primary_contact_method %]
235 <span>Primary phone</span>
236 [% CASE 'phonepro' %]
237 <span>Secondary phone</span>
239 <span>Other phone</span>
241 <span>Primary email</span>
242 [% CASE 'emailpro' %]
243 <span>Secondary email</span>
250 </div> [% # /div.rows %]
251 </div> [% # /div#patron-information %]
253 [% IF Koha.Preference('HouseboundModule') %]
254 <div id="houseboundroles" class="patroninfo-section">
255 [% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %]
256 <div class="patroninfo-heading">
257 <h3>Housebound roles</h3>
258 <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>
263 <span class="label">Chooser:</span>
264 [% IF ( housebound_role.housebound_chooser == 1 ) %]
271 <span class="label">Deliverer:</span>
272 [% IF ( housebound_role.housebound_deliverer == 1 ) %]
281 <div class="patroninfo-heading">
282 <h3>Housebound roles</h3>
283 <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>
286 </div> [% #/ div#houseboundroles %]
289 [% IF Koha.Preference('ExtendedPatronAttributes') %]
290 [% UNLESS ( no_patron_attribute_types ) %]
291 <div id="patron-extended-attributes" class="patroninfo-section">
292 [% IF ( attributes_loop ) %]
293 <div class="patroninfo-heading">
294 <h3>Additional attributes and identifiers</h3>
295 <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>
297 [% FOREACH attribute IN attributes_loop %]
298 [% IF attribute.class %]
299 <div id="aai_[% attribute.class | html %]" class="rows">
301 <div id="aai" class="rows">
303 <h4>[% attribute.lib | html %]</h4>
305 [% FOREACH item IN attribute.items %]
307 <span class="label">[% item.type.description | html %]: </span>
308 [% item.description | html_line_break %]
317 <div class="patroninfo-heading">
318 <h3>Additional attributes and identifiers</h3>
319 <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>
322 </div> [% # /div#patron-extended-attributes %]
326 [% IF ( EnhancedMessagingPreferences ) %]
327 <div id="patron-messaging-prefs" class="patroninfo-section">
328 <div class="patroninfo-heading">
329 <h3>Patron messaging preferences</h3>
330 <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>
332 [% INCLUDE 'messaging-preference-form.inc' %]
333 [% IF Koha.Preference('SMSSendDriver') %]
337 <span class="label">SMS number:</span>
338 <a href="sms:[% patron.smsalertnumber | uri %]">[% patron.smsalertnumber | html %]</a>
340 [% IF Koha.Preference( 'SMSSendDriver') == 'Email' %]
342 <span class="label">SMS provider:</span>
343 [% patron.sms_provider.name | html %]
349 </div> [% # /div#patron-messaging-prefs %]
352 </div> <!-- /.col-sm-6 -->
354 <div class="col-sm-6">
355 <div id="patron-library-details" class="patroninfo-section">
356 <div class="patroninfo-heading">
358 <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>
362 <li id="patron-cardnumber">
363 <span class="label">Card number: </span>
364 [% patron.cardnumber | html %]
366 <li id="patron-borrowernumber">
367 <span class="label">Borrowernumber: </span>
368 [% patron.borrowernumber | html %]
370 <li id="patron-categorydescription">
371 <span class="label">Category: </span>
372 [% patron.category.description | html %] ([% patron.categorycode | html %])
374 <li id="patron-dateenrolled">
375 <span class="label">Registration date: </span>
376 [% patron.dateenrolled | $KohaDates %]
379 [% IF ( patron.date_renewed ) %]
380 <li id="patron-daterenewed">
381 <span class="label">Renewal date: </span>
382 [% patron.date_renewed | $KohaDates %]
386 <li id="patron-expirationdate">
387 <span class="label">Expiration date: </span>
388 [% IF ( was_renewed ) %]
389 <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
390 [% ELSIF ( patron.is_expired ) %]
391 <span class="blocker">
392 [% patron.dateexpiry | $KohaDates %]
393 <strong><em>Expired</em></strong>
394 <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>
396 [% ELSIF ( patron.is_going_to_expire ) %]
397 [% patron.dateexpiry | $KohaDates %]
398 <strong><em>Patron expires soon</em></strong>
399 <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>
401 [% patron.dateexpiry | $KohaDates %]
404 <li id="patron-branchname">
405 <span class="label">Library: </span>
406 [% Branches.GetName( patron.branchcode ) | html %]
409 [% IF Koha.Preference( 'OPACPrivacy') %]
410 <li id="patron-privacypref">
411 <span class="label">Privacy pref:</span>
412 [% IF ( patron.privacy == 0 ) %]<span>Forever</span>[% END %]
413 [% IF ( patron.privacy == 1 ) %]<span>Default</span>[% END %]
414 [% IF ( patron.privacy == 2 ) %]<span>Never</span>[% END %]
418 [% IF ( patron.sort1 ) %]
419 <li id="patron-sort1">
420 <span class="label">Sort field 1:</span>
421 [% AuthorisedValues.GetByCode('Bsort1', patron.sort1) | html %]
424 [% IF ( patron.sort2 ) %]
425 <li id="patron-sort2">
426 <span class="label">Sort field 2:</span>
427 [% AuthorisedValues.GetByCode('Bsort2', patron.sort2) | html %]
430 [% UNLESS ( patron.autorenew_checkouts ) %]
431 <li id="patron-autorenew_checkouts">
432 <span class="label">Auto-renewal:</span>
436 <li id="patron-username">
437 <span class="label">Username: </span>
438 [% patron.userid | html %]
440 <li id="patron-password">
441 <span class="label">Password: </span>
442 [% IF ( patron.password ) %]
445 <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>
448 [% IF CAN_user_superlibrarian %]
449 <li id="patron-password_expiration_date">
450 <span class="label">Password expires:</span>
451 [% IF ( patron.password_expiration_date ) %]
452 [% patron.password_expiration_date | $KohaDates %]
459 [% IF ( patron.borrowernotes ) %]
460 <li id="patron-borrowernotes">
461 <span class="label">Circulation note: </span><br />
462 [% patron.borrowernotes | $raw | html_line_break %]
466 [% IF ( patron.opacnote ) %]
467 <li id="patron-opacnote">
468 <span class="label">OPAC note:</span><br />
469 [% patron.opacnote | html | html_line_break %]
473 [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
474 <li id="patron-checkprev">
475 <span class="label">Check previous checkouts: </span>
476 [% IF ( patron.checkprevcheckout == 'yes' ) %]
478 [% ELSIF ( patron.checkprevcheckout == 'no' ) %]
481 <span>Inherited</span>
486 [% IF Koha.Preference('TranslateNotices') %]
487 <li id="patron-translatenotices">
488 <span class="label">Preferred language for notices: </span>
489 [% translated_language | html %]
493 </div> [% # /div.rows %]
494 </div> [% # /div#patron-library-details %]
496 <div id="patron-alternate-address" class="patroninfo-section">
497 [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
498 <div class="patroninfo-heading">
499 <h3>Alternate address</h3>
500 <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>
502 <div class="address">
504 [% PROCESS 'display-alt-address-style' %]
509 [% IF ( patron.B_phone ) %]
510 <li id="patron-bphone">
511 <span class="label">Phone: </span>
512 <a href="tel:[% patron.B_phone | uri %]">[% patron.B_phone |html %]</a>
516 [% IF ( patron.B_email ) %]
517 <li id="patron-bemail" class="email">
518 <span class="label">Email: </span>
519 <a title="[% patron.B_email | html %]" href="mailto:[% patron.B_email | url %]">[% patron.B_email |html %]</a>
523 [% IF ( patron.contactnote ) %]
524 <li id="patron-contactnote">
525 <span class="label">Contact note: </span>
526 [% patron.contactnote |html %]
532 <div class="patroninfo-heading">
533 <h3 class="inline">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-plus"></i> Add</a>
537 </div> [% # /div#patron-alternate-address %]
539 <div id="patron-alternative-contact" class="patroninfo-section">
540 [% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %]
541 <div class="patroninfo-heading">
542 <h3>Alternative contact</h3>
543 <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>
547 [% IF ( patron.altcontactsurname ) %]
548 <li id="patron-altcontactsurname">
549 <span class="label">Surname: </span>
550 [% patron.altcontactsurname | html %]
553 [% IF ( patron.altcontactfirstname ) %]
554 <li id="patron-altcontactfirstname">
555 <span class="label">First name: </span>
556 [% patron.altcontactfirstname | html %]
559 [% IF ( patron.altcontactaddress1 ) %]
560 <li id="patron-altcontactaddress1">
561 <span class="label">Address: </span>
562 [% patron.altcontactaddress1 | html %]
565 [% IF ( patron.altcontactaddress2 ) %]
566 <li id="patron-altcontactaddress2">
567 <span class="label">Address 2: </span>
568 [% patron.altcontactaddress2 | html %]
571 [% IF ( patron.altcontactaddress3 ) %]
572 <li id="patron-altcontactaddress3">
573 <span class="label">City: </span>
574 [% patron.altcontactaddress3 | html %]
578 [% IF ( patron.altcontactstate ) %]
579 <li id="patron-altcontactstate">
580 <span class="label">State: </span>
581 [% patron.altcontactstate | html %]
584 [% IF ( patron.altcontactzipcode ) %]
585 <li id="patron-altcontactzipcode">
586 <span class="label">ZIP/Postal code: </span>
587 [% patron.altcontactzipcode | html %]
590 [% IF ( patron.altcontactcountry ) %]
591 <li id="patron-altcontactcountry">
592 <span class="label">Country: </span>
593 [% patron.altcontactcountry | html %]
596 [% IF ( patron.altcontactphone ) %]
597 <li id="patron-altcontactphone">
598 <span class="label">Phone: </span>
599 <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
603 </div> [% # /div.rows %]
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-plus"></i> Add</a>
610 </div> [% # /div#patron-alternative-contact %]
612 [% IF Koha.Preference('EnableBorrowerFiles') %]
613 <div id="patron-files" class="patroninfo-section">
614 <div class="patroninfo-heading">
616 <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>
621 [% FOREACH f IN files %]
623 <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>
624 [% IF ( f.file_description ) %]
625 - [% f.file_description | html %]
628 [% END # /FOREACH f %]
631 [% END # /IF files %]
633 </div> <!-- /.patroninfo-heading -->
634 </div> <!-- /#patron-files -->
635 [% END # /IF EnableBorrowerFiles %]
637 </div> <!-- /div.col-sm-6 -->
638 </div> <!-- /div.row -->
640 <div id="finesholdsissues" class="toptabs">
643 <a href="#checkouts">Checkouts ([% issuecount || 0 | html %])</a>
645 [% IF relatives_issues_count %]
647 <a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts ([% relatives_issues_count | html %])</a>
652 <a href="#finesandcharges">Charges ([% fines | $Price %])</a>
655 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
657 <a href="#reserves" id="holds-tab">Holds ([% holds_count || 0 | html %])</a>
661 [% IF Koha.Preference('UseRecalls') %]
663 <a href="#recalls" id="recalls-tab">Recalls ([% recalls.count || 0 | html %])</a>
667 [% IF Koha.Preference('ArticleRequests') %]
668 [% SET article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current') %]
670 <a href="#article-requests" id="article-requests-tab">Article requests ([% article_requests.count || 0 | html %])</a>
674 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
676 [% IF ( patron.return_claims.count ) %]
677 <a href="#return-claims" id="return-claims-tab">
679 ([% IF patron.return_claims.resolved.count == 0 %]
680 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
682 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
684 [% IF patron.return_claims.unresolved.count == 0 %]
685 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
687 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
691 <a href="#return-claims" id="return-claims-tab">
693 (<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
694 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>)
701 <a id="debarments-tab-link" href="#reldebarments">Restrictions ([% debarments.size || 0 | html %])</a>
704 [% SET enrollments = patron.get_club_enrollments %]
705 [% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC -->
706 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
708 <a id="clubs-tab-link" href="#clubs-tab">
709 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
715 [% INCLUDE "checkouts-table.inc" %]
717 [% INCLUDE "relatives-issues-table.inc" %]
720 <div id="finesandcharges">
722 <p>Total due: [% fines | $Price %]</p>
724 <p>No outstanding charges</p>
729 [% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %]
735 [% INCLUDE borrower_debarments.inc %]
737 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
739 [% IF ( holds_count ) %]
740 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
741 <input type="hidden" name="from" value="circ" />
742 <table id="holds-table" style="width: 100% !Important;">
760 <fieldset class="action">
761 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
763 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
764 [% IF hold_cancellation.count %]
765 <label for="cancellation-reason">Cancellation reason:</label>
766 <select name="cancellation-reason">
767 <option value="">No reason given</option>
768 [% FOREACH reason IN hold_cancellation %]
769 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
776 [% IF Koha.Preference('SuspendHoldsIntranet') %]
777 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
778 <fieldset class="action">
779 <input type="hidden" name="from" value="borrower" />
780 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
781 <input type="submit" value="Suspend all holds" />
783 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
784 <label for="suspend_until">until</label>
785 <input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true"/>
786 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
791 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
792 <fieldset class="action">
793 <input type="hidden" name="from" value="borrower" />
794 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
795 <input type="hidden" name="suspend" value="0" />
796 <input type="submit" value="Resume all suspended holds" />
799 [% END # IF SuspendHoldsIntranet %]
802 <p>Patron has nothing on hold.</p>
804 </div> [% # /div#reserves %]
807 [% IF Koha.Preference('UseRecalls') %]
809 [% INCLUDE 'recalls.inc' %]
813 [% IF Koha.Preference('ClaimReturnedLostValue') %]
814 [% INCLUDE 'patron-return-claims.inc' %]
817 [% IF Koha.Preference('ArticleRequests') %]
818 [% INCLUDE 'patron-article-requests.inc' %]
821 </div> <!-- /div#finesholdsissues -->
823 </div> <!-- /.col-sm-10.col-sm-push-2 -->
825 <div class="col-sm-2 col-sm-pull-10">
827 [% INCLUDE 'circ-menu.inc' %]
829 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
830 </div> <!-- /.row -->
832 [% IF Koha.Preference('ClaimReturnedLostValue') %]
833 [% INCLUDE 'modals/resolve_return_claim.inc' %]
836 [% MACRO jsinclude BLOCK %]
837 [% INCLUDE 'datatables.inc' %]
838 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
839 [% INCLUDE 'columns_settings.inc' %]
840 [% INCLUDE 'select2.inc' %]
842 /* Set some variable needed in circulation.js */
843 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
844 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
845 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
846 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
847 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
848 var interface = "[% interface | html %]";
849 var theme = "[% theme | html %]";
850 var borrowernumber = "[% patron.borrowernumber | html %]";
851 var branchcode = "[% Branches.GetLoggedInBranchcode() | html %]";
852 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
853 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %]
854 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
855 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
856 var script = "moremember";
857 var relatives_borrowernumbers = new Array();
858 [% FOREACH b IN relatives_borrowernumbers %]
859 relatives_borrowernumbers.push("[% b | html %]");
861 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
863 [% Asset.js("js/pages/circulation.js") | $raw %]
864 [% Asset.js("js/checkouts.js") | $raw %]
865 [% IF Koha.Preference('ClaimReturnedLostValue') %]
866 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
868 [% Asset.js("js/holds.js") | $raw %]
869 [% INCLUDE 'calendar.inc' %]
870 [% INCLUDE 'str/members-menu.inc' %]
871 [% Asset.js("js/members-menu.js") | $raw %]
872 [% Asset.js("js/recalls.js") | $raw %]
875 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
877 $(document).ready(function() {
878 $("#info_digests").tooltip();
880 if ( $('#clubs-tab').length ) {
881 $('#clubs-tab-link').on('click', function() {
882 $('#clubs-tab').text(_("Loading..."));
883 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
887 $('#finesholdsissues').tabs({
888 // Correct table sizing for tables hidden in tabs
889 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
890 "show": function(event, ui) {
891 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
892 if ( oTable.length > 0 ) {
893 oTable.fnAdjustColumnSizing();
896 "activate": function( event, ui ) {
897 $("a", ui.newTab ).click();
901 $("#view_restrictions").on("click",function(){
902 $('#debarments-tab-link').click();
905 function uncheck_sibling(me){
906 nodename=me.getAttribute("name");
907 if (nodename =="barcodes[]"){
908 var Node=me.parentNode.previousSibling;
909 while (Node.nodeName!="TD"){Node=Node.previousSibling}
910 var Nodes=Node.childNodes;
911 for (var i=0;i < Nodes.length;i++){
912 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
913 Nodes[i].checked=false;
917 var Node=me.parentNode.nextSibling;
918 while (Node.nodeName!="TD"){Node=Node.nextSibling}
919 var Nodes=Node.childNodes;
920 for (var i=0;i<Nodes.length;i++){
921 if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
922 Nodes[i].checked=false;
930 [% INCLUDE 'intranet-bottom.inc' %]