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>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your library home</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">
53 [% INCLUDE 'opac-note.inc' %]
55 <h2>Hello, [% INCLUDE 'patron-title.inc' patron = logged_in_user %]
58 <p><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>
60 [% 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 %]
63 <div class="alert alert-info">
65 <p>One or more holds were not placed due to existing holds.</p>
69 [% IF ( borrower.blockedonfines ) %]
70 <div class="alert alert-warning" id="blockedonfines">
71 <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>
75 [% IF ( borrower.warndeparture ) %]
76 <div class="alert alert-warning" id="warndeparture">
77 <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>
78 [% IF ( borrower.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
82 [% IF ( borrower.warnexpired ) %]
83 <div class="alert alert-warning" id="warnexpired">
84 <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>
88 [% IF ( RENEW_ERROR ) %]
89 <div class="alert alert-warning">
90 <strong>Please note:</strong>
91 Your loan renewal failed because of the following reason(s):
93 [% FOREACH error IN RENEW_ERROR.split('\|') %]
94 [% IF error == 'card_expired' %]
95 <li>Your account has expired. Please contact the library for more information.</li>
96 [% ELSIF error == 'too_many' %]
97 <li>You have renewed this item the maximum number of times allowed.</li>
98 [% ELSIF error == 'too_soon' %]
99 <li>It is too soon after the checkout date for this item to be renewed.</li>
100 [% ELSIF error == 'on_reserve' %]
101 <li>This item is on hold for another borrower.</li>
102 [% ELSIF error == 'item_denied_renewal' %]
103 <li>Item renewal is not allowed.</li>
110 [% IF ( patron_flagged ) %]
111 <div class="alert alert-warning">
113 [% IF ( userdebarred ) %]
114 [% IF ( discharge_available ) %]
116 <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>
119 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
120 [% IF ( borrower.debarredcomment ) %]
122 <span id="userdebarred_comment">
124 [% IF borrower.debarredcomment.search('OVERDUES_PROCESS') %]
125 Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
127 [% borrower.debarredcomment | html_line_break %]
132 [% IF ( borrower.userdebarreddate && debarred_date != '9999-12-31' ) %]
134 <span id="userdebarred_date">[% borrower.userdebarreddate | $KohaDates %]</span>
137 <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>
140 [% IF ( borrower.gonenoaddress ) %]
141 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
142 <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
143 [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
146 [% IF ( borrower.lost ) %]
147 <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>
149 [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
150 <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 %]
154 [% END # / IF patron_flagged %]
156 <div class="alert alert-info" id="notesaved" style="display:none;"></div>
158 [% IF Koha.Preference('OPACMySummaryNote') %]
159 <div id="opac-my-summary-note">[% Koha.Preference('OPACMySummaryNote') | $raw %]</div>
162 [% IF Koha.Preference('AllowPatronToControlAutorenewal') %]
163 <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post">
164 <label for="yes-autorenew_checkouts">
167 [% IF ( borrower.autorenew_checkouts ) %]
168 <label class="radio inline" for="yes-autorenew_checkouts">
170 <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" checked="checked" />
173 <label class="radio inline" for="no-autorenew_checkouts">
175 <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" />
178 <label class="radio inline" for="yes-autorenew_checkouts">
180 <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" />
182 <label class="radio inline" for="no-autorenew_checkouts">
184 <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" checked="checked" />
187 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
188 <input type="hidden" name="update_arc" value="1" />
189 <input type="submit" value="Update auto-renewal preference" />
193 <div id="opac-user-views" class="toptabs">
195 <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
196 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
197 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a></li>[% END %]
198 [% IF ( OPACFinesTab ) %]
199 [% IF ( amountoutstanding > 0 ) %]<li><a href="#opac-user-fines">Charges ([% amountoutstanding | $Price %])</a></li>[% END %]
200 [% IF ( amountoutstanding < 0 ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding * -1 | $Price %])</a></li>[% END %]
201 [% IF relatives_with_fines %]<li><a href="#opac-user-relative-fines">Relatives' fines</a></li>[% END %]
204 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
206 <a id="opac-user-clubs-tab-link" href="#opac-user-clubs">
207 Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %])
212 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %]
213 [% 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 %]
214 [% IF ( OverDriveCirculation ) %]
215 <li><a href="#opac-user-overdrive">OverDrive Account</a></li>
217 [% IF ( RecordedBooksCirculation ) %]
218 <li><a href="#opac-user-recordedbooks">RecordedBooks Account</a></li>
222 <div id="opac-user-overdrive">
224 <div id="opac-user-recordedbooks">
226 <div id="opac-user-checkouts">
227 [% IF ( issues_count ) %]
228 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
229 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
230 <input type="hidden" name="from" value="opac_user" />
231 <table id="checkoutst" class="table table-bordered table-striped">
232 <caption>[% issues_count | html %] Item(s) checked out</caption>
235 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
236 <th class="anti-the">Title</th>
238 <th class="title-string psort">Due</th>
239 [% UNLESS ( item_level_itypes ) %]
242 [% IF ( show_barcode ) %]
246 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
247 <th class="nosort">Renew</th>
249 [% IF ( OPACFinesTab ) %]
252 [% IF ( OPACMySummaryHTML ) %]
253 <th class="nosort">Links</th>
255 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
256 <th class="nosort">Note</th>
261 [% FOREACH ISSUE IN ISSUES %]
262 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
263 [% IF ( JacketImages || AdlibrisEnabled ) %]<td class="jacketcell">
264 [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %]
265 <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>
267 [% IF ( OPACAmazonCoverImages ) %]
268 [% IF ( ISSUE.normalized_isbn ) %]
269 <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>
271 <a href="#"><span class="no-image">No cover image available</span></a>
275 [% IF ( GoogleJackets ) %]
276 [% IF ( ISSUE.normalized_isbn ) %]
277 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
279 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
283 [% IF ( BakerTaylorEnabled ) %]
284 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
286 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
288 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
292 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
293 <a class="custom_cover_image" href="[% ISSUE.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% ISSUE.biblio_object.custom_cover_image_url | url %]" /></a>
296 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
297 <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" />
300 </td>[% END # / IF JacketImages %]
303 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=ISSUE %]</a>
304 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
306 [% IF ( ISSUE.onsite_checkout ) %] <em class="onsite_checkout">(On-site checkout)</em>[% END %]
308 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
309 [% INCLUDE 'user-star-ratings.inc' item=ISSUE %]
313 <td class="author">[% ISSUE.author | html %]</td>
314 [% IF ( ISSUE.overdue ) %]
315 <td class="date_due overdue">
316 <span title="[% ISSUE.date_due | html %]">
317 <span class="tdlabel">Date due:</span>
318 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
322 <td class="date_due">
323 <span title="[% ISSUE.date_due | html %]">
324 <span class="tdlabel">Date due:</span>
325 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
329 [% UNLESS ( item_level_itypes ) %]
331 <span class="tdlabel">Item type:</span>
332 [% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
333 <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" />
334 [% END %] [% ISSUE.description | html %]
337 [% IF ( show_barcode ) %]
339 <span class="tdlabel">Barcode:</span>
340 [% ISSUE.barcode | html %]
344 <span class="tdlabel">Call no.:</span>
345 [% ISSUE.itemcallnumber | html %]
347 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
349 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
350 [% IF ( ISSUE.status ) %]
351 [% IF ( canrenew ) %]
352 <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>
354 [% IF ISSUE.renewalfee > 0 %]
355 <span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
357 [% IF ISSUE.itemtype_object.rentalcharge_daily > 0 %]
358 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_daily | $Price %] per day</span>
360 [% IF ISSUE.itemtype_object.rentalcharge_hourly > 0 %]
361 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_hourly | $Price %] per hour</span>
363 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
364 [% ELSIF ( ISSUE.on_reserve ) %]
365 Not renewable <span class="renewals">(on hold)</span>
366 [% ELSIF ( ISSUE.too_many ) %]
368 [% ELSIF ( ISSUE.norenew_overdue ) %]
369 Not allowed <span class="renewals">(overdue)</span>
370 [% ELSIF ( ISSUE.auto_too_late ) %]
372 [% ELSIF ISSUE.auto_too_much_oweing %]
373 Automatic renewal failed, you have unpaid fines.
374 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
375 [% ELSIF ISSUE.auto_account_expired %]
376 Automatic renewal failed, your account is expired.
377 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
378 [% ELSIF ( ISSUE.too_soon ) %]
379 No renewal before [% ISSUE.soonestrenewdate | html %]
380 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
381 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
383 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
384 [% ELSIF ( ISSUE.item_denied_renewal ) %]
389 [% IF ( OPACFinesTab ) %]
391 <span class="tdlabel">Fines:</span>
392 [% IF ( ISSUE.charges ) %]
393 Yes (Item overdue or lost)
394 [% ELSIF ( ISSUE.rentalfines ) %]
401 [% IF ( OPACMySummaryHTML ) %]
402 <td class="links">[% ISSUE.MySummaryHTML | $raw %]</td>
404 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
406 <input type="text" name="note" data-issue_id="[% ISSUE.issue_id | html %]" data-origvalue="[% ISSUE.note | html %]" value="[% ISSUE.note | html %]" readonly>
407 <a class="btn js_submitnote" id="save_[% ISSUE.issue_id | html %]" style="display:none;">Submit note</a>
408 <a class="btn nonjs_submitnote" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | url %]">Edit / Create note</a>
412 [% END # /FOREACH ISSUES %]
415 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
416 <input type="submit" class="btn btn-primary" value="Renew selected" />
420 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
421 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
422 <input type="hidden" name="from" value="opac_user" />
423 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
424 [% FOREACH ISSUE IN ISSUES %]
425 [% IF ISSUE.status %]
426 <input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" />
429 <input type="submit" class="btn btn-primary" value="Renew all" />
432 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
434 <table class="table table-bordered table-striped">
435 <tr><td>You have nothing checked out</td></tr>
437 [% END # IF issues_count %]
438 </div> <!-- / .opac-user-checkouts -->
440 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
441 <div id="opac-user-clubs">
446 [% IF ( OPACFinesTab ) %]
448 [% IF ( amountoutstanding > 0 ) %]
449 <div id="opac-user-fines"> <h3>Charges</h3>
450 <table class="table table-bordered table-striped">
451 <thead><tr><th colspan="2">Amount</th></tr></thead>
454 <td>You currently owe fines and charges amounting to:</td>
455 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
462 [% IF ( amountoutstanding < 0 ) %]
463 <div id="opac-user-fines"> <h3>Credits</h3>
464 <table class="table table-bordered table-striped">
465 <thead><tr><th colspan="2">Amount</th></tr></thead>
468 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding * -1 | $Price %]</a></td>
475 [% IF relatives_with_fines %]
476 <div id="opac-user-relative-fines"> <h3>Fines and charges</h3>
477 <table class="table table-bordered table-striped">
480 <th colspan="2">Amount</th>
484 [% FOREACH r IN relatives_with_fines %]
486 <td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td>
487 <td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td>
494 [% END # / OPACFinesTab %]
497 <div id="opac-user-relative-issues">
498 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
501 <th class="anti-the">Title</th>
505 <th class="psort">Relative</th>
510 [% FOREACH r IN relatives %]
511 [% FOREACH c IN r.checkouts %]
514 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% c.item.biblio.biblionumber | uri %]">
515 [% c.item.biblio.title | html %][% IF ( c.item.enumchron ) %] [% c.item.enumchron | html %][% END %]
520 [% c.date_due | $KohaDates %]
524 [% c.item.barcode | html %]
528 [% c.item.itemcallnumber | html %]
532 [% r.firstname | html %] [% r.surname | html %]
542 [% IF ( overdues_count ) %]
543 <div id="opac-user-overdues">
544 <table id="overduest" class="table table-bordered table-striped">
545 <caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption>
546 <!-- OVERDUES TABLE ROWS -->
549 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
550 <th class="anti-the">Title</th>
551 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
552 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
554 <th class="title-string psort">Due</th>
555 [% IF ( OpacRenewalAllowed ) %]
556 <th class="nosort">Renew</th>
558 [% IF ( OPACFinesTab ) %]
564 [% FOREACH OVERDUE IN OVERDUES %]
566 [% IF ( JacketImages || AdlibrisEnabled ) %]
567 <td class="jacketcell">
568 [% IF ( AdlibrisEnabled && OVERDUE.normalized_isbn ) %]
569 <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>
571 [% IF ( OPACAmazonCoverImages ) %]
572 [% IF ( OVERDUE.normalized_isbn ) %]
573 <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>
575 <a href="#"><span class="no-image">No cover image available</span></a>
579 [% IF ( GoogleJackets ) %]
580 [% IF ( OVERDUE.normalized_isbn ) %]
581 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
583 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
587 [% IF ( BakerTaylorEnabled ) %]
588 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
590 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
592 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
596 [% IF ( SyndeticsCoverImages ) %]
597 <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" />
600 [% END # /IF jacketcell %]
603 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=OVERDUE %]</a>
604 <span class="item-details">[% OVERDUE.author | html %]</span>
607 [% UNLESS ( item_level_itypes ) %]
609 [% IF ( OVERDUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
610 <img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" />
611 [% END %] [% OVERDUE.description | html %]
614 [% IF ( show_barcode ) %]
616 <span class="tdlabel">Barcode:</span>
617 [% OVERDUE.barcode | html %]
621 <span class="tdlabel">Call no.:</span>
622 [% OVERDUE.itemcallnumber | html %]
625 <span title="[% OVERDUE.date_due | html %]">
626 <span class="tdlabel">Date due:</span>
627 [% OVERDUE.date_due | $KohaDates as_due_date => 1 %]
630 [% IF ( OpacRenewalAllowed ) %]
632 [% IF ( OVERDUE.debarred ) %]
634 [% ELSIF ( OVERDUE.status ) %]
635 [% IF ( canrenew ) %]
636 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a>
638 <span class="renewals">([% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining)</span>
639 [% ELSIF ( OVERDUE.norenew_overdue ) %]
640 Not allowed<span class="renewals">(overdue)</span>
641 [% ELSIF ( OVERDUE.onreserve ) %]
648 [% IF ( OPACFinesTab ) %]
650 <span class="tdlabel">Fines:</span>
651 [% IF ( OVERDUE.charges ) %]
662 </div> <!-- / #opac-user-overdues -->
663 [% END # /overdues_count %]
665 [% PROCESS 'holds-table.inc' HOLDS = RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %]
667 [% IF Koha.Preference('ArticleRequests') %]
668 <div id="opac-user-article-requests">
669 [% IF logged_in_user.article_requests_current.count %]
670 <table id="article-requests-table" class="table table-bordered table-striped">
671 <caption>Article requests <span class="count">([% logged_in_user.article_requests_current.count | html %] total)</span></caption>
674 <th class="anti-the article-request-record-title">Record title</th>
675 <th class="psort article-request-created-on">Placed on</th>
676 <th class="anti-the article-request-title">Title</th>
677 <th class="article-request-author">Author</th>
678 <th class="article-request-volume">Volume</th>
679 <th class="article-request-issue">Issue</th>
680 <th class="article-request-date">Date</th>
681 <th class="article-request-pages">Pages</th>
682 <th class="article-request-chapters">Chapters</th>
683 <th class="article-request-patron-notes">Notes</th>
684 <th class="article-request-status">Status</th>
685 <th class="article-request-branchcode">Pickup library</th>
686 <th class="nosort article-request-cancel"> </th>
691 [% FOREACH ar IN logged_in_user.article_requests_current %]
692 <td class="article-request-record-title">
693 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]">
694 [% INCLUDE 'biblio-title.inc' biblio=ar.biblio %]
695 [% ar.item.enumchron | html %]
697 [% ar.biblio.author | html %]
698 [% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %]
701 <td class="article-request-created_on">
702 [% ar.created_on | $KohaDates %]
705 <td class="article-request-title">
706 [% ar.title | html %]
709 <td class="article-request-author">
710 [% ar.author | html %]
713 <td class="article-request-volume">
714 [% ar.volume | html %]
717 <td class="article-request-issue">
718 [% ar.issue | html %]
721 <td class="article-request-date">
725 <td class="article-request-pages">
726 [% ar.pages | html %]
729 <td class="article-request-chapters">
730 [% ar.chapters | html %]
733 <td class="article-request-patron-notes">
734 [% ar.patron_notes | html %]
737 <td class="article-request-status">
738 [% IF ar.status == 'PENDING' %]
740 [% ELSIF ar.status == 'PROCESSING' %]
742 [% ELSIF ar.status == 'COMPLETED' %]
744 [% ELSIF ar.status == 'CANCELED' %]
749 <td class="article-request-branchcode">
750 [% ar.branch.branchname | html %]
753 <td class="article-request-cancel">
754 <span class="tdlabel">Cancel:</span>
755 <form action="/cgi-bin/koha/opac-article-request-cancel.pl" id="delete_article_request_[% ar.id | html %]">
756 <input type="hidden" name="id" value="[% ar.id | html %]" />
757 <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>
765 <table class="table table-bordered table-striped">
766 <tr><td>You have no article requests currently.</td></tr>
768 [% END # IF article_requests_current.count %]
769 </div> <!-- / #opac-user-article-requests -->
772 </div> <!-- /#opac-user-views -->
773 </div> <!-- /#userdetails -->
774 </div> <!-- /.col-10 -->
775 </div> <!-- /.row -->
776 </div> <!-- /.container-fluid -->
777 </div> <!-- /#main -->
779 [% IF ( OverDriveCirculation ) %]
780 [% INCLUDE 'overdrive-checkout.inc' %]
781 [% IF ( Koha.Preference('OverDrivePasswordRequired') ) %]
782 [% INCLUDE 'overdrive-login.inc' %]
785 [% IF ( RecordedBooksCirculation ) %]
786 [% INCLUDE 'recordedbooks-checkout.inc' %]
789 [% INCLUDE 'opac-bottom.inc' %]
790 [% BLOCK jsinclude %]
791 [% INCLUDE 'calendar.inc' %]
792 [% INCLUDE 'datatables.inc' %]
795 $(document).ready(function(){
796 $('#opac-user-views').tabs();
797 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
798 $(".suspend-until").prop("readonly",1);
800 $(".btn-delete-hold").on("click", function(e){
802 var hold_title = $(this).data("title");
803 var reserve_id = $(this).data("reserve_id");
804 confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
806 $("#delete_hold_" + reserve_id ).submit();
812 $(".btn-delete-article-request").on("click", function(e){
814 var article_request = $(this).data("title");
815 var article_request_id = $(this).data("article-request_id");
816 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 ){
818 $("#delete_article_request_" + article_request_id ).submit();
824 $("#suspend_all_submit").on("click", function(e){
826 var title = _("Are you sure you want to suspend all holds?");
827 var body = _("All holds will be suspended.");
828 confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){
830 $("#suspend_all_holds").submit();
836 $("#resume_all_submit").on("click", function(e){
838 var title = _("Are you sure you want to resume all suspended holds?");
839 var body = _("All holds will resume.");
840 confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){
842 $("#resume_all_holds").submit();
848 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
849 dTables.each(function(){
850 var thIndex = $(this).find("th.psort").index();
851 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
852 "sorting" : [[ thIndex, 'asc' ]],
854 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
855 { "type": "anti-the", "targets" : [ "anti-the" ] },
856 { "type": "title-string", "targets" : [ "title-string" ] }
861 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
862 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
863 $("#renewselected").submit(function(){
865 $("input[type=checkbox]").each(function(){
866 if($(this).is(':checked')){
871 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
875 $("body").on("click","#renewselected_link",function(e){
877 $("#renewselected").submit();
879 $("body").on("click","#renewall_link",function(e){
881 $("#renewall").submit();
883 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
884 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" class=\"btn btn-link\" href=\"#\"><i class=\"fa fa-check\" aria-hidden=\"true\"></i> "+_("Renew selected")+"</a> <a id=\"renewall_link\" class=\"btn btn-link\" href=\"#\"><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")+"</a></div>");
888 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
890 /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
891 $(".nonjs_submitnote").hide();
893 $("input[name='note']").prop('readonly', false);
894 $("input[name='note']").keypress(function(e){
895 /* prevent submitting of renewselected form */
900 $("input[name='note']").keyup(function(e){
901 var $btn_save = $('#save_'+$(this).data('issue_id'));
902 var origvalue = $(this).data('origvalue');
903 var value = $(this).val();
905 if(origvalue != value) {
907 $btn_save.text(_("Submit changes"));
909 $btn_save.text(_("Submit note"));
916 $(".js_submitnote").click(function(e){
918 var title = $(this).parent().siblings('.title').html();
919 var $noteinput = $(this).siblings('input[name="note"]').first();
922 'action': 'issuenote',
923 'issue_id': $noteinput.data('issue_id'),
924 'note': $noteinput.val(),
928 url: '/cgi-bin/koha/svc/checkout_notes/',
933 .done(function(data) {
935 if(data.status == 'saved') {
936 $("#notesaved").removeClass("alert-error");
937 $("#notesaved").addClass("alert-info");
938 $noteinput.data('origvalue', data.note);
939 $noteinput.val(data.note);
940 message = "<p>" + _("Your note about %s has been saved and sent to the library.").format(title) + "</p>";
941 message += "<p style=\"font-style:italic;\">" + data.note + "</p>";
943 } else if(data.status == 'removed') {
944 $("#notesaved").removeClass("alert-error");
945 $("#notesaved").addClass("alert-info");
946 $noteinput.data('origvalue', "");
948 message = "<p>" + _("Your note about %s was removed.").format(title) + "</p>";
951 $("#notesaved").removeClass("alert-info");
952 $("#notesaved").addClass("alert-error");
953 message = "<p>" + _("Your note about %s could not be saved.").format(title) + "</p>";
954 message += "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
956 $("#notesaved").html(message);
958 .fail(function(data) {
959 $("#notesaved").removeClass("alert-info");
960 $("#notesaved").addClass("alert-error");
961 var message = "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
962 $("#notesaved").html(message);
965 $("#notesaved").show();
970 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
972 if ( $('#opac-user-clubs').length ) {
973 $('#opac-user-clubs-tab-link').on('click', function() {
974 $('#opac-user-clubs').text(_("Loading..."));
975 $('#opac-user-clubs').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% borrowernumber | html %]');
980 var borrowernumber = "[% borrowernumber | html %]";
981 var MSG_YOUR_RATING = _("Your rating: %s, ");
982 var MSG_AVERAGE_RATING = _("Average rating: %s (%s votes)");
984 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
985 [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
986 [% Asset.js("js/ratings.js") | $raw %]
988 [% IF Koha.Preference('OverDriveCirculation') %]
989 [% Asset.js("js/overdrive.js") | $raw %]
991 var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %];
992 $(document).ready(function() {
993 [% IF ( overdrive_error ) %]
994 KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote | html %]");
997 [% IF ( overdrive_tab ) %]
998 $("#opac-user-views").tabs("select", "#opac-user-overdrive");
1001 $("#opac-user-overdrive").each( function() {
1002 KOHA.OverDriveCirculation.display_account_details(this);
1007 [% IF RecordedBooksCirculation %]
1008 [% Asset.js("js/recordedbooks.js") | $raw %]
1010 $(document).ready(function() {
1011 [% IF ( recordedbooks_error ) %]
1012 KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1014 [% IF ( recordedbooks_tab ) %]
1015 $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1017 $("#opac-user-recordedbooks").each( function() {
1018 KOHA.RecordedBooks.display_account_details(this);