4 [% INCLUDE 'doc-head-open.inc' %]
5 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
9 [% INCLUDE 'bodytag.inc' bodyid='opac-user' bodyclass='scrollto' %]
10 [% INCLUDE 'masthead.inc' %]
13 <ul class="breadcrumb">
14 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
15 <li>[% FOREACH BORROWER_INF IN BORROWER_INFO %]<a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]</a>[% END %] <span class="divider">›</span></li>
16 <li><a href="#">Your summary</a></li>
19 <div class="container-fluid">
20 <div class="row-fluid">
23 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
27 <div id="userdetails" class="maincontent">
28 [% IF ( bor_messages ) %]
29 <div class="alert alert-info">
30 <h3>Messages for you</h3>
32 [% FOREACH bor_messages_loo IN bor_messages_loop %]
34 <strong>[% bor_messages_loo.message %]</strong><br>
35 <i>Written on [% bor_messages_loo.message_date | $KohaDates %] by [% bor_messages_loo.branchname %]</i>
39 [% IF ( opacnote ) %]<li>[% opacnote %]</li>[% END %]
42 [% END # / IF bor_messages %]
43 [% FOREACH BORROWER_INF IN BORROWER_INFO %]
44 <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]
47 <p><a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here if you're not [% BORROWER_INF.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]</a></p>
49 [% 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 %]
51 [% IF ( BORROWER_INF.warndeparture ) %]
52 <div class="alert" id="warndeparture">
53 <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% BORROWER_INF.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
54 [% IF ( BORROWER_INF.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
58 [% IF ( BORROWER_INF.warnexpired ) %]
59 <div class="alert" id="warnexpired">
60 <strong>Please note: </strong><span>Your account has expired as of [% BORROWER_INF.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
64 [% IF ( RENEW_ERROR ) %]
65 <div class="dialog alert">
66 <strong>Please note:</strong>
68 Your loan renewal failed because of the following reason(s):
69 [% FOREACH error IN RENEW_ERROR.split('\|') %]
70 [% IF error == 'card_expired' %]
71 Your account has expired. Please contact the library for more information.
72 [% ELSIF error == 'too_many' %]
73 You have renewed this item the maximum number of times allowed.
74 [% ELSIF error == 'on_reserve' %]
75 This item is on hold for another patron.
82 [% IF ( patron_flagged ) %]
85 [% IF ( userdebarred ) %]
86 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen[% IF ( BORROWER_INF.userdebarreddate ) %] until <span id="userdebarred_date">[% BORROWER_INF.userdebarreddate | $KohaDates %]</span>[% END %][% IF ( BORROWER_INF.debarredcomment ) %] with the comment <span id="userdebarred_comment">"[% BORROWER_INF.debarredcomment %]"</span>[% END %]. Usually the reason for freezing an account is old overdues or damage fees. If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please contact the library.</li>
88 [% IF ( BORROWER_INF.gonenoaddress ) %]
89 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date [% UNLESS ( BORROWER_INF.OPACPatronDetails ) %]<a href="/cgi-bin/koha/opac-userupdate.pl">contact information</a>[% ELSE %]contact information[% END %] on file. Please contact the library[% IF ( BORROWER_INF.OPACPatronDetails ) %] or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)[% END %].</li>
91 [% IF ( BORROWER_INF.lost ) %]
92 <li id="lost"><strong>Please note: </strong> Your library card has been marked as lost or stolen. If this is an error, please contact the library.</li>
94 [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %]
95 <li id="renewal_blocked_fines"><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">[% IF renewal_blocked_fines != "0.00" %] more than <span id="renewal_blocked_fines_amount">[% renewal_blocked_fines %]</span> in [% END %] fines</a>, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li>
99 [% END # / IF patron_flagged %]
101 [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
102 [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
104 <div id="opac-user-views" class="toptabs">
106 <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
107 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
108 [% IF ( OPACFinesTab ) %]
109 [% IF ( BORROWER_INF.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
110 [% IF ( BORROWER_INF.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
111 [% IF ( BORROWER_INF.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
113 [% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="#opac-user-waiting">Waiting ([% waiting_count %])</a></li>[% END %][% END %]
114 [% IF ( reserves_count ) %]<li><a href="#opac-user-holds">Holds ([% reserves_count %])</a></li>[% END %]
117 <div id="opac-user-checkouts">
118 [% IF ( issues_count ) %]
119 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
120 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
121 <input type="hidden" name="from" value="opac_user" />
122 <table id="checkoutst" class="table table-bordered table-striped">
123 <caption>[% issues_count %] Item(s) checked out</caption>
126 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
127 <th class="anti-the">Title</th>
128 <th class="title-string psort">Due</th>
129 [% UNLESS ( item_level_itypes ) %]
132 [% IF ( show_barcode ) %]
136 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
137 <th class="nosort">Renew</th>
139 [% IF ( OPACFinesTab ) %]
142 [% IF ( OPACMySummaryHTML ) %]
143 <th class="nosort">Links</th>
148 [% FOREACH ISSUE IN ISSUES %]
149 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
150 [% IF ( JacketImages ) %]<td class="jacketcell">
152 [% IF ( OPACAmazonCoverImages ) %]
153 [% IF ( ISSUE.normalized_isbn ) %]
154 <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>
156 <a href="#"><span class="no-image">No cover image available</span></a>
160 [% IF ( GoogleJackets ) %]
161 [% IF ( ISSUE.normalized_isbn ) %]
162 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
164 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
168 [% IF ( BakerTaylorEnabled ) %]
169 [% IF ( ISSUE.normalized_isbn ) %]
170 <a href="https://[% BakerTaylorBookstoreURL |html %][% ISSUE.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% ISSUE.normalized_isbn %]" /></a>
172 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_isbn! -->
176 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
177 [% IF ( using_https ) %]
178 <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" />
180 <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" />
184 </td>[% END # / IF JacketImages %]
187 <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>
188 <span class="item-details">[% ISSUE.author %]</span>
190 [% IF ( ISSUE.overdue ) %]
191 <td class="date_due overdue">
192 <span title="[% ISSUE.date_due %]">
193 <span class="tdlabel">Date due:</span>
194 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
198 <td class="date_due">
199 <span title="[% ISSUE.date_due %]">
200 <span class="tdlabel">Date due:</span>
201 [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
205 [% UNLESS ( item_level_itypes ) %]
207 <span class="tdlabel">Item type:</span>
208 [% IF ( ISSUE.imageurl ) %]
209 <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
210 [% END %] [% ISSUE.description %]
213 [% IF ( show_barcode ) %]
215 <span class="tdlabel">Barcode:</span>
220 <span class="tdlabel">Call number:</span>
221 [% ISSUE.itemcallnumber %]
223 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
225 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
226 [% IF ( ISSUE.status ) %]
227 [% IF ( canrenew ) %]
228 <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>
230 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
231 [% ELSIF ( ISSUE.too_many ) %]
233 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
235 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
236 [% ELSIF ( ISSUE.too_soon ) %]
237 No renewal before [% ISSUE.soonestrenewdate %]
238 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
239 [% ELSIF ( ISSUE.on_reserve ) %]
240 <span class="renewals">(On hold)</span>
244 [% IF ( OPACFinesTab ) %]
246 <span class="tdlabel">Fines:</span>
247 [% IF ( ISSUE.charges ) %]
254 [% IF ( OPACMySummaryHTML ) %]
255 <td class="links">[% ISSUE.MySummaryHTML %]</td>
258 [% END # /FOREACH ISSUES %]
261 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
262 <input type="submit" class="btn" value="Renew selected" />
266 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
267 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
268 <input type="hidden" name="from" value="opac_user" />
269 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
270 [% FOREACH ISSUE IN ISSUES %]
271 <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
273 <input type="submit" class="btn" value="Renew all" />
277 <table class="table table-bordered table-striped">
278 <tr><td>You have nothing checked out</td></tr>
280 [% END # IF issues_count %]
281 </div> <!-- / .opac-user-checkouts -->
283 [% IF ( OPACFinesTab ) %]
285 [% IF ( BORROWER_INF.amountoverfive ) %]
286 <div id="opac-user-fines"> <h3>Fines and charges</h3>
287 <table class="table table-bordered table-striped">
288 <thead><tr><th colspan="2">Amount</th></tr></thead>
291 <td>You currently owe fines and charges amounting to:</td>
292 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
299 [% IF ( BORROWER_INF.amountoverzero ) %]
300 <div id="opac-user-fines"> <h3>Fines and charges</h3>
301 <table class="table table-bordered table-striped">
302 <thead><tr><th colspan="2">Amount</th></tr></thead>
305 <td>You currently owe fines and charges amounting to:</td>
306 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
313 [% IF ( BORROWER_INF.amountlessthanzero ) %]
314 <div id="opac-user-fines"> <h3>Credits</h3>
315 <table class="table table-bordered table-striped">
316 <thead><tr><th colspan="2">Amount</th></tr></thead>
319 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
325 [% END # / OPACFinesTab %]
327 [% END # / FOREACH BORROWER_INFO %]
329 [% IF ( waiting_count && atdestination ) %]
330 <div id="opac-user-waiting">
331 <table id="waitingt" class="table table-bordered table-striped">
332 <caption>Holds waiting</caption>
335 <th class="anti-the">Title</th>
337 <th>Pick up library</th>
341 [% FOREACH WAITIN IN WAITING %]
343 <td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td>
345 <a class="title" href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]">
346 [% WAITIN.waiting_title %] [% FOREACH subtitl IN WAITIN.subtitle %] [% subtitl.subfield %][% END %]
348 <span class="item-details">
352 <span class="tdlabel">Hold date:</span>
353 [% WAITIN.reservedate | $KohaDates %]</td>
355 [% IF ( WAITIN.atdestination ) %]
356 <strong>Waiting</strong> at [% WAITIN.branch %]
358 In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %]
365 </div> <!-- /#opac-user-waiting -->
366 [% END # waiting_count && atdestination %]
369 [% IF ( overdues_count ) %]
370 <div id="opac-user-overdues">
371 <table id="overduest" class="table table-bordered table-striped">
372 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
373 <!-- OVERDUES TABLE ROWS -->
376 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
377 <th class="anti-the">Title</th>
378 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
379 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
381 <th class="title-string psort">Due</th>
382 [% IF ( OpacRenewalAllowed ) %]
383 <th class="nosort">Renew</th>
385 [% IF ( OPACFinesTab ) %]
391 [% FOREACH OVERDUE IN OVERDUES %]
393 [% IF ( JacketImages ) %]
394 <td class="jacketcell">
395 [% IF ( OPACAmazonCoverImages ) %]
396 [% IF ( OVERDUE.normalized_isbn ) %]
397 <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>
399 <a href="#"><span class="no-image">No cover image available</span></a>
403 [% IF ( GoogleJackets ) %]
404 [% IF ( OVERDUE.normalized_isbn ) %]
405 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
407 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
411 [% IF ( BakerTaylorEnabled ) %]
412 [% IF ( OVERDUE.normalized_isbn ) %]
413 <a href="https://[% BakerTaylorBookstoreURL |html %][% OVERDUE.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% OVERDUE.normalized_isbn %]" /></a>
415 <!-- BakerTaylor needs normalized_isbn! --><span class="no-image">No cover image available</span>
419 [% IF ( SyndeticsCoverImages ) %]
420 [% IF ( using_https ) %]
421 <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" />
423 <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" />
427 [% END # /IF jacketcell %]
430 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]
432 <span class="item-details">[% OVERDUE.author %]</span></td>
434 [% UNLESS ( item_level_itypes ) %]
436 [% IF ( OVERDUE.imageurl ) %]
437 <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
438 [% END %] [% OVERDUE.description %]
441 [% IF ( show_barcode ) %]
443 <span class="tdlabel">Barcode:</span>
444 [% OVERDUE.barcode %]
448 <span class="tdlabel">Call number:</span>
449 [% OVERDUE.itemcallnumber %]
452 <span title="[% OVERDUE.date_due %]">
453 <span class="tdlabel">Date due:</span>
454 [% OVERDUE.date_due | $KohaDates as_due_date => 1 %]
457 [% IF ( OpacRenewalAllowed ) %]
459 [% IF ( OVERDUE.debarred ) %]
461 [% ELSIF ( OVERDUE.status ) %]
462 [% IF ( canrenew ) %]
463 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber %]&bornum=[% OVERDUE.borrowernumber %]">Renew</a>
465 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
466 [% ELSIF ( OVERDUE.onreserve ) %]
473 [% IF ( OPACFinesTab ) %]
475 <span class="tdlabel">Fines:</span>
476 [% IF ( OVERDUE.charges ) %]
487 </div> <!-- / #opac-user-overdues -->
488 [% END # /overdues_count %]
491 [% IF ( reserves_count ) %]
492 <div id="opac-user-holds">
493 <table id="holdst" class="table table-bordered table-striped">
494 <caption>Holds <span class="count">([% reserves_count %] total)</span></caption>
495 <!-- RESERVES TABLE ROWS -->
498 <th class="anti-the">Title</th>
499 <th class="psort">Placed on</th>
501 <th>Pick up location</th>
502 [% IF ( showpriority ) %]
506 [% IF SuspendHoldsOpac %]
507 <th class="nosort" >Suspend</th>
509 <th class="nosort">Modify</th>
513 [% FOREACH RESERVE IN RESERVES %]
514 [% IF ( RESERVE.wait ) %]
515 [% IF ( RESERVE.atdestination ) %]
516 [% IF ( RESERVE.found ) %]
517 <tr class="reserved">
522 <tr class="transfered">
528 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
529 [% RESERVE.reserves_title %]
530 [% FOREACH subtitl IN RESERVE.subtitle %]
531 [% subtitl.subfield %]
533 [% RESERVE.enumchron %]
537 <td class="reservedate">
538 <span title="[% RESERVE.reservedate %]">
539 <span class="tdlabel">Hold date:</span>
540 [% RESERVE.reservedate | $KohaDates %]
543 <td class="expirationdate">
544 [% IF ( RESERVE.expirationdate ) %]
546 <span class="tdlabel">Expiration:</span>
547 [% RESERVE.expirationdate | $KohaDates %]
550 <span class="tdlabel">Expiration:</span>
555 <span class="tdlabel">Pick up location:</span>
558 [% IF ( showpriority ) %]
559 <td class="priority">
560 <span class="tdlabel">Priority:</span>
561 [% RESERVE.priority %]
565 <span class="tdlabel">Status:</span>
566 [% IF ( RESERVE.wait ) %]
567 [% IF ( RESERVE.atdestination ) %]
568 [% IF ( RESERVE.found ) %]
569 Item waiting at <b> [% RESERVE.wbrname %]</b>[% IF ( RESERVE.waitingdate ) %] since [% RESERVE.waitingdate | $KohaDates %][% END %]
570 <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
572 Item waiting to be pulled from <b> [% RESERVE.wbrname %]</b>
575 Item in transit to <b> [% RESERVE.wbrname %]</b> <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
578 [% IF ( RESERVE.intransit ) %]
579 Item in transit from <b> [% RESERVE.frombranch %]</b> since
580 [% RESERVE.datesent | $KohaDates %]
581 [% ELSIF ( RESERVE.suspend ) %]
582 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
588 [% IF SuspendHoldsOpac %]
590 [% IF ( RESERVE.cancelable ) %]
591 [% IF RESERVE.suspend %]
592 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
593 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
594 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
597 [% IF AutoResumeSuspendedHolds %]
598 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
599 [% # hold suspend modal form %]
600 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
601 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
602 <div class="modal-header">
603 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
604 [% IF RESERVE.suspend %]
605 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.reserves_title %]</i></h3>
607 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.reserves_title %]</i></h3>
610 <div class="modal-body">
611 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
612 <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
613 <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
614 [% INCLUDE 'date-format.inc' %]
615 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
616 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
618 <div class="modal-footer">
619 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
620 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
623 </div> <!-- /#suspendModal[% RESERVE.reserve_id %] -->
625 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
626 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
627 <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
629 [% END # / IF AutoResumeSuspendedHolds %]
630 [% END # / IF RESERVE.suspend %]
631 [% END # / IF ( RESERVE.cancelable )%]
633 [% END # / IF SuspendHoldsOpac %]
635 [% IF ( RESERVE.cancelable ) %]
636 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
637 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
638 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
639 <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>
643 [% END # /FOREACH RESERVES %]
647 [% IF SuspendHoldsOpac %]
649 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
650 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
651 <input type="hidden" name="suspend" value="1" />
653 [% IF AutoResumeSuspendedHolds %]
654 <label for="suspend_until"> until </label>
655 <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
656 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
662 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
663 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
664 <input type="hidden" name="suspend" value="0" />
668 </div> <!-- / #opac-user-holds -->
669 [% END # / #reserves_count %]
670 </div> <!-- /#opac-user-views -->
671 </div> <!-- /#userdetails -->
672 </div> <!-- /.span10 -->
673 </div> <!-- /.row-fluid -->
674 </div> <!-- /.container-fluid -->
675 </div> <!-- /#main -->
677 [% INCLUDE 'opac-bottom.inc' %]
680 [% BLOCK jsinclude %]
681 [% INCLUDE 'calendar.inc' %]
682 [% INCLUDE 'datatables.inc' %]
683 <script type="text/JavaScript">
685 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
686 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
687 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
689 $(document).ready(function(){
690 $('#opac-user-views').tabs();
691 $(".js-show").show();
692 $(".js-hide").hide();
693 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
694 $(".suspend-until").prop("readonly",1);
695 var dTables = $("#checkoutst,#holdst,#overduest");
696 dTables.each(function(){
697 var thIndex = $(this).find("th.psort").index();
698 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
699 "aaSorting" : [[ thIndex, 'asc' ]],
701 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
702 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
703 { "sType": "title-string", "aTargets" : [ "title-string" ] }
708 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
709 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
710 $("#renewselected").submit(function(){
712 $("input[type=checkbox]").each(function(){
713 if($(this).is(':checked')){
718 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
722 $("body").on("click","#renewselected_link",function(e){
724 $("#renewselected").submit();
726 $("body").on("click","#renewall_link",function(e){
728 $("#renewall").submit();
730 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
731 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
735 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future