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>
94 [% IF ( patron_flagged ) %]
97 [% IF ( userdebarred ) %]
98 [% IF ( discharge_available ) %]
100 <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>
103 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
104 [% IF ( borrower.debarredcomment ) %]
106 <span id="userdebarred_comment">
108 [% IF borrower.debarredcomment.search('OVERDUES_PROCESS') %]
109 Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
111 [% borrower.debarredcomment | html_line_break %]
116 [% IF ( borrower.userdebarreddate && debarred_date != '9999-12-31' ) %]
118 <span id="userdebarred_date">[% borrower.userdebarreddate | $KohaDates %]</span>
121 <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>
124 [% IF ( borrower.gonenoaddress ) %]
125 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
126 <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
127 [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
130 [% IF ( borrower.lost ) %]
131 <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>
133 [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
134 <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 %]
138 [% END # / IF patron_flagged %]
140 <div class="alert alert-info" id="notesaved" style="display:none;"></div>
142 [% IF OPACMySummaryNote %][% Koha.Preference('OPACMySummaryNote') | $raw %][% END %]
144 <div id="opac-user-views" class="toptabs">
146 <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
147 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
148 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a></li>[% END %]
149 [% IF ( OPACFinesTab ) %]
150 [% IF ( borrower.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
151 [% IF ( borrower.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
152 [% IF ( borrower.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding | $Price %])</a></li>[% END %]
155 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
157 <a id="opac-user-clubs-tab-link" href="#opac-user-clubs">
158 Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %])
163 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %]
164 [% 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 %]
165 [% IF ( OverDriveCirculation ) %]
166 <li><a href="#opac-user-overdrive">OverDrive Account</a></li>
168 [% IF ( RecordedBooksCirculation ) %]
169 <li><a href="#opac-user-recordedbooks">RecordedBooks Account</a></li>
173 <div id="opac-user-overdrive">
175 <div id="opac-user-recordedbooks">
177 <div id="opac-user-checkouts">
178 [% IF ( issues_count ) %]
179 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
180 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
181 <input type="hidden" name="from" value="opac_user" />
182 <table id="checkoutst" class="table table-bordered table-striped">
183 <caption>[% issues_count | html %] Item(s) checked out</caption>
186 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
187 <th class="anti-the">Title</th>
189 <th class="title-string psort">Due</th>
190 [% UNLESS ( item_level_itypes ) %]
193 [% IF ( show_barcode ) %]
197 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
198 <th class="nosort">Renew</th>
200 [% IF ( OPACFinesTab ) %]
203 [% IF ( OPACMySummaryHTML ) %]
204 <th class="nosort">Links</th>
206 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
207 <th class="nosort">Note</th>
212 [% FOREACH ISSUE IN ISSUES %]
213 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
214 [% IF ( JacketImages || AdlibrisEnabled ) %]<td class="jacketcell">
215 [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %]
216 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]"><img src="[% AdlibrisURL | html %]?isbn=[% issue.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
218 [% IF ( OPACAmazonCoverImages ) %]
219 [% IF ( ISSUE.normalized_isbn ) %]
220 <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>
222 <a href="#"><span class="no-image">No cover image available</span></a>
226 [% IF ( GoogleJackets ) %]
227 [% IF ( ISSUE.normalized_isbn ) %]
228 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
230 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
234 [% IF ( BakerTaylorEnabled ) %]
235 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
237 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
239 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
243 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
244 <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" />
247 </td>[% END # / IF JacketImages %]
250 <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>
251 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
254 <td class="author">[% ISSUE.author | html %]</td>
255 [% IF ( ISSUE.overdue ) %]
256 <td class="date_due overdue">
257 <span title="[% ISSUE.date_due | html %]">
258 <span class="tdlabel">Date due:</span>
259 [% ISSUE.date_due | $KohaDates as_due_date => 1 | html %]
263 <td class="date_due">
264 <span title="[% ISSUE.date_due | html %]">
265 <span class="tdlabel">Date due:</span>
266 [% ISSUE.date_due | $KohaDates as_due_date => 1 | html %]
270 [% UNLESS ( item_level_itypes ) %]
272 <span class="tdlabel">Item type:</span>
273 [% IF ( ISSUE.imageurl ) %]
274 <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" />
275 [% END %] [% ISSUE.description | html %]
278 [% IF ( show_barcode ) %]
280 <span class="tdlabel">Barcode:</span>
281 [% ISSUE.barcode | html %]
285 <span class="tdlabel">Call no.:</span>
286 [% ISSUE.itemcallnumber | html %]
288 [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
290 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
291 [% IF ( ISSUE.status ) %]
292 [% IF ( canrenew ) %]
293 <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>
295 [% IF ISSUE.renewalfee > 0 %]
296 <span class="renewalfee">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
298 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
299 [% ELSIF ( ISSUE.on_reserve ) %]
300 Not renewable <span class="renewals">(on hold)</span>
301 [% ELSIF ( ISSUE.too_many ) %]
303 [% ELSIF ( ISSUE.norenew_overdue ) %]
304 Not allowed <span class="renewals">(overdue)</span>
305 [% ELSIF ( ISSUE.auto_too_late ) %]
307 [% ELSIF ISSUE.auto_too_much_oweing %]
308 Automatic renewal failed, you have unpaid fines.
309 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
310 [% ELSIF ISSUE.auto_account_expired %]
311 Automatic renewal failed, your account is expired.
312 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
313 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
315 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
316 [% ELSIF ( ISSUE.too_soon ) %]
317 No renewal before [% ISSUE.soonestrenewdate | html %]
318 <span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
322 [% IF ( OPACFinesTab ) %]
324 <span class="tdlabel">Fines:</span>
325 [% IF ( ISSUE.charges ) %]
326 Yes (Item overdue or lost)
327 [% ELSIF ( ISSUE.rentalfines ) %]
334 [% IF ( OPACMySummaryHTML ) %]
335 <td class="links">[% ISSUE.MySummaryHTML | $raw %]</td>
337 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
339 <input type="text" name="note" data-issue_id="[% ISSUE.issue_id | html %]" data-origvalue="[% ISSUE.note | html %]" value="[% ISSUE.note | html %]" readonly>
340 <a class="btn" name="js_submitnote" id="save_[% ISSUE.issue_id | html %]" style="display:none;">Submit note</a>
341 <a class="btn" name="nonjs_submitnote" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | url %]">Edit / Create note</a>
345 [% END # /FOREACH ISSUES %]
348 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
349 <input type="submit" class="btn" value="Renew selected" />
353 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
354 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
355 <input type="hidden" name="from" value="opac_user" />
356 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
357 [% FOREACH ISSUE IN ISSUES %]
358 <input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" />
360 <input type="submit" class="btn" value="Renew all" />
363 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
365 <table class="table table-bordered table-striped">
366 <tr><td>You have nothing checked out</td></tr>
368 [% END # IF issues_count %]
369 </div> <!-- / .opac-user-checkouts -->
371 [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
372 <div id="opac-user-clubs">
377 [% IF ( OPACFinesTab ) %]
379 [% IF borrower.amountoverfive %]
380 <div id="opac-user-fines"> <h3>Fines and charges</h3>
381 <table class="table table-bordered table-striped">
382 <thead><tr><th colspan="2">Amount</th></tr></thead>
385 <td>You currently owe fines and charges amounting to:</td>
386 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
393 [% IF borrower.amountoverzero %]
394 <div id="opac-user-fines"> <h3>Fines and charges</h3>
395 <table class="table table-bordered table-striped">
396 <thead><tr><th colspan="2">Amount</th></tr></thead>
399 <td>You currently owe fines and charges amounting to:</td>
400 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
407 [% IF borrower.amountlessthanzero %]
408 <div id="opac-user-fines"> <h3>Credits</h3>
409 <table class="table table-bordered table-striped">
410 <thead><tr><th colspan="2">Amount</th></tr></thead>
413 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
419 [% END # / OPACFinesTab %]
422 <div id="opac-user-relative-issues">
423 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
426 <th class="anti-the">Title</th>
430 <th class="psort">Relative</th>
435 [% FOREACH r IN relatives %]
436 [% FOREACH i IN r.issues %]
439 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber | uri %]">
440 [% i.item.biblio.title | html %][% IF ( i.item.enumchron ) %] [% i.item.enumchron | html %][% END %]
445 [% i.date_due | $KohaDates %]
449 [% i.item.barcode | html %]
453 [% i.item.itemcallnumber | html %]
457 [% r.firstname | html %] [% r.surname | html %]
467 [% IF ( overdues_count ) %]
468 <div id="opac-user-overdues">
469 <table id="overduest" class="table table-bordered table-striped">
470 <caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption>
471 <!-- OVERDUES TABLE ROWS -->
474 [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %]
475 <th class="anti-the">Title</th>
476 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
477 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
479 <th class="title-string psort">Due</th>
480 [% IF ( OpacRenewalAllowed ) %]
481 <th class="nosort">Renew</th>
483 [% IF ( OPACFinesTab ) %]
489 [% FOREACH OVERDUE IN OVERDUES %]
491 [% IF ( JacketImages || AdlibrisEnabled ) %]
492 <td class="jacketcell">
493 [% IF ( OPACAmazonCoverImages ) %]
494 [% IF ( OVERDUE.normalized_isbn ) %]
495 <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>
497 <a href="#"><span class="no-image">No cover image available</span></a>
501 [% IF ( GoogleJackets ) %]
502 [% IF ( OVERDUE.normalized_isbn ) %]
503 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
505 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
509 [% IF ( BakerTaylorEnabled ) %]
510 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
512 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
514 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
518 [% IF ( SyndeticsCoverImages ) %]
519 <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" />
522 [% END # /IF jacketcell %]
525 <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 %]
527 <span class="item-details">[% OVERDUE.author | html %]</span></td>
529 [% UNLESS ( item_level_itypes ) %]
531 [% IF ( OVERDUE.imageurl ) %]
532 <img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" />
533 [% END %] [% OVERDUE.description | html %]
536 [% IF ( show_barcode ) %]
538 <span class="tdlabel">Barcode:</span>
539 [% OVERDUE.barcode | html %]
543 <span class="tdlabel">Call no.:</span>
544 [% OVERDUE.itemcallnumber | html %]
547 <span title="[% OVERDUE.date_due | html %]">
548 <span class="tdlabel">Date due:</span>
549 [% OVERDUE.date_due | $KohaDates as_due_date => 1 | html %]
552 [% IF ( OpacRenewalAllowed ) %]
554 [% IF ( OVERDUE.debarred ) %]
556 [% ELSIF ( OVERDUE.status ) %]
557 [% IF ( canrenew ) %]
558 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a>
560 <span class="renewals">([% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining)</span>
561 [% ELSIF ( OVERDUE.norenew_overdue ) %]
562 Not allowed<span class="renewals">(overdue)</span>
563 [% ELSIF ( OVERDUE.onreserve ) %]
570 [% IF ( OPACFinesTab ) %]
572 <span class="tdlabel">Fines:</span>
573 [% IF ( OVERDUE.charges ) %]
584 </div> <!-- / #opac-user-overdues -->
585 [% END # /overdues_count %]
588 [% IF ( RESERVES.count ) %]
589 <div id="opac-user-holds">
590 <table id="holdst" class="table table-bordered table-striped">
591 <caption>Holds <span class="count">([% RESERVES.count | html %] total)</span></caption>
592 <!-- RESERVES TABLE ROWS -->
595 <th class="anti-the">Title</th>
596 [% IF ( showpriority ) %]
597 <th class="title-string">Placed on</th>
599 <th class="psort title-string">Placed on</th>
601 <th class="title-string">Expires on</th>
602 [% UNLESS( singleBranchMode) %]
603 <th>Pick up location</th>
605 [% IF ( showpriority ) %]
606 <th class="psort">Priority</th>
609 [% IF SuspendHoldsOpac %]
610 <th class="nosort" >Suspend</th>
612 <th class="nosort">Modify</th>
616 [% FOREACH RESERVE IN RESERVES %]
617 [% IF ( RESERVE.is_waiting ) %]
618 [% IF ( RESERVE.is_at_destination ) %]
619 [% IF ( RESERVE.is_found ) %]
620 <tr class="reserved">
625 <tr class="transfered">
631 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber | html %]">
632 [% RESERVE.biblio.title | html %]
633 [% FOREACH s IN RESERVE.biblio.subtitles %]
636 [% RESERVE.item.enumchron | html %]
638 [% RESERVE.biblio.author | html %]
640 <td class="reservedate">
641 <span title="[% RESERVE.reservedate | html %]">
642 <span class="tdlabel">Hold date:</span>
643 [% RESERVE.reservedate | $KohaDates %]
646 <td class="expirationdate">
647 [% IF ! RESERVE.found %]
648 [% IF ( RESERVE.expirationdate ) %]
649 <span title="[% RESERVE.expirationdate | html %]">
650 <span class="tdlabel">Expiration:</span>
651 [% RESERVE.expirationdate | $KohaDates %]
654 <span title="0000-00-00">
655 <span class="tdlabel">Expiration:</span>
660 <span title="0000-00-00">-</span>
663 [% UNLESS( singleBranchMode) %]
665 <span class="tdlabel">Pick up location:</span>
666 [% RESERVE.branch.branchname | html %]
669 [% IF ( showpriority ) %]
670 <td data-order="[% RESERVE.priority | html %]" class="priority">
671 <span class="tdlabel">Priority:</span>
672 [% RESERVE.priority | html %]
676 <span class="tdlabel">Status:</span>
677 [% IF ( RESERVE.is_waiting ) %]
678 [% IF ( RESERVE.is_at_destination ) %]
679 [% IF ( RESERVE.found ) %]
680 Item waiting at <b> [% RESERVE.branch.branchname | html %]</b>
681 [% IF ( RESERVE.waitingdate ) %]
682 since [% RESERVE.waitingdate | $KohaDates %]
683 [% IF RESERVE.expirationdate %]
684 until [% RESERVE.expirationdate | $KohaDates %]
687 <input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" />
689 Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b>
692 Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" />
695 [% IF ( RESERVE.is_in_transit ) %]
696 [% SET transfer = RESERVE.item.get_transfer %]
697 Item in transit from <b> [% Branches.GetName( transfer.frombranch ) | html %]</b> since
698 [% transfer.datesent | $KohaDates %]
699 [% ELSIF ( RESERVE.suspend ) %]
700 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | html %] [% END %]
702 [% IF RESERVE.itemtype %]
703 Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) | html %]'
710 [% IF SuspendHoldsOpac %]
712 [% IF ( RESERVE.is_cancelable_from_opac ) %]
713 [% IF RESERVE.suspend %]
714 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
715 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
716 <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-play"></i> Resume</button>
719 [% IF AutoResumeSuspendedHolds %]
720 <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>
721 [% # hold suspend modal form %]
722 <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">
723 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
724 <div class="modal-header">
725 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
726 [% IF RESERVE.suspend %]
727 <h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Resume your hold on <i>[% RESERVE.biblio.title | html %]</i></h3>
729 <h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Suspend your hold on <i>[% RESERVE.biblio.title | html %]</i></h3>
732 <div class="modal-body">
733 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
734 <label for="suspend_until_[% RESERVE.reserve_id | html %]">Suspend until:</label>
735 <input type="text" name="suspend_until" id="suspend_until_[% RESERVE.reserve_id | html %]" class="suspend-until" size="10" />
736 [% INCLUDE 'date-format.inc' %]
737 <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>
738 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
740 <div class="modal-footer">
741 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
742 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
745 </div> <!-- /#suspendModal[% RESERVE.reserve_id | html %] -->
747 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
748 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
749 <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-pause"></i> Suspend</button>
751 [% END # / IF AutoResumeSuspendedHolds %]
752 [% END # / IF RESERVE.suspend %]
753 [% END # / IF ( RESERVE.is_cancelable_from_opac )%]
755 [% END # / IF SuspendHoldsOpac %]
757 [% IF ( RESERVE.is_cancelable_from_opac ) %]
758 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
759 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber | html %]" />
760 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
761 <button type="submit" name="submit" class="btn btn-xs btn-danger" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="fa fa-remove"></i> Cancel</button></form>
765 [% END # /FOREACH RESERVES %]
769 [% IF SuspendHoldsOpac %]
771 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
772 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="fa fa-pause"></i> Suspend all holds</button>
773 <input type="hidden" name="suspend" value="1" />
775 [% IF AutoResumeSuspendedHolds %]
776 <label for="suspend_until"> until </label>
777 <input type="text" name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
778 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
784 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
785 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="fa fa-play"></i> Resume all suspended holds</button>
786 <input type="hidden" name="suspend" value="0" />
790 </div> <!-- / #opac-user-holds -->
791 [% END # / #RESERVES.count %]
793 [% IF Koha.Preference('ArticleRequests') %]
794 <div id="opac-user-article-requests">
795 [% IF logged_in_user.article_requests_current.count %]
796 <table id="article-requests-table" class="table table-bordered table-striped">
797 <caption>Article requests <span class="count">([% logged_in_user.article_requests_current.count | html %] total)</span></caption>
800 <th class="anti-the article-request-record-title">Record title</th>
801 <th class="psort article-request-created-on">Placed on</th>
802 <th class="anti-the article-request-title">Title</th>
803 <th class="article-request-author">Author</th>
804 <th class="article-request-volume">Volume</th>
805 <th class="article-request-issue">Issue</th>
806 <th class="article-request-date">Date</th>
807 <th class="article-request-pages">Pages</th>
808 <th class="article-request-chapters">Chapters</th>
809 <th class="article-request-patron-notes">Notes</th>
810 <th class="article-request-status">Status</th>
811 <th class="article-request-branchcode">Pickup library</th>
812 <th class="nosort article-request-cancel"> </th>
817 [% FOREACH ar IN logged_in_user.article_requests_current %]
818 <td class="article-request-record-title">
819 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]">
820 [% ar.biblio.title | html %]
821 [% ar.item.enumchron | html %]
823 [% ar.biblio.author | html %]
824 [% IF ar.itemnumber %] <i>(only [% ar.item.barcode | html %])</i>[% END %]
827 <td class="article-request-created_on">
828 [% ar.created_on | $KohaDates %]
831 <td class="article-request-title">
832 [% ar.title | html %]
835 <td class="article-request-author">
836 [% ar.author | html %]
839 <td class="article-request-volume">
840 [% ar.volume | html %]
843 <td class="article-request-issue">
844 [% ar.issue | html %]
847 <td class="article-request-date">
851 <td class="article-request-pages">
852 [% ar.pages | html %]
855 <td class="article-request-chapters">
856 [% ar.chapters | html %]
859 <td class="article-request-patron-notes">
860 [% ar.patron_notes | html %]
863 <td class="article-request-status">
864 [% IF ar.status == 'PENDING' %]
866 [% ELSIF ar.status == 'PROCESSING' %]
868 [% ELSIF ar.status == 'COMPLETED' %]
870 [% ELSIF ar.status == 'CANCELED' %]
875 <td class="article-request-branchcode">
876 [% ar.branch.branchname | html %]
879 <td class="article-request-cancel">
880 <span class="tdlabel">Cancel:</span>
881 <a class="btn btn-xs btn-danger" href="opac-article-request-cancel.pl?id=[% ar.id | html %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_ARTREQ);"><i class="fa fa-remove"></i> Cancel</a>
888 <table class="table table-bordered table-striped">
889 <tr><td>You have no article requests currently.</td></tr>
891 [% END # IF article_requests_current.count %]
892 </div> <!-- / #opac-user-article-requests -->
895 </div> <!-- /#opac-user-views -->
896 </div> <!-- /#userdetails -->
897 </div> <!-- /.span10 -->
898 </div> <!-- /.row-fluid -->
899 </div> <!-- /.container-fluid -->
900 </div> <!-- /#main -->
902 [% IF ( OverDriveCirculation ) %]
903 [% INCLUDE 'overdrive-checkout.inc' %]
904 [% IF ( Koha.Preference('OverDrivePasswordRequired') ) %]
905 [% INCLUDE 'overdrive-login.inc' %]
908 [% IF ( RecordedBooksCirculation ) %]
909 [% INCLUDE 'recordedbooks-checkout.inc' %]
912 [% INCLUDE 'opac-bottom.inc' %]
915 [% BLOCK jsinclude %]
916 [% INCLUDE 'calendar.inc' %]
917 [% INCLUDE 'datatables.inc' %]
920 var MSG_CONFIRM_DELETE_ARTREQ = _("Are you sure you want to cancel this article request?");
921 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
922 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
923 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
925 $(document).ready(function(){
926 $('#opac-user-views').tabs();
927 $(".js-show").show();
928 $(".js-hide").hide();
929 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
930 $(".suspend-until").prop("readonly",1);
932 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
933 dTables.each(function(){
934 var thIndex = $(this).find("th.psort").index();
935 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
936 "sorting" : [[ thIndex, 'asc' ]],
938 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
939 { "type": "anti-the", "targets" : [ "anti-the" ] },
940 { "type": "title-string", "targets" : [ "title-string" ] }
945 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
946 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
947 $("#renewselected").submit(function(){
949 $("input[type=checkbox]").each(function(){
950 if($(this).is(':checked')){
955 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
959 $("body").on("click","#renewselected_link",function(e){
961 $("#renewselected").submit();
963 $("body").on("click","#renewall_link",function(e){
965 $("#renewall").submit();
967 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
968 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
972 [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
974 /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
975 $("a[name='nonjs_submitnote']").hide();
977 $("input[name='note']").prop('readonly', false);
978 $("input[name='note']").keypress(function(e){
979 /* prevent submitting of renewselected form */
984 $("input[name='note']").keyup(function(e){
985 var $btn_save = $('#save_'+$(this).data('issue_id'));
986 var origvalue = $(this).data('origvalue');
987 var value = $(this).val();
989 if(origvalue != value) {
991 $btn_save.text(_("Submit changes"));
993 $btn_save.text(_("Submit note"));
1000 $("a[name='js_submitnote']").click(function(e){
1001 var $self = $(this);
1002 var title = $(this).parent().siblings('.title').html();
1003 var $noteinput = $(this).siblings('input[name="note"]').first();
1006 'action': 'issuenote',
1007 'issue_id': $noteinput.data('issue_id'),
1008 'note': $noteinput.val(),
1012 url: '/cgi-bin/koha/svc/checkout_notes/',
1017 .done(function(data) {
1019 if(data.status == 'saved') {
1020 $("#notesaved").removeClass("alert-error");
1021 $("#notesaved").addClass("alert-info");
1022 $noteinput.data('origvalue', data.note);
1023 $noteinput.val(data.note);
1024 message = "<p>" + _("Your note about %s has been saved and sent to the library.").format(title) + "</p>";
1025 message += "<p style=\"font-style:italic;\">" + data.note + "</p>";
1027 } else if(data.status == 'removed') {
1028 $("#notesaved").removeClass("alert-error");
1029 $("#notesaved").addClass("alert-info");
1030 $noteinput.data('origvalue', "");
1032 message = "<p>" + _("Your note about %s was removed.").format(title) + "</p>";
1035 $("#notesaved").removeClass("alert-info");
1036 $("#notesaved").addClass("alert-error");
1037 message = "<p>" + _("Your note about %s could not be saved.").format(title) + "</p>";
1038 message += "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
1040 $("#notesaved").html(message);
1042 .fail(function(data) {
1043 $("#notesaved").removeClass("alert-info");
1044 $("#notesaved").addClass("alert-error");
1045 var message = "<p style=\"font-weight:bold;\">" + _("Something went wrong. The note has not been saved") + "</p>";
1046 $("#notesaved").html(message);
1048 .always(function() {
1049 $("#notesaved").show();
1054 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
1056 if ( $('#opac-user-clubs').length ) {
1057 $('#opac-user-clubs-tab-link').on('click', function() {
1058 $('#opac-user-clubs').text(_("Loading..."));
1059 $('#opac-user-clubs').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% borrowernumber | html %]');
1065 [% IF Koha.Preference('OverDriveCirculation') %]
1066 [% Asset.js("js/overdrive.js") | $raw %]
1068 var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %];
1069 $(document).ready(function() {
1070 [% IF ( overdrive_error ) %]
1071 KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote | html %]");
1074 [% IF ( overdrive_tab ) %]
1075 $("#opac-user-views").tabs("select", "#opac-user-overdrive");
1078 $("#opac-user-overdrive").each( function() {
1079 KOHA.OverDriveCirculation.display_account_details(this);
1084 [% IF RecordedBooksCirculation %]
1085 [% Asset.js("js/recordedbooks.js") | $raw %]
1086 <script type="text/JavaScript">
1087 $(document).ready(function() {
1088 [% IF ( recordedbooks_error ) %]
1089 KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1091 [% IF ( recordedbooks_tab ) %]
1092 $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1094 $("#opac-user-recordedbooks").each( function() {
1095 KOHA.RecordedBooks.display_account_details(this);