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 <ul class="breadcrumb">
30 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
31 <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">›</span></li>
32 <li><a href="#">Your summary</a></li>
35 <div class="container-fluid">
36 <div class="row-fluid">
39 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
43 <div id="userdetails" class="maincontent">
45 [% INCLUDE 'opac-note.inc' %]
47 <h2>Hello, [% INCLUDE 'patron-title.inc' patron = logged_in_user %]
50 <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>
52 [% 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 %]
55 <div class="alert alert-info">
57 <p>One or more holds were not placed due to existing holds.</p>
61 [% IF ( borrower.blockedonfines ) %]
62 <div class="alert" id="blockedonfines">
63 <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>
67 [% IF ( borrower.warndeparture ) %]
68 <div class="alert" id="warndeparture">
69 <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>
70 [% IF ( borrower.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
74 [% IF ( borrower.warnexpired ) %]
75 <div class="alert" id="warnexpired">
76 <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>
80 [% IF ( RENEW_ERROR ) %]
81 <div class="dialog alert">
82 <strong>Please note:</strong>
83 Your loan renewal failed because of the following reason(s):
85 [% FOREACH error IN RENEW_ERROR.split('\|') %]
86 [% IF error == 'card_expired' %]
87 <li>Your account has expired. Please contact the library for more information.</li>
88 [% ELSIF error == 'too_many' %]
89 <li>You have renewed this item the maximum number of times allowed.</li>
90 [% ELSIF error == 'too_soon' %]
91 <li>It is too soon after the checkout date for this item to be renewed.</li>
92 [% ELSIF error == 'on_reserve' %]
93 <li>This item is on hold for another borrower.</li>
94 [% ELSIF error == 'item_denied_renewal' %]
95 <li>Item renewal is not allowed.</li>
102 [% IF ( patron_flagged ) %]
105 [% IF ( userdebarred ) %]
106 [% IF ( discharge_available ) %]
108 <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>
111 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
112 [% IF ( borrower.debarredcomment ) %]
114 <span id="userdebarred_comment">
116 [% IF borrower.debarredcomment.search('OVERDUES_PROCESS') %]
117 Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
119 [% borrower.debarredcomment | html_line_break %]
124 [% IF ( borrower.userdebarreddate && debarred_date != '9999-12-31' ) %]
126 <span id="userdebarred_date">[% borrower.userdebarreddate | $KohaDates %]</span>
129 <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>
132 [% IF ( borrower.gonenoaddress ) %]
133 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
134 <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
135 [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
138 [% IF ( borrower.lost ) %]
139 <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>
141 [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
142 <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 %]
146 [% END # / IF patron_flagged %]
148 <div class="alert alert-info" id="notesaved" style="display:none;"></div>
150 [% IF Koha.Preference('OPACMySummaryNote') %]
151 <div id="opac-my-summary-note">[% Koha.Preference('OPACMySummaryNote') | $raw %]</div>
154 [% IF Koha.Preference('AllowPatronToControlAutorenewal') %]
155 <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post">
156 <label for="yes-autorenew_checkouts">
159 [% IF ( borrower.autorenew_checkouts ) %]
160 <label class="radio inline" for="yes-autorenew_checkouts">
162 <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" checked="checked" />
165 <label class="radio inline" for="no-autorenew_checkouts">
167 <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" />
170 <label class="radio inline" for="yes-autorenew_checkouts">
172 <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" />
174 <label class="radio inline" for="no-autorenew_checkouts">
176 <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" checked="checked" />
179 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
180 <input type="hidden" name="update_arc" value="1" />
181 <input type="submit" value="Update auto-renewal preference" />
185 <div id="opac-user-views" class="toptabs">
187 <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
188 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
189 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a></li>[% END %]
190 [% IF ( OPACFinesTab ) %]
191 [% IF ( amountoutstanding > 0 ) %]<li><a href="#opac-user-fines">Charges ([% amountoutstanding | $Price %])</a></li>[% END %]
192 [% IF ( amountoutstanding < 0 ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding * -1 | $Price %])</a></li>[% END %]
193 [% IF relatives_with_fines %]<li><a href="#opac-user-relative-fines">Relatives' fines</a></li>[% END %]
196 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
198 <a id="opac-user-clubs-tab-link" href="#opac-user-clubs">
199 Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %])
204 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %]
205 [% 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 %]
206 [% IF ( OverDriveCirculation ) %]
207 <li><a href="#opac-user-overdrive">OverDrive Account</a></li>
209 [% IF ( RecordedBooksCirculation ) %]
210 <li><a href="#opac-user-recordedbooks">RecordedBooks Account</a></li>
214 <div id="opac-user-overdrive">
216 <div id="opac-user-recordedbooks">
218 <div id="opac-user-checkouts">
219 [% IF ( issues_count ) %]
220 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
221 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
222 <input type="hidden" name="from" value="opac_user" />
223 <table id="checkoutst" class="table table-bordered table-striped">
224 <caption>[% issues_count | html %] Item(s) checked out</caption>
227 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
228 <th class="anti-the">Title</th>
230 <th class="title-string psort">Due</th>
231 [% UNLESS ( item_level_itypes ) %]
234 [% IF ( show_barcode ) %]
238 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
239 <th class="nosort">Renew</th>
241 [% IF ( OPACFinesTab ) %]
244 [% IF ( OPACMySummaryHTML ) %]
245 <th class="nosort">Links</th>
247 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
248 <th class="nosort">Note</th>
253 [% FOREACH ISSUE IN ISSUES %]
254 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
255 [% IF ( JacketImages || AdlibrisEnabled ) %]<td class="jacketcell">
256 [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %]
257 <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>
259 [% IF ( OPACAmazonCoverImages ) %]
260 [% IF ( ISSUE.normalized_isbn ) %]
261 <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>
263 <a href="#"><span class="no-image">No cover image available</span></a>
267 [% IF ( GoogleJackets ) %]
268 [% IF ( ISSUE.normalized_isbn ) %]
269 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
271 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
275 [% IF ( BakerTaylorEnabled ) %]
276 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
278 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
280 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
284 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
285 <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>
288 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
289 <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" />
292 </td>[% END # / IF JacketImages %]
295 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=ISSUE %]</a>
296 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
298 [% IF ( ISSUE.onsite_checkout ) %] <em class="onsite_checkout">(On-site checkout)</em>[% END %]
300 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
301 [% INCLUDE 'user-star-ratings.inc' item=ISSUE %]
305 <td class="author">[% ISSUE.author | html %]</td>
306 [% IF ( ISSUE.overdue ) %]
307 <td class="date_due overdue">
308 <span title="[% ISSUE.date_due | html %]">
309 <span class="tdlabel">Date due:</span>
310 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
314 <td class="date_due">
315 <span title="[% ISSUE.date_due | html %]">
316 <span class="tdlabel">Date due:</span>
317 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
321 [% UNLESS ( item_level_itypes ) %]
323 <span class="tdlabel">Item type:</span>
324 [% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
325 <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" />
326 [% END %] [% ISSUE.description | html %]
329 [% IF ( show_barcode ) %]
331 <span class="tdlabel">Barcode:</span>
332 [% ISSUE.barcode | html %]
336 <span class="tdlabel">Call no.:</span>
337 [% ISSUE.itemcallnumber | html %]
339 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
341 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
342 [% IF ( ISSUE.status ) %]
343 [% IF ( canrenew ) %]
344 <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>
346 [% IF ISSUE.renewalfee > 0 %]
347 <span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
349 [% IF ISSUE.itemtype_object.rentalcharge_daily > 0 %]
350 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_daily | $Price %] per day</span>
352 [% IF ISSUE.itemtype_object.rentalcharge_hourly > 0 %]
353 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_hourly | $Price %] per hour</span>
355 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
356 [% ELSIF ( ISSUE.on_reserve ) %]
357 Not renewable <span class="renewals">(on hold)</span>
358 [% ELSIF ( ISSUE.too_many ) %]
360 [% ELSIF ( ISSUE.norenew_overdue ) %]
361 Not allowed <span class="renewals">(overdue)</span>
362 [% ELSIF ( ISSUE.auto_too_late ) %]
364 [% ELSIF ISSUE.auto_too_much_oweing %]
365 Automatic renewal failed, you have unpaid fines.
366 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
367 [% ELSIF ISSUE.auto_account_expired %]
368 Automatic renewal failed, your account is expired.
369 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
370 [% ELSIF ( ISSUE.too_soon ) %]
371 No renewal before [% ISSUE.soonestrenewdate | html %]
372 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
373 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
375 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
376 [% ELSIF ( ISSUE.item_denied_renewal ) %]
381 [% IF ( OPACFinesTab ) %]
383 <span class="tdlabel">Fines:</span>
384 [% IF ( ISSUE.charges ) %]
385 Yes (Item overdue or lost)
386 [% ELSIF ( ISSUE.rentalfines ) %]
393 [% IF ( OPACMySummaryHTML ) %]
394 <td class="links">[% ISSUE.MySummaryHTML | $raw %]</td>
396 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
398 <input type="text" name="note" data-issue_id="[% ISSUE.issue_id | html %]" data-origvalue="[% ISSUE.note | html %]" value="[% ISSUE.note | html %]" readonly>
399 <a class="btn js_submitnote" id="save_[% ISSUE.issue_id | html %]" style="display:none;">Submit note</a>
400 <a class="btn nonjs_submitnote" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | url %]">Edit / Create note</a>
404 [% END # /FOREACH ISSUES %]
407 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
408 <input type="submit" class="btn" value="Renew selected" />
412 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
413 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
414 <input type="hidden" name="from" value="opac_user" />
415 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
416 [% FOREACH ISSUE IN ISSUES %]
417 <input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" />
419 <input type="submit" class="btn" value="Renew all" />
422 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
424 <table class="table table-bordered table-striped">
425 <tr><td>You have nothing checked out</td></tr>
427 [% END # IF issues_count %]
428 </div> <!-- / .opac-user-checkouts -->
430 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
431 <div id="opac-user-clubs">
436 [% IF ( OPACFinesTab ) %]
438 [% IF ( amountoutstanding > 0 ) %]
439 <div id="opac-user-fines"> <h3>Charges</h3>
440 <table class="table table-bordered table-striped">
441 <thead><tr><th colspan="2">Amount</th></tr></thead>
444 <td>You currently owe fines and charges amounting to:</td>
445 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
452 [% IF ( amountoutstanding < 0 ) %]
453 <div id="opac-user-fines"> <h3>Credits</h3>
454 <table class="table table-bordered table-striped">
455 <thead><tr><th colspan="2">Amount</th></tr></thead>
458 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding * -1 | $Price %]</a></td>
465 [% IF relatives_with_fines %]
466 <div id="opac-user-relative-fines"> <h3>Fines and charges</h3>
467 <table class="table table-bordered table-striped">
470 <th colspan="2">Amount</th>
474 [% FOREACH r IN relatives_with_fines %]
476 <td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td>
477 <td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td>
484 [% END # / OPACFinesTab %]
487 <div id="opac-user-relative-issues">
488 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
491 <th class="anti-the">Title</th>
495 <th class="psort">Relative</th>
500 [% FOREACH r IN relatives %]
501 [% FOREACH c IN r.checkouts %]
504 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% c.item.biblio.biblionumber | uri %]">
505 [% c.item.biblio.title | html %][% IF ( c.item.enumchron ) %] [% c.item.enumchron | html %][% END %]
510 [% c.date_due | $KohaDates %]
514 [% c.item.barcode | html %]
518 [% c.item.itemcallnumber | html %]
522 [% r.firstname | html %] [% r.surname | html %]
532 [% IF ( overdues_count ) %]
533 <div id="opac-user-overdues">
534 <table id="overduest" class="table table-bordered table-striped">
535 <caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption>
536 <!-- OVERDUES TABLE ROWS -->
539 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
540 <th class="anti-the">Title</th>
541 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
542 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
544 <th class="title-string psort">Due</th>
545 [% IF ( OpacRenewalAllowed ) %]
546 <th class="nosort">Renew</th>
548 [% IF ( OPACFinesTab ) %]
554 [% FOREACH OVERDUE IN OVERDUES %]
556 [% IF ( JacketImages || AdlibrisEnabled ) %]
557 <td class="jacketcell">
558 [% IF ( AdlibrisEnabled && OVERDUE.normalized_isbn ) %]
559 <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>
561 [% IF ( OPACAmazonCoverImages ) %]
562 [% IF ( OVERDUE.normalized_isbn ) %]
563 <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>
565 <a href="#"><span class="no-image">No cover image available</span></a>
569 [% IF ( GoogleJackets ) %]
570 [% IF ( OVERDUE.normalized_isbn ) %]
571 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
573 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
577 [% IF ( BakerTaylorEnabled ) %]
578 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
580 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
582 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
586 [% IF ( SyndeticsCoverImages ) %]
587 <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" />
590 [% END # /IF jacketcell %]
593 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=OVERDUE %]</a>
594 <span class="item-details">[% OVERDUE.author | html %]</span>
597 [% UNLESS ( item_level_itypes ) %]
599 [% IF ( OVERDUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
600 <img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" />
601 [% END %] [% OVERDUE.description | html %]
604 [% IF ( show_barcode ) %]
606 <span class="tdlabel">Barcode:</span>
607 [% OVERDUE.barcode | html %]
611 <span class="tdlabel">Call no.:</span>
612 [% OVERDUE.itemcallnumber | html %]
615 <span title="[% OVERDUE.date_due | html %]">
616 <span class="tdlabel">Date due:</span>
617 [% OVERDUE.date_due | $KohaDates as_due_date => 1 %]
620 [% IF ( OpacRenewalAllowed ) %]
622 [% IF ( OVERDUE.debarred ) %]
624 [% ELSIF ( OVERDUE.status ) %]
625 [% IF ( canrenew ) %]
626 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a>
628 <span class="renewals">([% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining)</span>
629 [% ELSIF ( OVERDUE.norenew_overdue ) %]
630 Not allowed<span class="renewals">(overdue)</span>
631 [% ELSIF ( OVERDUE.onreserve ) %]
638 [% IF ( OPACFinesTab ) %]
640 <span class="tdlabel">Fines:</span>
641 [% IF ( OVERDUE.charges ) %]
652 </div> <!-- / #opac-user-overdues -->
653 [% END # /overdues_count %]
655 [% PROCESS 'holds-table.inc' HOLDS = RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %]
657 [% IF Koha.Preference('ArticleRequests') %]
658 <div id="opac-user-article-requests">
659 [% IF logged_in_user.article_requests_current.count %]
660 <table id="article-requests-table" class="table table-bordered table-striped">
661 <caption>Article requests <span class="count">([% logged_in_user.article_requests_current.count | html %] total)</span></caption>
664 <th class="anti-the article-request-record-title">Record title</th>
665 <th class="psort article-request-created-on">Placed on</th>
666 <th class="anti-the article-request-title">Title</th>
667 <th class="article-request-author">Author</th>
668 <th class="article-request-volume">Volume</th>
669 <th class="article-request-issue">Issue</th>
670 <th class="article-request-date">Date</th>
671 <th class="article-request-pages">Pages</th>
672 <th class="article-request-chapters">Chapters</th>
673 <th class="article-request-patron-notes">Notes</th>
674 <th class="article-request-status">Status</th>
675 <th class="article-request-branchcode">Pickup library</th>
676 <th class="nosort article-request-cancel"> </th>
681 [% FOREACH ar IN logged_in_user.article_requests_current %]
682 <td class="article-request-record-title">
683 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]">
684 [% INCLUDE 'biblio-title.inc' biblio=ar.biblio %]
685 [% ar.item.enumchron | html %]
687 [% ar.biblio.author | html %]
688 [% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %]
691 <td class="article-request-created_on">
692 [% ar.created_on | $KohaDates %]
695 <td class="article-request-title">
696 [% ar.title | html %]
699 <td class="article-request-author">
700 [% ar.author | html %]
703 <td class="article-request-volume">
704 [% ar.volume | html %]
707 <td class="article-request-issue">
708 [% ar.issue | html %]
711 <td class="article-request-date">
715 <td class="article-request-pages">
716 [% ar.pages | html %]
719 <td class="article-request-chapters">
720 [% ar.chapters | html %]
723 <td class="article-request-patron-notes">
724 [% ar.patron_notes | html %]
727 <td class="article-request-status">
728 [% IF ar.status == 'PENDING' %]
730 [% ELSIF ar.status == 'PROCESSING' %]
732 [% ELSIF ar.status == 'COMPLETED' %]
734 [% ELSIF ar.status == 'CANCELED' %]
739 <td class="article-request-branchcode">
740 [% ar.branch.branchname | html %]
743 <td class="article-request-cancel">
744 <span class="tdlabel">Cancel:</span>
745 <form action="/cgi-bin/koha/opac-article-request-cancel.pl" id="delete_article_request_[% ar.id | html %]">
746 <input type="hidden" name="id" value="[% ar.id | html %]" />
747 <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>
755 <table class="table table-bordered table-striped">
756 <tr><td>You have no article requests currently.</td></tr>
758 [% END # IF article_requests_current.count %]
759 </div> <!-- / #opac-user-article-requests -->
762 </div> <!-- /#opac-user-views -->
763 </div> <!-- /#userdetails -->
764 </div> <!-- /.span10 -->
765 </div> <!-- /.row-fluid -->
766 </div> <!-- /.container-fluid -->
767 </div> <!-- /#main -->
769 [% IF ( OverDriveCirculation ) %]
770 [% INCLUDE 'overdrive-checkout.inc' %]
771 [% IF ( Koha.Preference('OverDrivePasswordRequired') ) %]
772 [% INCLUDE 'overdrive-login.inc' %]
775 [% IF ( RecordedBooksCirculation ) %]
776 [% INCLUDE 'recordedbooks-checkout.inc' %]
779 [% INCLUDE 'opac-bottom.inc' %]
780 [% BLOCK jsinclude %]
781 [% INCLUDE 'calendar.inc' %]
782 [% INCLUDE 'datatables.inc' %]
785 $(document).ready(function(){
786 $('#opac-user-views').tabs();
787 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
788 $(".suspend-until").prop("readonly",1);
790 $(".btn-delete-hold").on("click", function(e){
792 var hold_title = $(this).data("title");
793 var reserve_id = $(this).data("reserve_id");
794 confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
796 $("#delete_hold_" + reserve_id ).submit();
802 $(".btn-delete-article-request").on("click", function(e){
804 var article_request = $(this).data("title");
805 var article_request_id = $(this).data("article-request_id");
806 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 ){
808 $("#delete_article_request_" + article_request_id ).submit();
814 $("#suspend_all_submit").on("click", function(e){
816 var title = _("Are you sure you want to suspend all holds?");
817 var body = _("All holds will be suspended.");
818 confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){
820 $("#suspend_all_holds").submit();
826 $("#resume_all_submit").on("click", function(e){
828 var title = _("Are you sure you want to resume all suspended holds?");
829 var body = _("All holds will resume.");
830 confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){
832 $("#resume_all_holds").submit();
838 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
839 dTables.each(function(){
840 var thIndex = $(this).find("th.psort").index();
841 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
842 "sorting" : [[ thIndex, 'asc' ]],
844 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
845 { "type": "anti-the", "targets" : [ "anti-the" ] },
846 { "type": "title-string", "targets" : [ "title-string" ] }
851 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
852 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
853 $("#renewselected").submit(function(){
855 $("input[type=checkbox]").each(function(){
856 if($(this).is(':checked')){
861 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
865 $("body").on("click","#renewselected_link",function(e){
867 $("#renewselected").submit();
869 $("body").on("click","#renewall_link",function(e){
871 $("#renewall").submit();
873 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
874 $("#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>");
878 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
880 /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
881 $(".nonjs_submitnote").hide();
883 $("input[name='note']").prop('readonly', false);
884 $("input[name='note']").keypress(function(e){
885 /* prevent submitting of renewselected form */
890 $("input[name='note']").keyup(function(e){
891 var $btn_save = $('#save_'+$(this).data('issue_id'));
892 var origvalue = $(this).data('origvalue');
893 var value = $(this).val();
895 if(origvalue != value) {
897 $btn_save.text(_("Submit changes"));
899 $btn_save.text(_("Submit note"));
906 $(".js_submitnote").click(function(e){
908 var title = $(this).parent().siblings('.title').html();
909 var $noteinput = $(this).siblings('input[name="note"]').first();
912 'action': 'issuenote',
913 'issue_id': $noteinput.data('issue_id'),
914 'note': $noteinput.val(),
918 url: '/cgi-bin/koha/svc/checkout_notes/',
923 .done(function(data) {
925 if(data.status == 'saved') {
926 $("#notesaved").removeClass("alert-error");
927 $("#notesaved").addClass("alert-info");
928 $noteinput.data('origvalue', data.note);
929 $noteinput.val(data.note);
930 message = "<p>" + _("Your note about %s has been saved and sent to the library.").format(title) + "</p>";
931 message += "<p style=\"font-style:italic;\">" + data.note + "</p>";
933 } else if(data.status == 'removed') {
934 $("#notesaved").removeClass("alert-error");
935 $("#notesaved").addClass("alert-info");
936 $noteinput.data('origvalue', "");
938 message = "<p>" + _("Your note about %s was removed.").format(title) + "</p>";
941 $("#notesaved").removeClass("alert-info");
942 $("#notesaved").addClass("alert-error");
943 message = "<p>" + _("Your note about %s could not be saved.").format(title) + "</p>";
944 message += "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
946 $("#notesaved").html(message);
948 .fail(function(data) {
949 $("#notesaved").removeClass("alert-info");
950 $("#notesaved").addClass("alert-error");
951 var message = "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
952 $("#notesaved").html(message);
955 $("#notesaved").show();
960 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
962 if ( $('#opac-user-clubs').length ) {
963 $('#opac-user-clubs-tab-link').on('click', function() {
964 $('#opac-user-clubs').text(_("Loading..."));
965 $('#opac-user-clubs').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% borrowernumber | html %]');
970 var borrowernumber = "[% borrowernumber | html %]";
971 var MSG_YOUR_RATING = _("Your rating: %s, ");
972 var MSG_AVERAGE_RATING = _("Average rating: %s (%s votes)");
974 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
975 [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
976 [% Asset.js("js/ratings.js") | $raw %]
978 [% IF Koha.Preference('OverDriveCirculation') %]
979 [% Asset.js("js/overdrive.js") | $raw %]
981 var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %];
982 $(document).ready(function() {
983 [% IF ( overdrive_error ) %]
984 KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote | html %]");
987 [% IF ( overdrive_tab ) %]
988 $("#opac-user-views").tabs("select", "#opac-user-overdrive");
991 $("#opac-user-overdrive").each( function() {
992 KOHA.OverDriveCirculation.display_account_details(this);
997 [% IF RecordedBooksCirculation %]
998 [% Asset.js("js/recordedbooks.js") | $raw %]
999 <script type="text/JavaScript">
1000 $(document).ready(function() {
1001 [% IF ( recordedbooks_error ) %]
1002 KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1004 [% IF ( recordedbooks_tab ) %]
1005 $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1007 $("#opac-user-recordedbooks").each( function() {
1008 KOHA.RecordedBooks.display_account_details(this);