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.warndeparture ) %]
62 <div class="alert" id="warndeparture">
63 <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>
64 [% IF ( borrower.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
68 [% IF ( borrower.warnexpired ) %]
69 <div class="alert" id="warnexpired">
70 <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>
74 [% IF ( RENEW_ERROR ) %]
75 <div class="dialog alert">
76 <strong>Please note:</strong>
77 Your loan renewal failed because of the following reason(s):
79 [% FOREACH error IN RENEW_ERROR.split('\|') %]
80 [% IF error == 'card_expired' %]
81 <li>Your account has expired. Please contact the library for more information.</li>
82 [% ELSIF error == 'too_many' %]
83 <li>You have renewed this item the maximum number of times allowed.</li>
84 [% ELSIF error == 'too_soon' %]
85 <li>It is too soon after the checkout date for this item to be renewed.</li>
86 [% ELSIF error == 'on_reserve' %]
87 <li>This item is on hold for another borrower.</li>
88 [% ELSIF error == 'item_denied_renewal' %]
89 <li>Item renewal is not allowed.</li>
96 [% IF ( patron_flagged ) %]
99 [% IF ( userdebarred ) %]
100 [% IF ( discharge_available ) %]
102 <strong>Please note:</strong> Your account is frozen because it has been discharged. Your return certificate has been sent to the student administration office.
105 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
106 [% IF ( borrower.debarredcomment ) %]
108 <span id="userdebarred_comment">
110 [% IF borrower.debarredcomment.search('OVERDUES_PROCESS') %]
111 Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
113 [% borrower.debarredcomment | html_line_break %]
118 [% IF ( borrower.userdebarreddate && debarred_date != '9999-12-31' ) %]
120 <span id="userdebarred_date">[% borrower.userdebarreddate | $KohaDates %]</span>
123 <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>
126 [% IF ( borrower.gonenoaddress ) %]
127 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
128 <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
129 [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
132 [% IF ( borrower.lost ) %]
133 <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>
135 [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
136 <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 %]
140 [% END # / IF patron_flagged %]
142 <div class="alert alert-info" id="notesaved" style="display:none;"></div>
144 [% IF OPACMySummaryNote %][% Koha.Preference('OPACMySummaryNote') | $raw %][% END %]
146 <div id="opac-user-views" class="toptabs">
148 <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
149 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
150 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a></li>[% END %]
151 [% IF ( OPACFinesTab ) %]
152 [% IF ( borrower.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
153 [% IF ( borrower.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
154 [% IF ( borrower.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding | $Price %])</a></li>[% END %]
157 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
159 <a id="opac-user-clubs-tab-link" href="#opac-user-clubs">
160 Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %])
165 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %]
166 [% 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 %]
167 [% IF ( OverDriveCirculation ) %]
168 <li><a href="#opac-user-overdrive">OverDrive Account</a></li>
170 [% IF ( RecordedBooksCirculation ) %]
171 <li><a href="#opac-user-recordedbooks">RecordedBooks Account</a></li>
175 <div id="opac-user-overdrive">
177 <div id="opac-user-recordedbooks">
179 <div id="opac-user-checkouts">
180 [% IF ( issues_count ) %]
181 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
182 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
183 <input type="hidden" name="from" value="opac_user" />
184 <table id="checkoutst" class="table table-bordered table-striped">
185 <caption>[% issues_count | html %] Item(s) checked out</caption>
188 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
189 <th class="anti-the">Title</th>
191 <th class="title-string psort">Due</th>
192 [% UNLESS ( item_level_itypes ) %]
195 [% IF ( show_barcode ) %]
199 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
200 <th class="nosort">Renew</th>
202 [% IF ( OPACFinesTab ) %]
205 [% IF ( OPACMySummaryHTML ) %]
206 <th class="nosort">Links</th>
208 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
209 <th class="nosort">Note</th>
214 [% FOREACH ISSUE IN ISSUES %]
215 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
216 [% IF ( JacketImages || AdlibrisEnabled ) %]<td class="jacketcell">
217 [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %]
218 <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>
220 [% IF ( OPACAmazonCoverImages ) %]
221 [% IF ( ISSUE.normalized_isbn ) %]
222 <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>
224 <a href="#"><span class="no-image">No cover image available</span></a>
228 [% IF ( GoogleJackets ) %]
229 [% IF ( ISSUE.normalized_isbn ) %]
230 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
232 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
236 [% IF ( BakerTaylorEnabled ) %]
237 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
239 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
241 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
245 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
246 <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" />
249 </td>[% END # / IF JacketImages %]
252 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% ISSUE.title | html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield | html %][% END %]</a>
253 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
256 <td class="author">[% ISSUE.author | html %]</td>
257 [% IF ( ISSUE.overdue ) %]
258 <td class="date_due overdue">
259 <span title="[% ISSUE.date_due | html %]">
260 <span class="tdlabel">Date due:</span>
261 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
265 <td class="date_due">
266 <span title="[% ISSUE.date_due | html %]">
267 <span class="tdlabel">Date due:</span>
268 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
272 [% UNLESS ( item_level_itypes ) %]
274 <span class="tdlabel">Item type:</span>
275 [% IF ( ISSUE.imageurl ) %]
276 <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" />
277 [% END %] [% ISSUE.description | html %]
280 [% IF ( show_barcode ) %]
282 <span class="tdlabel">Barcode:</span>
283 [% ISSUE.barcode | html %]
287 <span class="tdlabel">Call no.:</span>
288 [% ISSUE.itemcallnumber | html %]
290 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
292 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
293 [% IF ( ISSUE.status ) %]
294 [% IF ( canrenew ) %]
295 <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>
297 [% IF ISSUE.renewalfee > 0 %]
298 <span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
300 [% IF ISSUE.itemtype_object.rentalcharge_daily > 0 %]
301 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_daily | $Price %] per day</span>
303 [% IF ISSUE.itemtype_object.rentalcharge_hourly > 0 %]
304 <span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_hourly | $Price %] per hour</span>
306 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
307 [% ELSIF ( ISSUE.on_reserve ) %]
308 Not renewable <span class="renewals">(on hold)</span>
309 [% ELSIF ( ISSUE.too_many ) %]
311 [% ELSIF ( ISSUE.norenew_overdue ) %]
312 Not allowed <span class="renewals">(overdue)</span>
313 [% ELSIF ( ISSUE.auto_too_late ) %]
315 [% ELSIF ISSUE.auto_too_much_oweing %]
316 Automatic renewal failed, you have unpaid fines.
317 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
318 [% ELSIF ISSUE.auto_account_expired %]
319 Automatic renewal failed, your account is expired.
320 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
321 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
323 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
324 [% ELSIF ( ISSUE.too_soon ) %]
325 No renewal before [% ISSUE.soonestrenewdate | html %]
326 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
327 [% ELSIF ( ISSUE.item_denied_renewal ) %]
332 [% IF ( OPACFinesTab ) %]
334 <span class="tdlabel">Fines:</span>
335 [% IF ( ISSUE.charges ) %]
336 Yes (Item overdue or lost)
337 [% ELSIF ( ISSUE.rentalfines ) %]
344 [% IF ( OPACMySummaryHTML ) %]
345 <td class="links">[% ISSUE.MySummaryHTML | $raw %]</td>
347 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
349 <input type="text" name="note" data-issue_id="[% ISSUE.issue_id | html %]" data-origvalue="[% ISSUE.note | html %]" value="[% ISSUE.note | html %]" readonly>
350 <a class="btn" name="js_submitnote" id="save_[% ISSUE.issue_id | html %]" style="display:none;">Submit note</a>
351 <a class="btn" name="nonjs_submitnote" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | url %]">Edit / Create note</a>
355 [% END # /FOREACH ISSUES %]
358 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
359 <input type="submit" class="btn" value="Renew selected" />
363 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
364 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
365 <input type="hidden" name="from" value="opac_user" />
366 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
367 [% FOREACH ISSUE IN ISSUES %]
368 <input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" />
370 <input type="submit" class="btn" value="Renew all" />
373 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
375 <table class="table table-bordered table-striped">
376 <tr><td>You have nothing checked out</td></tr>
378 [% END # IF issues_count %]
379 </div> <!-- / .opac-user-checkouts -->
381 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
382 <div id="opac-user-clubs">
387 [% IF ( OPACFinesTab ) %]
389 [% IF borrower.amountoverfive %]
390 <div id="opac-user-fines"> <h3>Fines and charges</h3>
391 <table class="table table-bordered table-striped">
392 <thead><tr><th colspan="2">Amount</th></tr></thead>
395 <td>You currently owe fines and charges amounting to:</td>
396 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
403 [% IF borrower.amountoverzero %]
404 <div id="opac-user-fines"> <h3>Fines and charges</h3>
405 <table class="table table-bordered table-striped">
406 <thead><tr><th colspan="2">Amount</th></tr></thead>
409 <td>You currently owe fines and charges amounting to:</td>
410 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
417 [% IF borrower.amountlessthanzero %]
418 <div id="opac-user-fines"> <h3>Credits</h3>
419 <table class="table table-bordered table-striped">
420 <thead><tr><th colspan="2">Amount</th></tr></thead>
423 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
429 [% END # / OPACFinesTab %]
432 <div id="opac-user-relative-issues">
433 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
436 <th class="anti-the">Title</th>
440 <th class="psort">Relative</th>
445 [% FOREACH r IN relatives %]
446 [% FOREACH i IN r.issues %]
449 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber | uri %]">
450 [% i.item.biblio.title | html %][% IF ( i.item.enumchron ) %] [% i.item.enumchron | html %][% END %]
455 [% i.date_due | $KohaDates %]
459 [% i.item.barcode | html %]
463 [% i.item.itemcallnumber | html %]
467 [% r.firstname | html %] [% r.surname | html %]
477 [% IF ( overdues_count ) %]
478 <div id="opac-user-overdues">
479 <table id="overduest" class="table table-bordered table-striped">
480 <caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption>
481 <!-- OVERDUES TABLE ROWS -->
484 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
485 <th class="anti-the">Title</th>
486 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
487 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
489 <th class="title-string psort">Due</th>
490 [% IF ( OpacRenewalAllowed ) %]
491 <th class="nosort">Renew</th>
493 [% IF ( OPACFinesTab ) %]
499 [% FOREACH OVERDUE IN OVERDUES %]
501 [% IF ( JacketImages || AdlibrisEnabled ) %]
502 <td class="jacketcell">
503 [% IF ( AdlibrisEnabled && OVERDUE.normalized_isbn ) %]
504 <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>
506 [% IF ( OPACAmazonCoverImages ) %]
507 [% IF ( OVERDUE.normalized_isbn ) %]
508 <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>
510 <a href="#"><span class="no-image">No cover image available</span></a>
514 [% IF ( GoogleJackets ) %]
515 [% IF ( OVERDUE.normalized_isbn ) %]
516 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
518 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
522 [% IF ( BakerTaylorEnabled ) %]
523 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
525 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
527 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
531 [% IF ( SyndeticsCoverImages ) %]
532 <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" />
535 [% END # /IF jacketcell %]
538 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% OVERDUE.title | html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield | html %][% END %]
540 <span class="item-details">[% OVERDUE.author | html %]</span></td>
542 [% UNLESS ( item_level_itypes ) %]
544 [% IF ( OVERDUE.imageurl ) %]
545 <img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" />
546 [% END %] [% OVERDUE.description | html %]
549 [% IF ( show_barcode ) %]
551 <span class="tdlabel">Barcode:</span>
552 [% OVERDUE.barcode | html %]
556 <span class="tdlabel">Call no.:</span>
557 [% OVERDUE.itemcallnumber | html %]
560 <span title="[% OVERDUE.date_due | html %]">
561 <span class="tdlabel">Date due:</span>
562 [% OVERDUE.date_due | $KohaDates as_due_date => 1 %]
565 [% IF ( OpacRenewalAllowed ) %]
567 [% IF ( OVERDUE.debarred ) %]
569 [% ELSIF ( OVERDUE.status ) %]
570 [% IF ( canrenew ) %]
571 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a>
573 <span class="renewals">([% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining)</span>
574 [% ELSIF ( OVERDUE.norenew_overdue ) %]
575 Not allowed<span class="renewals">(overdue)</span>
576 [% ELSIF ( OVERDUE.onreserve ) %]
583 [% IF ( OPACFinesTab ) %]
585 <span class="tdlabel">Fines:</span>
586 [% IF ( OVERDUE.charges ) %]
597 </div> <!-- / #opac-user-overdues -->
598 [% END # /overdues_count %]
601 [% IF ( RESERVES.count ) %]
602 <div id="opac-user-holds">
603 <table id="holdst" class="table table-bordered table-striped">
604 <caption>Holds <span class="count">([% RESERVES.count | html %] total)</span></caption>
605 <!-- RESERVES TABLE ROWS -->
608 <th class="anti-the">Title</th>
609 [% IF ( showpriority ) %]
610 <th class="title-string">Placed on</th>
612 <th class="psort title-string">Placed on</th>
614 <th class="title-string">Expires on</th>
615 [% UNLESS( singleBranchMode) %]
616 <th>Pick up location</th>
618 [% IF ( showpriority ) %]
619 <th class="psort">Priority</th>
622 [% IF SuspendHoldsOpac %]
623 <th class="nosort" >Suspend</th>
625 <th class="nosort">Modify</th>
629 [% FOREACH RESERVE IN RESERVES %]
630 [% IF ( RESERVE.is_waiting ) %]
631 [% IF ( RESERVE.is_at_destination ) %]
632 [% IF ( RESERVE.is_found ) %]
633 <tr class="reserved">
638 <tr class="transfered">
644 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber | html %]">
645 [% RESERVE.biblio.title | html %]
646 [% FOREACH s IN RESERVE.biblio.subtitles %]
649 [% RESERVE.item.enumchron | html %]
651 [% RESERVE.biblio.author | html %]
653 <td class="reservedate">
654 <span title="[% RESERVE.reservedate | html %]">
655 <span class="tdlabel">Hold date:</span>
656 [% RESERVE.reservedate | $KohaDates %]
659 <td class="expirationdate">
660 [% IF ! RESERVE.found %]
661 [% IF ( RESERVE.expirationdate ) %]
662 <span title="[% RESERVE.expirationdate | html %]">
663 <span class="tdlabel">Expiration:</span>
664 [% RESERVE.expirationdate | $KohaDates %]
667 <span title="0000-00-00">
668 <span class="tdlabel">Expiration:</span>
673 <span title="0000-00-00">-</span>
676 [% UNLESS( singleBranchMode) %]
678 <span class="tdlabel">Pick up location:</span>
679 [% RESERVE.branch.branchname | html %]
682 [% IF ( showpriority ) %]
683 <td data-order="[% RESERVE.priority | html %]" class="priority">
684 <span class="tdlabel">Priority:</span>
685 [% RESERVE.priority | html %]
689 <span class="tdlabel">Status:</span>
690 [% IF ( RESERVE.is_waiting ) %]
691 [% IF ( RESERVE.is_at_destination ) %]
692 [% IF ( RESERVE.found ) %]
693 Item waiting at <b> [% RESERVE.branch.branchname | html %]</b>
694 [% IF ( RESERVE.waitingdate ) %]
695 since [% RESERVE.waitingdate | $KohaDates %]
696 [% IF RESERVE.expirationdate %]
697 until [% RESERVE.expirationdate | $KohaDates %]
700 <input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" />
702 Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b>
705 Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" />
708 [% IF ( RESERVE.is_in_transit ) %]
709 [% SET transfer = RESERVE.item.get_transfer %]
710 Item in transit from <b> [% Branches.GetName( transfer.frombranch ) | html %]</b> since
711 [% transfer.datesent | $KohaDates %]
712 [% ELSIF ( RESERVE.suspend ) %]
713 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | html %] [% END %]
715 [% IF RESERVE.itemtype %]
716 Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) | html %]'
723 [% IF SuspendHoldsOpac %]
725 [% IF ( RESERVE.is_cancelable_from_opac ) %]
726 [% IF RESERVE.suspend %]
727 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
728 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
729 <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-play"></i> Resume</button>
732 [% IF AutoResumeSuspendedHolds %]
733 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id | html %]" role="button" data-toggle="modal"><i class="fa fa-pause"></i> Suspend</a>
734 [% # hold suspend modal form %]
735 <div id="suspendModal[% RESERVE.reserve_id | html %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id | html %]Label" aria-hidden="true">
736 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
737 <div class="modal-header">
738 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
739 [% IF RESERVE.suspend %]
740 <h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Resume your hold on <i>[% RESERVE.biblio.title | html %]</i></h3>
742 <h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Suspend your hold on <i>[% RESERVE.biblio.title | html %]</i></h3>
745 <div class="modal-body">
746 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
747 <label for="suspend_until_[% RESERVE.reserve_id | html %]">Suspend until:</label>
748 <input type="text" name="suspend_until" id="suspend_until_[% RESERVE.reserve_id | html %]" class="suspend-until" size="10" />
749 [% INCLUDE 'date-format.inc' %]
750 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id | html %]').value='';return false;">Clear date to suspend indefinitely</a></p>
751 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
753 <div class="modal-footer">
754 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
755 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
758 </div> <!-- /#suspendModal[% RESERVE.reserve_id | html %] -->
760 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
761 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
762 <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-pause"></i> Suspend</button>
764 [% END # / IF AutoResumeSuspendedHolds %]
765 [% END # / IF RESERVE.suspend %]
766 [% END # / IF ( RESERVE.is_cancelable_from_opac )%]
768 [% END # / IF SuspendHoldsOpac %]
770 [% IF ( RESERVE.is_cancelable_from_opac ) %]
771 <form id="delete_hold_[% RESERVE.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post">
772 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber | html %]" />
773 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
774 <button data-title="[% RESERVE.biblio.title | html %] [% FOREACH s IN RESERVE.biblio.subtitles %] [% s | html %] [% END %] [% RESERVE.item.enumchron | html %]" data-reserve_id="[% RESERVE.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-remove"></i> Cancel</button></form>
778 [% END # /FOREACH RESERVES %]
782 [% IF SuspendHoldsOpac %]
784 <form class="form-inline" id="suspend_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
785 <button type="submit" id="suspend_all_submit" class="btn"><i class="fa fa-pause"></i> Suspend all holds</button>
786 <input type="hidden" name="suspend" value="1" />
788 [% IF AutoResumeSuspendedHolds %]
789 <label for="suspend_until"> until </label>
790 <input type="text" name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
791 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
797 <form id="resume_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
798 <button type="submit" id="resume_all_submit" class="btn"><i class="fa fa-play"></i> Resume all suspended holds</button>
799 <input type="hidden" name="suspend" value="0" />
803 </div> <!-- / #opac-user-holds -->
804 [% END # / #RESERVES.count %]
806 [% IF Koha.Preference('ArticleRequests') %]
807 <div id="opac-user-article-requests">
808 [% IF logged_in_user.article_requests_current.count %]
809 <table id="article-requests-table" class="table table-bordered table-striped">
810 <caption>Article requests <span class="count">([% logged_in_user.article_requests_current.count | html %] total)</span></caption>
813 <th class="anti-the article-request-record-title">Record title</th>
814 <th class="psort article-request-created-on">Placed on</th>
815 <th class="anti-the article-request-title">Title</th>
816 <th class="article-request-author">Author</th>
817 <th class="article-request-volume">Volume</th>
818 <th class="article-request-issue">Issue</th>
819 <th class="article-request-date">Date</th>
820 <th class="article-request-pages">Pages</th>
821 <th class="article-request-chapters">Chapters</th>
822 <th class="article-request-patron-notes">Notes</th>
823 <th class="article-request-status">Status</th>
824 <th class="article-request-branchcode">Pickup library</th>
825 <th class="nosort article-request-cancel"> </th>
830 [% FOREACH ar IN logged_in_user.article_requests_current %]
831 <td class="article-request-record-title">
832 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]">
833 [% ar.biblio.title | html %]
834 [% ar.item.enumchron | html %]
836 [% ar.biblio.author | html %]
837 [% IF ar.itemnumber %] <i>(only [% ar.item.barcode | html %])</i>[% END %]
840 <td class="article-request-created_on">
841 [% ar.created_on | $KohaDates %]
844 <td class="article-request-title">
845 [% ar.title | html %]
848 <td class="article-request-author">
849 [% ar.author | html %]
852 <td class="article-request-volume">
853 [% ar.volume | html %]
856 <td class="article-request-issue">
857 [% ar.issue | html %]
860 <td class="article-request-date">
864 <td class="article-request-pages">
865 [% ar.pages | html %]
868 <td class="article-request-chapters">
869 [% ar.chapters | html %]
872 <td class="article-request-patron-notes">
873 [% ar.patron_notes | html %]
876 <td class="article-request-status">
877 [% IF ar.status == 'PENDING' %]
879 [% ELSIF ar.status == 'PROCESSING' %]
881 [% ELSIF ar.status == 'COMPLETED' %]
883 [% ELSIF ar.status == 'CANCELED' %]
888 <td class="article-request-branchcode">
889 [% ar.branch.branchname | html %]
892 <td class="article-request-cancel">
893 <span class="tdlabel">Cancel:</span>
894 <form action="/cgi-bin/koha/opac-article-request-cancel.pl" id="delete_article_request_[% ar.id | html %]">
895 <input type="hidden" name="id" value="[% ar.id | html %]" />
896 <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"></i> Cancel</button>
904 <table class="table table-bordered table-striped">
905 <tr><td>You have no article requests currently.</td></tr>
907 [% END # IF article_requests_current.count %]
908 </div> <!-- / #opac-user-article-requests -->
911 </div> <!-- /#opac-user-views -->
912 </div> <!-- /#userdetails -->
913 </div> <!-- /.span10 -->
914 </div> <!-- /.row-fluid -->
915 </div> <!-- /.container-fluid -->
916 </div> <!-- /#main -->
918 [% IF ( OverDriveCirculation ) %]
919 [% INCLUDE 'overdrive-checkout.inc' %]
920 [% IF ( Koha.Preference('OverDrivePasswordRequired') ) %]
921 [% INCLUDE 'overdrive-login.inc' %]
924 [% IF ( RecordedBooksCirculation ) %]
925 [% INCLUDE 'recordedbooks-checkout.inc' %]
928 [% INCLUDE 'opac-bottom.inc' %]
929 [% BLOCK jsinclude %]
930 [% INCLUDE 'calendar.inc' %]
931 [% INCLUDE 'datatables.inc' %]
934 $(document).ready(function(){
935 $('#opac-user-views').tabs();
936 $(".js-show").show();
937 $(".js-hide").hide();
938 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
939 $(".suspend-until").prop("readonly",1);
941 $(".btn-delete-hold").on("click", function(e){
943 var hold_title = $(this).data("title");
944 var reserve_id = $(this).data("reserve_id");
945 var body = "<p><strong>" + hold_title + "</strong></p>";
946 confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
948 $("#delete_hold_" + reserve_id ).submit();
954 $(".btn-delete-article-request").on("click", function(e){
956 var hold_title = $(this).data("title");
957 var article_request_id = $(this).data("article-request_id");
958 var body = "<p><strong>" + hold_title + "</strong></p>";
959 confirmModal( hold_title, _("Are you sure you want to cancel this article request?"), _("Yes, cancel article request"), _("No, do not cancel article request"), function( result ){
961 $("#delete_article_request_" + article_request_id ).submit();
967 $("#suspend_all_submit").on("click", function(e){
969 var title = _("Are you sure you want to suspend all holds?");
970 var body = _("All holds will be suspended.");
971 confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){
973 $("#suspend_all_holds").submit();
979 $("#resume_all_submit").on("click", function(e){
981 var title = _("Are you sure you want to resume all suspended holds?");
982 var body = _("All holds will resume.");
983 confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){
985 $("#resume_all_holds").submit();
991 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
992 dTables.each(function(){
993 var thIndex = $(this).find("th.psort").index();
994 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
995 "sorting" : [[ thIndex, 'asc' ]],
997 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
998 { "type": "anti-the", "targets" : [ "anti-the" ] },
999 { "type": "title-string", "targets" : [ "title-string" ] }
1004 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1005 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
1006 $("#renewselected").submit(function(){
1008 $("input[type=checkbox]").each(function(){
1009 if($(this).is(':checked')){
1014 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
1018 $("body").on("click","#renewselected_link",function(e){
1020 $("#renewselected").submit();
1022 $("body").on("click","#renewall_link",function(e){
1024 $("#renewall").submit();
1026 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
1027 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
1031 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
1033 /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
1034 $("a[name='nonjs_submitnote']").hide();
1036 $("input[name='note']").prop('readonly', false);
1037 $("input[name='note']").keypress(function(e){
1038 /* prevent submitting of renewselected form */
1043 $("input[name='note']").keyup(function(e){
1044 var $btn_save = $('#save_'+$(this).data('issue_id'));
1045 var origvalue = $(this).data('origvalue');
1046 var value = $(this).val();
1048 if(origvalue != value) {
1050 $btn_save.text(_("Submit changes"));
1052 $btn_save.text(_("Submit note"));
1059 $("a[name='js_submitnote']").click(function(e){
1060 var $self = $(this);
1061 var title = $(this).parent().siblings('.title').html();
1062 var $noteinput = $(this).siblings('input[name="note"]').first();
1065 'action': 'issuenote',
1066 'issue_id': $noteinput.data('issue_id'),
1067 'note': $noteinput.val(),
1071 url: '/cgi-bin/koha/svc/checkout_notes/',
1076 .done(function(data) {
1078 if(data.status == 'saved') {
1079 $("#notesaved").removeClass("alert-error");
1080 $("#notesaved").addClass("alert-info");
1081 $noteinput.data('origvalue', data.note);
1082 $noteinput.val(data.note);
1083 message = "<p>" + _("Your note about %s has been saved and sent to the library.").format(title) + "</p>";
1084 message += "<p style=\"font-style:italic;\">" + data.note + "</p>";
1086 } else if(data.status == 'removed') {
1087 $("#notesaved").removeClass("alert-error");
1088 $("#notesaved").addClass("alert-info");
1089 $noteinput.data('origvalue', "");
1091 message = "<p>" + _("Your note about %s was removed.").format(title) + "</p>";
1094 $("#notesaved").removeClass("alert-info");
1095 $("#notesaved").addClass("alert-error");
1096 message = "<p>" + _("Your note about %s could not be saved.").format(title) + "</p>";
1097 message += "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
1099 $("#notesaved").html(message);
1101 .fail(function(data) {
1102 $("#notesaved").removeClass("alert-info");
1103 $("#notesaved").addClass("alert-error");
1104 var message = "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
1105 $("#notesaved").html(message);
1107 .always(function() {
1108 $("#notesaved").show();
1113 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
1115 if ( $('#opac-user-clubs').length ) {
1116 $('#opac-user-clubs-tab-link').on('click', function() {
1117 $('#opac-user-clubs').text(_("Loading..."));
1118 $('#opac-user-clubs').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% borrowernumber | html %]');
1124 [% IF Koha.Preference('OverDriveCirculation') %]
1125 [% Asset.js("js/overdrive.js") | $raw %]
1127 var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %];
1128 $(document).ready(function() {
1129 [% IF ( overdrive_error ) %]
1130 KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote | html %]");
1133 [% IF ( overdrive_tab ) %]
1134 $("#opac-user-views").tabs("select", "#opac-user-overdrive");
1137 $("#opac-user-overdrive").each( function() {
1138 KOHA.OverDriveCirculation.display_account_details(this);
1143 [% IF RecordedBooksCirculation %]
1144 [% Asset.js("js/recordedbooks.js") | $raw %]
1145 <script type="text/JavaScript">
1146 $(document).ready(function() {
1147 [% IF ( recordedbooks_error ) %]
1148 KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1150 [% IF ( recordedbooks_tab ) %]
1151 $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1153 $("#opac-user-recordedbooks").each( function() {
1154 KOHA.RecordedBooks.display_account_details(this);