7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
12 [% INCLUDE 'bodytag.inc' bodyid='opac-user' bodyclass='scrollto' %]
13 [% INCLUDE 'masthead.inc' %]
16 <ul class="breadcrumb">
17 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
18 <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]</a> <span class="divider">›</span></li>
19 <li><a href="#">Your summary</a></li>
22 <div class="container-fluid">
23 <div class="row-fluid">
26 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
30 <div id="userdetails" class="maincontent">
33 <div id="adminwarning" class="dialog alert">
35 <strong><i class="fa fa-exclamation-triangle"> </i> Warning:</strong>
36 Using this account is not recommended because some parts of Koha will not function as expected. Instead, please log in with a different account.
37 <a class="btn btn-small" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
38 <i class="fa fa-sign-out"> </i> Log out</a>
43 [% INCLUDE 'opac-note.inc' %]
45 <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]
48 <p><a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here if you're not [% BORROWER_INFO.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]</a></p>
50 [% 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 %]
53 <div class="alert alert-info">
55 <p>One or more holds were not placed due to existing holds.</p>
59 [% IF ( BORROWER_INFO.warndeparture ) %]
60 <div class="alert" id="warndeparture">
61 <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% BORROWER_INFO.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
62 [% IF ( BORROWER_INFO.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
66 [% IF ( BORROWER_INFO.warnexpired ) %]
67 <div class="alert" id="warnexpired">
68 <strong>Please note: </strong><span>Your account has expired as of [% BORROWER_INFO.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
72 [% IF ( RENEW_ERROR ) %]
73 <div class="dialog alert">
74 <strong>Please note:</strong>
76 Your loan renewal failed because of the following reason(s):
77 [% FOREACH error IN RENEW_ERROR.split('\|') %]
78 [% IF error == 'card_expired' %]
79 Your account has expired. Please contact the library for more information.
80 [% ELSIF error == 'too_many' %]
81 You have renewed this item the maximum number of times allowed.
82 [% ELSIF error == 'too_soon' %]
83 It is too soon after the checkout date for this item to be renewed.
84 [% ELSIF error == 'on_reserve' %]
85 This item is on hold for another borrower.
92 [% IF ( patron_flagged ) %]
95 [% IF ( userdebarred ) %]
96 [% IF ( discharge_available ) %]
98 <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>
101 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
102 [% IF ( BORROWER_INFO.debarredcomment ) %] Comment: <span id="userdebarred_comment">"[% BORROWER_INFO.debarredcomment %]"</span>[% END %]
103 [% IF ( BORROWER_INFO.userdebarreddate ) %] End date: <span id="userdebarred_date">[% BORROWER_INFO.userdebarreddate | $KohaDates %]</span>[% END %]
104 <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>
107 [% IF ( BORROWER_INFO.gonenoaddress ) %]
108 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
109 <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
110 [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
113 [% IF ( BORROWER_INFO.lost ) %]
114 <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>
116 [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
117 <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 %]
121 [% END # / IF patron_flagged %]
123 [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
124 [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
126 <div id="opac-user-views" class="toptabs">
128 <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
129 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
130 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
131 [% IF ( OPACFinesTab ) %]
132 [% IF ( BORROWER_INFO.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
133 [% IF ( BORROWER_INFO.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
134 [% IF ( BORROWER_INFO.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding | $Price %])</a></li>[% END %]
137 [% IF borrower.get_club_enrollments.size || borrower.get_enrollable_clubs(1).size %]
139 <a id="opac-user-clubs-tab-link" href="#opac-user-clubs">
140 Clubs ([% borrower.get_club_enrollments.size %]/[% borrower.get_enrollable_clubs(1).size || 0 %])
145 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count %])</a></li>[% END %]
146 [% IF Koha.Preference('ArticleRequests') && borrower.article_requests_current %]<li><a href="#opac-user-article-requests">Article requests ([% borrower.article_requests_current.count %])</a></li>[% END %]
147 [% IF ( OverDriveCirculation ) %]
148 <li><a href="#opac-user-overdrive">OverDrive Account</a></li>
152 <div id="opac-user-overdrive">
154 <div id="opac-user-checkouts">
155 [% IF ( issues_count ) %]
156 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
157 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
158 <input type="hidden" name="from" value="opac_user" />
159 <table id="checkoutst" class="table table-bordered table-striped">
160 <caption>[% issues_count %] Item(s) checked out</caption>
163 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
164 <th class="anti-the">Title</th>
165 <th class="title-string psort">Due</th>
166 [% UNLESS ( item_level_itypes ) %]
169 [% IF ( show_barcode ) %]
173 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
174 <th class="nosort">Renew</th>
176 [% IF ( OPACFinesTab ) %]
179 [% IF ( OPACMySummaryHTML ) %]
180 <th class="nosort">Links</th>
185 [% FOREACH ISSUE IN ISSUES %]
186 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
187 [% IF ( JacketImages ) %]<td class="jacketcell">
189 [% IF ( OPACAmazonCoverImages ) %]
190 [% IF ( ISSUE.normalized_isbn ) %]
191 <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
193 <a href="#"><span class="no-image">No cover image available</span></a>
197 [% IF ( GoogleJackets ) %]
198 [% IF ( ISSUE.normalized_isbn ) %]
199 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
201 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
205 [% IF ( BakerTaylorEnabled ) %]
206 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
208 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
210 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
214 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
215 [% IF ( using_https ) %]
216 <img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% ISSUE.normalized_upc %]&oclc=[% ISSUE.normalized_oclc %]" alt="" class="item-thumbnail" />
218 <img src="http://www.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% ISSUE.normalized_upc %]&oclc=[% ISSUE.normalized_oclc %]" alt="" class="item-thumbnail" />
222 </td>[% END # / IF JacketImages %]
225 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %]</a>
226 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
227 <span class="item-details">[% ISSUE.author %]</span>
229 [% IF ( ISSUE.overdue ) %]
230 <td class="date_due overdue">
231 <span title="[% ISSUE.date_due %]">
232 <span class="tdlabel">Date due:</span>
233 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
237 <td class="date_due">
238 <span title="[% ISSUE.date_due %]">
239 <span class="tdlabel">Date due:</span>
240 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
244 [% UNLESS ( item_level_itypes ) %]
246 <span class="tdlabel">Item type:</span>
247 [% IF ( ISSUE.imageurl ) %]
248 <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
249 [% END %] [% ISSUE.description %]
252 [% IF ( show_barcode ) %]
254 <span class="tdlabel">Barcode:</span>
259 <span class="tdlabel">Call no.:</span>
260 [% ISSUE.itemcallnumber %]
262 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
264 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
265 [% IF ( ISSUE.status ) %]
266 [% IF ( canrenew ) %]
267 <input type="checkbox" name="item" value="[% ISSUE.itemnumber %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% ISSUE.itemnumber %]&borrowernumber=[% ISSUE.borrowernumber %]">Renew</a>
269 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
270 [% ELSIF ( ISSUE.on_reserve ) %]
271 Not renewable <span class="renewals">(on hold)</span>
272 [% ELSIF ( ISSUE.too_many ) %]
274 [% ELSIF ( ISSUE.norenew_overdue ) %]
275 Not allowed <span class="renewals">(overdue)</span>
276 [% ELSIF ( ISSUE.auto_too_late ) %]
278 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
280 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
281 [% ELSIF ( ISSUE.too_soon ) %]
282 No renewal before [% ISSUE.soonestrenewdate %]
283 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
287 [% IF ( OPACFinesTab ) %]
289 <span class="tdlabel">Fines:</span>
290 [% IF ( ISSUE.charges ) %]
297 [% IF ( OPACMySummaryHTML ) %]
298 <td class="links">[% ISSUE.MySummaryHTML %]</td>
301 [% END # /FOREACH ISSUES %]
304 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
305 <input type="submit" class="btn" value="Renew selected" />
309 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
310 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
311 <input type="hidden" name="from" value="opac_user" />
312 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
313 [% FOREACH ISSUE IN ISSUES %]
314 <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
316 <input type="submit" class="btn" value="Renew all" />
319 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
321 <table class="table table-bordered table-striped">
322 <tr><td>You have nothing checked out</td></tr>
324 [% END # IF issues_count %]
325 </div> <!-- / .opac-user-checkouts -->
327 [% IF borrower.get_club_enrollments_count.size || borrower.get_enrollable_clubs(1).size %]
328 <div id="opac-user-clubs">
333 [% IF ( OPACFinesTab ) %]
335 [% IF BORROWER_INFO.amountoverfive %]
336 <div id="opac-user-fines"> <h3>Fines and charges</h3>
337 <table class="table table-bordered table-striped">
338 <thead><tr><th colspan="2">Amount</th></tr></thead>
341 <td>You currently owe fines and charges amounting to:</td>
342 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
349 [% IF BORROWER_INFO.amountoverzero %]
350 <div id="opac-user-fines"> <h3>Fines and charges</h3>
351 <table class="table table-bordered table-striped">
352 <thead><tr><th colspan="2">Amount</th></tr></thead>
355 <td>You currently owe fines and charges amounting to:</td>
356 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding %]</a></td>
363 [% IF BORROWER_INFO.amountlessthanzero %]
364 <div id="opac-user-fines"> <h3>Credits</h3>
365 <table class="table table-bordered table-striped">
366 <thead><tr><th colspan="2">Amount</th></tr></thead>
369 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding %]</a></td>
375 [% END # / OPACFinesTab %]
378 <div id="opac-user-relative-issues">
379 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
382 <th class="anti-the">Title</th>
386 <th class="psort">Relative</th>
391 [% FOREACH r IN relatives %]
392 [% FOREACH i IN r.issues %]
395 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
396 [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %]
401 [% i.date_due | $KohaDates %]
409 [% i.item.itemcallnumber %]
413 [% r.firstname %] [% r.surname %]
423 [% IF ( overdues_count ) %]
424 <div id="opac-user-overdues">
425 <table id="overduest" class="table table-bordered table-striped">
426 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
427 <!-- OVERDUES TABLE ROWS -->
430 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
431 <th class="anti-the">Title</th>
432 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
433 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
435 <th class="title-string psort">Due</th>
436 [% IF ( OpacRenewalAllowed ) %]
437 <th class="nosort">Renew</th>
439 [% IF ( OPACFinesTab ) %]
445 [% FOREACH OVERDUE IN OVERDUES %]
447 [% IF ( JacketImages ) %]
448 <td class="jacketcell">
449 [% IF ( OPACAmazonCoverImages ) %]
450 [% IF ( OVERDUE.normalized_isbn ) %]
451 <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
453 <a href="#"><span class="no-image">No cover image available</span></a>
457 [% IF ( GoogleJackets ) %]
458 [% IF ( OVERDUE.normalized_isbn ) %]
459 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
461 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
465 [% IF ( BakerTaylorEnabled ) %]
466 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
468 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
470 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
474 [% IF ( SyndeticsCoverImages ) %]
475 [% IF ( using_https ) %]
476 <img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&upc=[% OVERDUE.normalized_upc %]&oclc=[% OVERDUE.normalized_oclc %]&type=xw10" alt="" class="item-thumbnail" />
478 <img src="http://www.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&upc=[% OVERDUE.normalized_upc %]&oclc=[% OVERDUE.normalized_oclc %]&type=xw10" alt="" class="item-thumbnail" />
482 [% END # /IF jacketcell %]
485 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]
487 <span class="item-details">[% OVERDUE.author %]</span></td>
489 [% UNLESS ( item_level_itypes ) %]
491 [% IF ( OVERDUE.imageurl ) %]
492 <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
493 [% END %] [% OVERDUE.description %]
496 [% IF ( show_barcode ) %]
498 <span class="tdlabel">Barcode:</span>
499 [% OVERDUE.barcode %]
503 <span class="tdlabel">Call no.:</span>
504 [% OVERDUE.itemcallnumber %]
507 <span title="[% OVERDUE.date_due %]">
508 <span class="tdlabel">Date due:</span>
509 [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %]
512 [% IF ( OpacRenewalAllowed ) %]
514 [% IF ( OVERDUE.debarred ) %]
516 [% ELSIF ( OVERDUE.status ) %]
517 [% IF ( canrenew ) %]
518 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber %]&bornum=[% OVERDUE.borrowernumber %]">Renew</a>
520 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
521 [% ELSIF ( OVERDUE.norenew_overdue ) %]
522 Not allowed<span class="renewals">(overdue)</span>
523 [% ELSIF ( OVERDUE.onreserve ) %]
530 [% IF ( OPACFinesTab ) %]
532 <span class="tdlabel">Fines:</span>
533 [% IF ( OVERDUE.charges ) %]
544 </div> <!-- / #opac-user-overdues -->
545 [% END # /overdues_count %]
548 [% IF ( RESERVES.count ) %]
549 <div id="opac-user-holds">
550 <table id="holdst" class="table table-bordered table-striped">
551 <caption>Holds <span class="count">([% RESERVES.count %] total)</span></caption>
552 <!-- RESERVES TABLE ROWS -->
555 <th class="anti-the">Title</th>
556 <th class="psort">Placed on</th>
558 <th>Pick up location</th>
559 [% IF ( showpriority ) %]
563 [% IF SuspendHoldsOpac %]
564 <th class="nosort" >Suspend</th>
566 <th class="nosort">Modify</th>
570 [% FOREACH RESERVE IN RESERVES %]
571 [% IF ( RESERVE.is_waiting ) %]
572 [% IF ( RESERVE.is_at_destination ) %]
573 [% IF ( RESERVE.is_found ) %]
574 <tr class="reserved">
579 <tr class="transfered">
585 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
586 [% RESERVE.biblio.title %]
587 [% FOREACH s IN RESERVE.biblio.subtitles %]
590 [% RESERVE.item.enumchron %]
592 [% RESERVE.biblio.author %]
594 <td class="reservedate">
595 <span title="[% RESERVE.reservedate %]">
596 <span class="tdlabel">Hold date:</span>
597 [% RESERVE.reservedate | $KohaDates %]
600 <td class="expirationdate">
601 [% IF ! RESERVE.found %]
602 [% IF ( RESERVE.expirationdate ) %]
604 <span class="tdlabel">Expiration:</span>
605 [% RESERVE.expirationdate | $KohaDates %]
608 <span class="tdlabel">Expiration:</span>
616 <span class="tdlabel">Pick up location:</span>
617 [% RESERVE.branch.branchname %]
619 [% IF ( showpriority ) %]
620 <td class="priority">
621 <span class="tdlabel">Priority:</span>
622 [% RESERVE.priority %]
626 <span class="tdlabel">Status:</span>
627 [% IF ( RESERVE.is_waiting ) %]
628 [% IF ( RESERVE.is_at_destination ) %]
629 [% IF ( RESERVE.found ) %]
630 Item waiting at <b> [% RESERVE.branch.branchname %]</b>
631 [% IF ( RESERVE.waitingdate ) %]
632 since [% RESERVE.waitingdate | $KohaDates %]
633 [% IF RESERVE.waiting_expires_on %]
634 until [% RESERVE.waiting_expires_on | $KohaDates %]
637 <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
639 Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) %]</b>
642 Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
645 [% IF ( RESERVE.is_in_transit ) %]
646 [% SET transfer = RESERVE.item.get_transfer %]
647 Item in transit from <b> [% Branches.GetName( transfer.frombranch ) %]</b> since
648 [% transfer.datesent | $KohaDates %]
649 [% ELSIF ( RESERVE.suspend ) %]
650 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
652 [% IF RESERVE.itemtype %]
653 Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) %]'
660 [% IF SuspendHoldsOpac %]
662 [% IF ( RESERVE.is_cancelable ) %]
663 [% IF RESERVE.suspend %]
664 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
665 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
666 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
669 [% IF AutoResumeSuspendedHolds %]
670 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
671 [% # hold suspend modal form %]
672 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
673 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
674 <div class="modal-header">
675 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
676 [% IF RESERVE.suspend %]
677 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.biblio.title %]</i></h3>
679 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.biblio.title %]</i></h3>
682 <div class="modal-body">
683 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
684 <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
685 <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
686 [% INCLUDE 'date-format.inc' %]
687 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
688 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
690 <div class="modal-footer">
691 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
692 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
695 </div> <!-- /#suspendModal[% RESERVE.reserve_id %] -->
697 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
698 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
699 <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
701 [% END # / IF AutoResumeSuspendedHolds %]
702 [% END # / IF RESERVE.suspend %]
703 [% END # / IF ( RESERVE.is_cancelable )%]
705 [% END # / IF SuspendHoldsOpac %]
707 [% IF ( RESERVE.is_cancelable ) %]
708 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
709 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
710 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
711 <button type="submit" name="submit" class="btn btn-mini btn-danger" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="icon-remove icon-white"></i> Cancel</button></form>
715 [% END # /FOREACH RESERVES %]
719 [% IF SuspendHoldsOpac %]
721 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
722 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
723 <input type="hidden" name="suspend" value="1" />
725 [% IF AutoResumeSuspendedHolds %]
726 <label for="suspend_until"> until </label>
727 <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
728 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
734 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
735 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
736 <input type="hidden" name="suspend" value="0" />
740 </div> <!-- / #opac-user-holds -->
741 [% END # / #RESERVES.count %]
743 [% IF Koha.Preference('ArticleRequests') && borrower.article_requests_current.count %]
744 <div id="opac-user-article-requests">
745 <table id="article-requests-table" class="table table-bordered table-striped">
746 <caption>Article requests <span class="count">([% borrower.article_requests_current.count %] total)</span></caption>
749 <th class="anti-the article-request-record-title">Record title</th>
750 <th class="psort article-request-created-on">Placed on</th>
751 <th class="anti-the article-request-title">Title</th>
752 <th class="article-request-author">Author</th>
753 <th class="article-request-volume">Volume</th>
754 <th class="article-request-issue">Issue</th>
755 <th class="article-request-date">Date</th>
756 <th class="article-request-pages">Pages</th>
757 <th class="article-request-chapters">Chapters</th>
758 <th class="article-request-patron-notes">Notes</th>
759 <th class="article-request-status">Status</th>
760 <th class="article-request-branchcode">Pickup library</th>
761 <th class="nosort article-request-cancel"> </th>
766 [% FOREACH ar IN borrower.article_requests_current %]
767 <td class="article-request-record-title">
768 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber %]">
769 [% ar.biblio.title %]
770 [% ar.item.enumchron %]
772 [% ar.biblio.author %]
773 [% IF ar.itemnumber %] <i>(only [% ar.item.barcode %])</i>[% END %]
776 <td class="article-request-created_on">
777 [% ar.created_on | $KohaDates %]
780 <td class="article-request-title">
784 <td class="article-request-author">
788 <td class="article-request-volume">
792 <td class="article-request-issue">
796 <td class="article-request-date">
800 <td class="article-request-pages">
804 <td class="article-request-chapters">
808 <td class="article-request-patron-notes">
809 [% ar.patron_notes %]
812 <td class="article-request-status">
813 [% IF ar.status == 'PENDING' %]
815 [% ELSIF ar.status == 'PROCESSING' %]
817 [% ELSIF ar.status == 'COMPLETED' %]
819 [% ELSIF ar.status == 'CANCELED' %]
824 <td class="article-request-branchcode">
825 [% ar.branch.branchname %]
828 <td class="article-request-cancel">
829 <span class="tdlabel">Cancel:</span>
830 <a class="btn btn-mini btn-danger" href="opac-article-request-cancel.pl?id=[% ar.id %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="icon-remove icon-white"></i> Cancel</a>
831 <!-- TODO: replace MSG_CONFIRM_DELETE_HOLD with correct message -->
837 </div> <!-- / #opac-user-article-requests -->
840 </div> <!-- /#opac-user-views -->
841 </div> <!-- /#userdetails -->
842 </div> <!-- /.span10 -->
843 </div> <!-- /.row-fluid -->
844 </div> <!-- /.container-fluid -->
845 </div> <!-- /#main -->
847 [% IF ( OverDriveCirculation ) %]
848 [% INCLUDE 'overdrive-checkout.inc' %]
851 [% INCLUDE 'opac-bottom.inc' %]
854 [% BLOCK jsinclude %]
855 [% INCLUDE 'calendar.inc' %]
856 [% INCLUDE 'datatables.inc' %]
857 <script type="text/JavaScript">
859 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
860 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
861 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
863 $(document).ready(function(){
864 $('#opac-user-views').tabs();
865 $(".js-show").show();
866 $(".js-hide").hide();
867 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
868 $(".suspend-until").prop("readonly",1);
870 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
871 dTables.each(function(){
872 var thIndex = $(this).find("th.psort").index();
873 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
874 "aaSorting" : [[ thIndex, 'asc' ]],
876 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
877 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
878 { "sType": "title-string", "aTargets" : [ "title-string" ] }
883 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
884 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
885 $("#renewselected").submit(function(){
887 $("input[type=checkbox]").each(function(){
888 if($(this).is(':checked')){
893 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
897 $("body").on("click","#renewselected_link",function(e){
899 $("#renewselected").submit();
901 $("body").on("click","#renewall_link",function(e){
903 $("#renewall").submit();
905 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
906 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
910 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
912 if ( $('#opac-user-clubs').length ) {
913 $('#opac-user-clubs-tab-link').on('click', function() {
914 $('#opac-user-clubs').text(_("Loading..."));
915 $('#opac-user-clubs').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% borrowernumber %]');
921 <script type="text/javascript" src="[% interface %]//[% theme %]/js/overdrive.js"></script>
922 <script type="text/JavaScript">
923 $(document).ready(function() {
924 [% IF ( overdrive_error ) %]
925 KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote %]");
927 [% IF ( overdrive_tab ) %]
928 $("#opac-user-views").tabs("select", "#opac-user-overdrive");
930 $("#opac-user-overdrive").each( function() {
931 KOHA.OverDriveCirculation.display_account_details(this);