8 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
9 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11 [% SET borrower_club_enrollments = logged_in_user.get_club_enrollments(1) %]
12 [% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1,1) %]
14 [% INCLUDE 'doc-head-open.inc' %]
15 <title>Your library home › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% BLOCK cssinclude %][% END %]
19 [% INCLUDE 'bodytag.inc' bodyid='opac-user' bodyclass='scrollto' %]
20 [% INCLUDE 'masthead.inc' %]
22 [% IF Koha.Preference('AmazonAssocTag') %]
23 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
25 [% AmazonAssocTag = '' %]
29 <nav aria-label="breadcrumb">
30 <ul class="breadcrumb">
31 <li class="breadcrumb-item">
32 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
34 <li class="breadcrumb-item">
35 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
37 <li class="breadcrumb-item active" aria-current="page">
38 <a href="#">Your summary</a>
43 <div class="container-fluid">
45 <div class="col col-lg-2 order-2 order-lg-1">
47 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
50 <div class="col-md-12 col-lg-10 order-1 order-lg-2">
51 <div id="userdetails" class="maincontent">
55 [% INCLUDE 'opac-note.inc' %]
57 <p>Hello, [% INCLUDE 'patron-title.inc' patron = logged_in_user %]
59 <a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here if you're not [% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a></p>
61 [% IF ( patronupdate ) %]<div class="alert alert-info"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
64 <div class="alert alert-info">
66 <p>One or more holds were not placed due to existing holds.</p>
70 [% IF ( borrower.blockedonfines ) %]
71 <div class="alert alert-warning" id="blockedonfines">
72 <strong>Please note:</strong><span> Your account has outstanding fees & charges of [% amountoutstanding | $Price %]. Holds are blocked because your fine balance is over the limit.</span>
76 [% IF ( borrower.warndeparture ) %]
77 <div class="alert alert-warning" id="warndeparture">
78 <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% borrower.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
79 [% IF ( borrower.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
83 [% IF ( borrower.warnexpired ) %]
84 <div class="alert alert-warning" id="warnexpired">
85 <strong>Please note: </strong><span>Your account has expired as of [% borrower.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
89 [% IF ( RENEW_ERROR ) %]
90 <div class="alert alert-warning">
91 <strong>Please note:</strong>
92 Your loan renewal failed because of the following reason(s):
94 [% FOREACH error IN RENEW_ERROR.split('\|') %]
95 [% IF error == 'card_expired' %]
96 <li>Your account has expired. Please contact the library for more information.</li>
97 [% ELSIF error == 'too_many' %]
98 <li>You have renewed this item the maximum number of times allowed.</li>
99 [% ELSIF error == 'too_unseen' %]
100 <li>You have renewed this item the maximum number of consecutive times without it being seen by the library.</li>
101 [% ELSIF error == 'too_soon' %]
102 <li>It is too soon after the checkout date for this item to be renewed.</li>
103 [% ELSIF error == 'on_reserve' %]
104 <li>This item is on hold for another borrower.</li>
105 [% ELSIF error == 'item_denied_renewal' %]
106 <li>Item renewal is not allowed.</li>
107 [% ELSIF error == 'auto_too_soon' %]
108 <li>This item is scheduled for auto renewal.</li>
115 [% IF ( patron_flagged ) %]
116 <div class="alert alert-warning">
118 [% IF ( userdebarred ) %]
119 [% IF ( discharge_available ) %]
121 <strong>Please note:</strong> Your account is frozen because it has been discharged. <a href="/cgi-bin/koha/opac-discharge.pl?op=get">Get your discharge</a>
124 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
125 [% IF ( borrower.debarredcomment ) %]
127 <span id="userdebarred_comment">
129 [% IF borrower.debarredcomment.search('OVERDUES_PROCESS') %]
130 Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
132 [% borrower.debarredcomment | html_line_break %]
137 [% IF ( borrower.userdebarreddate && debarred_date != '9999-12-31' ) %]
139 <span id="userdebarred_date">[% borrower.userdebarreddate | $KohaDates %]</span>
142 <em>Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library.</em> <a href="/cgi-bin/koha/opac-account.pl">Go to your account page</a></li>
145 [% IF ( borrower.gonenoaddress ) %]
146 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
147 <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
148 [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
151 [% IF ( borrower.lost ) %]
152 <li id="lost"><strong>Please note: </strong> Your library card has been marked as lost or stolen. <em>If this is an error, please contact the library.</em></li>
154 [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
155 <li id="renewal_blocked_fines"><strong>Please note: </strong>You cannot renew your books online. Reason: [% IF ( renewal_blocked_fines ) > 0 %]Your fines exceed <span id="renewal_blocked_fines_amount">[% renewal_blocked_fines | $Price %]</span>.[% ELSE %]You have fines.[% END %]
159 [% END # / IF patron_flagged %]
161 <div class="alert alert-info" id="notesaved" style="display:none;"></div>
163 [% IF Koha.Preference('OPACMySummaryNote') %]
164 <div id="opac-my-summary-note">[% Koha.Preference('OPACMySummaryNote') | $raw %]</div>
167 [% IF Koha.Preference('AllowPatronToControlAutorenewal') %]
168 <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post">
169 <label for="yes-autorenew_checkouts">
172 [% IF ( borrower.autorenew_checkouts ) %]
173 <label class="radio inline" for="yes-autorenew_checkouts">
175 <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" checked="checked" />
178 <label class="radio inline" for="no-autorenew_checkouts">
180 <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" />
183 <label class="radio inline" for="yes-autorenew_checkouts">
185 <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" />
187 <label class="radio inline" for="no-autorenew_checkouts">
189 <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" checked="checked" />
192 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
193 <input type="hidden" name="update_arc" value="1" />
194 <input type="submit" value="Update auto-renewal preference" />
198 <div id="opac-user-views" class="toptabs">
200 <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
201 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
202 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a></li>[% END %]
203 [% IF ( OPACFinesTab ) %]
204 [% IF ( amountoutstanding > 0 ) %]<li><a href="#opac-user-fines">Charges ([% amountoutstanding | $Price %])</a></li>[% END %]
205 [% IF ( amountoutstanding < 0 ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding * -1 | $Price %])</a></li>[% END %]
206 [% IF relatives_with_fines %]<li><a href="#opac-user-relative-fines">Relatives' charges</a></li>[% END %]
209 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
211 <a id="opac-user-clubs-tab-link" href="#opac-user-clubs">
212 Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %])
217 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %]
218 [% IF Koha.Preference('ArticleRequests') && logged_in_user.article_requests_current %]<li><a href="#opac-user-article-requests">Article requests ([% logged_in_user.article_requests_current.count | html %])</a></li>[% END %]
219 [% IF ( OverDriveCirculation ) %]
220 <li><a href="#opac-user-overdrive">OverDrive Account</a></li>
222 [% IF ( RecordedBooksCirculation ) %]
223 <li><a href="#opac-user-recordedbooks">RecordedBooks Account</a></li>
227 <div id="opac-user-overdrive">
229 <div id="opac-user-recordedbooks">
231 <div id="opac-user-checkouts">
232 [% IF ( issues_count ) %]
233 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
234 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
235 <input type="hidden" name="from" value="opac_user" />
236 <table id="checkoutst" class="table table-bordered table-striped">
237 <caption>[% issues_count | html %] Item(s) checked out</caption>
240 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
241 <th class="anti-the">Title</th>
243 <th class="title-string psort">Due</th>
244 [% UNLESS ( item_level_itypes ) %]
247 [% IF ( show_barcode ) %]
251 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
254 [% IF ( OPACFinesTab ) %]
257 [% IF ( OPACMySummaryHTML ) %]
258 <th class="nosort">Links</th>
260 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
261 <th id="checkout-notes" class="nosort" title="Use this to report any problems with your currently checked out items">Report a problem</th>
266 [% FOREACH ISSUE IN ISSUES %]
267 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
268 [% IF ( JacketImages || AdlibrisEnabled ) %]<td class="jacketcell">
269 [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %]
270 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% ISSUE.normalized_isbn | uri %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
272 [% IF ( OPACAmazonCoverImages ) %]
273 [% IF ( ISSUE.normalized_isbn ) %]
274 <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
276 <a href="#"><span class="no-image">No cover image available</span></a>
280 [% IF ( GoogleJackets ) %]
281 [% IF ( ISSUE.normalized_isbn ) %]
282 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
284 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
288 [% IF ( BakerTaylorEnabled ) %]
289 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
291 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
293 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
297 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
298 [% SET custom_cover_image_url = ISSUE.biblio_object.custom_cover_image_url %]
299 [% IF custom_cover_image_url %]
300 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]"><img alt="Cover image" src="[% custom_cover_image_url | url %]" /></a>
304 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
305 <img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% ISSUE.normalized_upc | html %]&oclc=[% ISSUE.normalized_oclc | html %]" alt="" class="item-thumbnail" />
308 </td>[% END # / IF JacketImages %]
311 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=ISSUE %]</a>
312 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
314 [% IF ( ISSUE.onsite_checkout ) %] <em class="onsite_checkout">(On-site checkout)</em>[% END %]
316 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
317 [% INCLUDE 'user-star-ratings.inc' item=ISSUE %]
321 <td class="author">[% ISSUE.author | html %]</td>
322 [% IF ( ISSUE.overdue ) %]
323 <td class="date_due overdue">
324 <span title="[% ISSUE.date_due | html %]">
325 <span class="tdlabel">Date due:</span>
326 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
330 <td class="date_due">
331 <span title="[% ISSUE.date_due | html %]">
332 <span class="tdlabel">Date due:</span>
333 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
337 [% UNLESS ( item_level_itypes ) %]
339 <span class="tdlabel">Item type:</span>
340 [% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
341 <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" />
342 [% END %] [% ISSUE.description | html %]
345 [% IF ( show_barcode ) %]
347 <span class="tdlabel">Barcode:</span>
348 [% ISSUE.barcode | html %]
352 <span class="tdlabel">Call no.:</span>
353 [% ISSUE.itemcallnumber | html %]
355 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
356 [% IF ( ISSUE.status && canrenew ) %]
357 <td class="renew" data-order="[% ISSUE.renewsleft | html %]">
359 <td class="renew" data-order="0">
361 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
362 [% IF ( ISSUE.status ) %]
363 [% IF ( canrenew ) %]
364 <input type="checkbox" name="item" value="[% ISSUE.itemnumber | uri %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% ISSUE.itemnumber | uri %]&borrowernumber=[% ISSUE.borrowernumber | uri %]">Renew</a>
366 [% IF ISSUE.renewalfee > 0 %]
367 <span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
369 [% IF ISSUE.itemtype_object.rentalcharge_daily > 0 %]
370 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_daily | $Price %] per day</span>
372 [% IF ISSUE.itemtype_object.rentalcharge_hourly > 0 %]
373 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_hourly | $Price %] per hour</span>
375 <span class="renewals">(
376 [% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining
377 [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
378 / [% ISSUE.unseenleft | html %] of [% ISSUE.unseenallowed | html %] renewals left before the item must be seen by the library
381 [% ELSIF ( ISSUE.on_reserve ) %]
382 Not renewable <span class="renewals">(on hold)</span>
383 [% ELSIF ( ISSUE.too_many ) %]
385 [% ELSIF ( ISSUE.too_unseen ) %]
386 Item must be renewed at the library. [% ISSUE.renewsleft | html %] renewals remaining
387 [% ELSIF ( ISSUE.norenew_overdue ) %]
388 Not allowed <span class="renewals">(overdue)</span>
389 [% ELSIF ( ISSUE.auto_too_late ) %]
391 [% ELSIF ISSUE.auto_too_much_oweing %]
392 Automatic renewal failed, you have unpaid fines.
393 <span class="renewals">(
394 [% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining
395 [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
396 / [% ISSUE.unseenleft | html %] of [% ISSUE.unseenallowed | html %] renewals left before the item must be seen by the library
399 [% ELSIF ISSUE.auto_account_expired %]
400 Automatic renewal failed, your account is expired.
401 <span class="renewals">(
402 [% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining
403 [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
404 / [% ISSUE.unseenleft | html %] of [% ISSUE.unseenallowed | html %] renewals left before the item must be seen by the library
407 [% ELSIF ( ISSUE.too_soon ) %]
408 No renewal before [% ISSUE.soonestrenewdate | html %]
409 <span class="renewals">(
410 [% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining
411 [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
412 / [% ISSUE.unseenleft | html %] of [% ISSUE.unseenallowed | html %] renewals left before the item must be seen by the library
415 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
417 <span class="renewals">(
418 [% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining
419 [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
420 / [% ISSUE.unseenleft | html %] of [% ISSUE.unseenallowed | html %] renewals left before the item must be seen by the library
423 [% ELSIF ( ISSUE.item_denied_renewal ) %]
428 [% IF ( OPACFinesTab ) %]
430 <span class="tdlabel">Fines:</span>
431 [% IF ( ISSUE.charges ) %]
432 Yes (Item overdue or lost)
433 [% ELSIF ( ISSUE.rentalfines ) %]
440 [% IF ( OPACMySummaryHTML ) %]
441 <td class="links">[% ISSUE.MySummaryHTML | $raw %]</td>
443 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
445 <input type="text" name="note" data-issue_id="[% ISSUE.issue_id | html %]" data-origvalue="[% ISSUE.note | html %]" value="[% ISSUE.note | html %]" readonly>
446 <button type="button" class="btn btn-primary btn-sm js_submitnote" id="save_[% ISSUE.issue_id | html %]" style="display:none;">Submit note</button>
447 <button type="button" class="btn btn-primary btn-sm nonjs_submitnote" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | url %]">Edit / Create note</button>
451 [% END # /FOREACH ISSUES %]
454 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
455 <input type="submit" class="btn btn-primary" value="Renew selected" />
456 <button type="button" id="renewall_js" class="btn btn-primary">Renew all</button>
460 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
461 <form id="renewall" class="js-hide" action="/cgi-bin/koha/opac-renew.pl" method="post">
462 <input type="hidden" name="from" value="opac_user" />
463 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
464 [% FOREACH ISSUE IN ISSUES %]
465 [% IF ISSUE.status %]
466 <input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" />
469 <input type="submit" class="btn btn-primary" value="Renew all" />
473 <table class="table table-bordered table-striped">
474 <tr><td>You have nothing checked out</td></tr>
476 [% END # IF issues_count %]
477 </div> <!-- / .opac-user-checkouts -->
479 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
480 <div id="opac-user-clubs">
485 [% IF ( OPACFinesTab ) %]
487 [% IF ( amountoutstanding > 0 ) %]
488 <div id="opac-user-fines"> <h3>Charges</h3>
489 <table class="table table-bordered table-striped">
490 <thead><tr><th colspan="2">Amount</th></tr></thead>
493 <td>You currently owe fines and charges amounting to:</td>
494 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
501 [% IF ( amountoutstanding < 0 ) %]
502 <div id="opac-user-fines"> <h3>Credits</h3>
503 <table class="table table-bordered table-striped">
504 <thead><tr><th colspan="2">Amount</th></tr></thead>
507 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding * -1 | $Price %]</a></td>
514 [% IF relatives_with_fines %]
515 <div id="opac-user-relative-fines"> <h3>Fines and charges</h3>
516 <table class="table table-bordered table-striped">
519 <th colspan="2">Amount</th>
523 [% FOREACH r IN relatives_with_fines %]
525 <td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td>
526 <td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td>
533 [% END # / OPACFinesTab %]
536 <div id="opac-user-relative-issues">
537 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
540 <th class="anti-the">Title</th>
544 <th class="psort">Relative</th>
549 [% FOREACH r IN relatives %]
550 [% FOREACH c IN r.checkouts %]
553 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% c.item.biblio.biblionumber | uri %]">
554 [% c.item.biblio.title | html %][% IF ( c.item.enumchron ) %] [% c.item.enumchron | html %][% END %]
559 [% c.date_due | $KohaDates %]
563 [% c.item.barcode | html %]
567 [% c.item.itemcallnumber | html %]
571 [% r.firstname | html %] [% r.surname | html %]
581 [% IF ( overdues_count ) %]
582 <div id="opac-user-overdues">
583 <table id="overduest" class="table table-bordered table-striped">
584 <caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption>
585 <!-- OVERDUES TABLE ROWS -->
588 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
589 <th class="anti-the">Title</th>
590 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
591 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
593 <th class="title-string psort">Due</th>
594 [% IF ( OpacRenewalAllowed ) %]
595 <th class="nosort">Renew</th>
597 [% IF ( OPACFinesTab ) %]
603 [% FOREACH OVERDUE IN OVERDUES %]
605 [% IF ( JacketImages || AdlibrisEnabled ) %]
606 <td class="jacketcell">
607 [% IF ( AdlibrisEnabled && OVERDUE.normalized_isbn ) %]
608 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% OVERDUE.biblionumber | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% OVERDUE.normalized_isbn | uri %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
610 [% IF ( OPACAmazonCoverImages ) %]
611 [% IF ( OVERDUE.normalized_isbn ) %]
612 <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
614 <a href="#"><span class="no-image">No cover image available</span></a>
618 [% IF ( GoogleJackets ) %]
619 [% IF ( OVERDUE.normalized_isbn ) %]
620 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
622 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
626 [% IF ( BakerTaylorEnabled ) %]
627 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
629 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
631 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
635 [% IF ( SyndeticsCoverImages ) %]
636 <img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&upc=[% OVERDUE.normalized_upc | html %]&oclc=[% OVERDUE.normalized_oclc | html %]&type=xw10" alt="" class="item-thumbnail" />
639 [% END # /IF jacketcell %]
642 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=OVERDUE %]</a>
643 <span class="item-details">[% OVERDUE.author | html %]</span>
646 [% UNLESS ( item_level_itypes ) %]
648 [% IF ( OVERDUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
649 <img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" />
650 [% END %] [% OVERDUE.description | html %]
653 [% IF ( show_barcode ) %]
655 <span class="tdlabel">Barcode:</span>
656 [% OVERDUE.barcode | html %]
660 <span class="tdlabel">Call no.:</span>
661 [% OVERDUE.itemcallnumber | html %]
664 <span title="[% OVERDUE.date_due | html %]">
665 <span class="tdlabel">Date due:</span>
666 [% OVERDUE.date_due | $KohaDates as_due_date => 1 %]
669 [% IF ( OpacRenewalAllowed ) %]
671 [% IF ( OVERDUE.debarred ) %]
673 [% ELSIF ( OVERDUE.status ) %]
674 [% IF ( canrenew ) %]
675 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a>
677 <span class="renewals">(
678 [% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining
679 [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
680 / [% OVERDUE.unseenleft | html %] of [% OVERDUE.unseenallowed | html %] renewals left before the item must be seen by the library
683 [% ELSIF ( OVERDUE.norenew_overdue ) %]
684 Not allowed<span class="renewals">(overdue)</span>
685 [% ELSIF ( OVERDUE.onreserve ) %]
692 [% IF ( OPACFinesTab ) %]
694 <span class="tdlabel">Fines:</span>
695 [% IF ( OVERDUE.charges ) %]
706 </div> <!-- / #opac-user-overdues -->
707 [% END # /overdues_count %]
709 [% PROCESS 'holds-table.inc' HOLDS = RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %]
711 [% IF Koha.Preference('ArticleRequests') %]
712 <div id="opac-user-article-requests">
713 [% IF logged_in_user.article_requests_current.count %]
714 <table id="article-requests-table" class="table table-bordered table-striped">
715 <caption>Article requests <span class="count">([% logged_in_user.article_requests_current.count | html %] total)</span></caption>
718 <th class="anti-the article-request-record-title">Record title</th>
719 <th class="psort article-request-created-on">Placed on</th>
720 <th class="anti-the article-request-title">Title</th>
721 <th class="article-request-author">Author</th>
722 <th class="article-request-volume">Volume</th>
723 <th class="article-request-issue">Issue</th>
724 <th class="article-request-date">Date</th>
725 <th class="article-request-pages">Pages</th>
726 <th class="article-request-chapters">Chapters</th>
727 <th class="article-request-patron-notes">Notes</th>
728 <th class="article-request-status">Status</th>
729 <th class="article-request-branchcode">Pickup library</th>
730 <th class="nosort article-request-cancel"> </th>
735 [% FOREACH ar IN logged_in_user.article_requests_current %]
736 <td class="article-request-record-title">
737 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]">
738 [% INCLUDE 'biblio-title.inc' biblio=ar.biblio %]
739 [% ar.item.enumchron | html %]
741 [% ar.biblio.author | html %]
742 [% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %]
745 <td class="article-request-created_on">
746 [% ar.created_on | $KohaDates %]
749 <td class="article-request-title">
750 [% ar.title | html %]
753 <td class="article-request-author">
754 [% ar.author | html %]
757 <td class="article-request-volume">
758 [% ar.volume | html %]
761 <td class="article-request-issue">
762 [% ar.issue | html %]
765 <td class="article-request-date">
769 <td class="article-request-pages">
770 [% ar.pages | html %]
773 <td class="article-request-chapters">
774 [% ar.chapters | html %]
777 <td class="article-request-patron-notes">
778 [% ar.patron_notes | html %]
781 <td class="article-request-status">
782 [% IF ar.status == 'PENDING' %]
784 [% ELSIF ar.status == 'PROCESSING' %]
786 [% ELSIF ar.status == 'COMPLETED' %]
788 [% ELSIF ar.status == 'CANCELED' %]
793 <td class="article-request-branchcode">
794 [% ar.branch.branchname | html %]
797 <td class="article-request-cancel">
798 <span class="tdlabel">Cancel:</span>
799 <form action="/cgi-bin/koha/opac-article-request-cancel.pl" id="delete_article_request_[% ar.id | html %]">
800 <input type="hidden" name="id" value="[% ar.id | html %]" />
801 <button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
809 <table class="table table-bordered table-striped">
810 <tr><td>You have no article requests currently.</td></tr>
812 [% END # IF article_requests_current.count %]
813 </div> <!-- / #opac-user-article-requests -->
816 </div> <!-- /#opac-user-views -->
817 </div> <!-- /#userdetails -->
818 </div> <!-- /.col-10 -->
819 </div> <!-- /.row -->
820 </div> <!-- /.container-fluid -->
821 </div> <!-- /#main -->
823 [% IF ( OverDriveCirculation ) %]
824 [% INCLUDE 'overdrive-checkout.inc' %]
825 [% IF ( Koha.Preference('OverDrivePasswordRequired') ) %]
826 [% INCLUDE 'overdrive-login.inc' %]
829 [% IF ( RecordedBooksCirculation ) %]
830 [% INCLUDE 'recordedbooks-checkout.inc' %]
833 [% INCLUDE 'opac-bottom.inc' %]
834 [% BLOCK jsinclude %]
835 [% INCLUDE 'calendar.inc' %]
836 [% INCLUDE 'datatables.inc' %]
838 function tableInit( tableId ){
839 if( tableId == "checkoutst" ){
840 $(".dt-buttons").append("<a class=\"dt-button buttons-ical\" href=\"opac-ics.pl\">iCal</a> ");
841 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
842 $(".dt-buttons").append("<button id=\"renewselected_link\" class=\"dt-button buttons-renew\"><i class=\"fa fa-check\" aria-hidden=\"true\"></i> "+_("Renew selected")+"</button> <button id=\"renewall_link\" class=\"dt-button buttons-renewall\"><span class=\"fa-stack\"><i class=\"fa fa-check fa-stack-1x\" aria-hidden=\"true\"></i><i class=\"fa fa-check fa-stack-1x\" aria-hidden=\"true\"></i></span> "+_("Renew all")+"</button>");
846 $(document).ready(function(){
847 $('#opac-user-views').tabs();
848 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
849 $(".suspend-until").prop("readonly",1);
851 $(".btn-delete-hold").on("click", function(e){
853 var hold_title = $(this).data("title");
854 var reserve_id = $(this).data("reserve_id");
855 confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
857 $("#delete_hold_" + reserve_id ).submit();
863 $(".btn-delete-article-request").on("click", function(e){
865 var article_request = $(this).data("title");
866 var article_request_id = $(this).data("article-request_id");
867 confirmModal( article_request, _("Are you sure you want to cancel this article request?"), _("Yes, cancel article request"), _("No, do not cancel article request"), function( result ){
869 $("#delete_article_request_" + article_request_id ).submit();
875 $("#suspend_all_submit").on("click", function(e){
877 var title = _("Are you sure you want to suspend all holds?");
878 var body = _("All holds will be suspended.");
879 confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){
881 $("#suspend_all_holds").submit();
887 $("#resume_all_submit").on("click", function(e){
889 var title = _("Are you sure you want to resume all suspended holds?");
890 var body = _("All holds will resume.");
891 confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){
893 $("#resume_all_holds").submit();
899 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
900 dTables.each(function(){
901 var thIndex = $(this).find("th.psort").index();
902 $(this).on("init.dt", function() {
903 tableInit( $(this).attr("id") );
905 .dataTable($.extend(true, {}, dataTablesDefaults, {
906 "sorting" : [[ thIndex, 'asc' ]],
907 "dom": '<"top"<"table_entries"><"table_controls"fB>>t',
909 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
910 { "type": "anti-the", "targets" : [ "anti-the" ] },
911 { "type": "title-string", "targets" : [ "title-string" ] }
915 "searchPlaceholder": _("Search")
920 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
921 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
922 $("#renewselected").submit(function(){
924 $("input[type=checkbox]").each(function(){
925 if($(this).is(':checked')){
930 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
934 $("body").on("click","#renewselected_link",function(e){
936 $("#renewselected").submit();
938 $("body").on("click","#renewall_link, #renewall_js",function(e){
940 $("#renewall").submit();
942 [% END # /IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
944 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
946 /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
947 $(".nonjs_submitnote").hide();
949 $("input[name='note']").prop('readonly', false);
950 $("input[name='note']").keypress(function(e){
951 /* prevent submitting of renewselected form */
956 $("input[name='note']").keyup(function(e){
957 var $btn_save = $('#save_'+$(this).data('issue_id'));
958 var origvalue = $(this).data('origvalue');
959 var value = $(this).val();
961 if(origvalue != value) {
963 $btn_save.text(_("Submit changes"));
965 $btn_save.text(_("Submit note"));
972 $(".js_submitnote").click(function(e){
974 var title = $(this).parent().parent().find('a.title')[0].outerHTML;
975 var $noteinput = $(this).siblings('input[name="note"]').first();
978 'action': 'issuenote',
979 'issue_id': $noteinput.data('issue_id'),
980 'note': $noteinput.val(),
984 url: '/cgi-bin/koha/svc/checkout_notes/',
989 .done(function(data) {
991 if(data.status == 'saved') {
992 $("#notesaved").removeClass("alert-error");
993 $("#notesaved").addClass("alert-info");
994 $noteinput.data('origvalue', data.note);
995 $noteinput.val(data.note);
996 message = "<p>" + _("Your note about %s has been saved and sent to the library.").format(title) + "</p>";
997 message += "<p style=\"font-style:italic;\">" + data.note + "</p>";
999 } else if(data.status == 'removed') {
1000 $("#notesaved").removeClass("alert-error");
1001 $("#notesaved").addClass("alert-info");
1002 $noteinput.data('origvalue', "");
1004 message = "<p>" + _("Your note about %s was removed.").format(title) + "</p>";
1007 $("#notesaved").removeClass("alert-info");
1008 $("#notesaved").addClass("alert-error");
1009 message = "<p>" + _("Your note about %s could not be saved.").format(title) + "</p>";
1010 message += "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
1012 $("#notesaved").html(message);
1014 .fail(function(data) {
1015 $("#notesaved").removeClass("alert-info");
1016 $("#notesaved").addClass("alert-error");
1017 var message = "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
1018 $("#notesaved").html(message);
1020 .always(function() {
1021 $("#notesaved").show();
1026 $(".suspend-until").datepicker({
1027 beforeShow: function(input, inst) {
1028 // https://stackoverflow.com/questions/662220/how-to-change-the-pop-up-position-of-the-jquery-datepicker-control#answer-10598178
1029 var calendar = inst.dpDiv;
1030 setTimeout(function() {
1042 if ( $('#opac-user-clubs').length ) {
1043 $('#opac-user-clubs-tab-link').on('click', function() {
1044 $('#opac-user-clubs').text(_("Loading..."));
1045 $('#opac-user-clubs').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% borrowernumber | html %]');
1050 var borrowernumber = "[% borrowernumber | html %]";
1051 var MSG_YOUR_RATING = _("Your rating: %s, ");
1052 var MSG_AVERAGE_RATING = _("Average rating: %s (%s votes)");
1054 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
1055 [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
1056 [% Asset.js("js/ratings.js") | $raw %]
1058 [% IF Koha.Preference('OverDriveCirculation') %]
1059 [% Asset.js("js/overdrive.js") | $raw %]
1061 var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %];
1062 $(document).ready(function() {
1063 [% IF ( overdrive_error ) %]
1064 KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote | html %]");
1067 [% IF ( overdrive_tab ) %]
1068 $("#opac-user-views").tabs("select", "#opac-user-overdrive");
1071 $("#opac-user-overdrive").each( function() {
1072 KOHA.OverDriveCirculation.display_account_details(this);
1077 [% IF RecordedBooksCirculation %]
1078 [% Asset.js("js/recordedbooks.js") | $raw %]
1080 $(document).ready(function() {
1081 [% IF ( recordedbooks_error ) %]
1082 KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1084 [% IF ( recordedbooks_tab ) %]
1085 $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1087 $("#opac-user-recordedbooks").each( function() {
1088 KOHA.RecordedBooks.display_account_details(this);