4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home</title>
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><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>
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 <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 %]
46 <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>
48 [% 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 <div class="alert alert-info">
53 <p>One or more holds were not placed due to existing holds.</p>
57 [% IF ( BORROWER_INFO.warndeparture ) %]
58 <div class="alert" id="warndeparture">
59 <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>
60 [% IF ( BORROWER_INFO.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
64 [% IF ( BORROWER_INFO.warnexpired ) %]
65 <div class="alert" id="warnexpired">
66 <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>
70 [% IF ( RENEW_ERROR ) %]
71 <div class="dialog alert">
72 <strong>Please note:</strong>
74 Your loan renewal failed because of the following reason(s):
75 [% FOREACH error IN RENEW_ERROR.split('\|') %]
76 [% IF error == 'card_expired' %]
77 Your account has expired. Please contact the library for more information.
78 [% ELSIF error == 'too_many' %]
79 You have renewed this item the maximum number of times allowed.
80 [% ELSIF error == 'on_reserve' %]
81 This item is on hold for another patron.
88 [% IF ( patron_flagged ) %]
91 [% IF ( userdebarred ) %]
92 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen[% IF ( BORROWER_INFO.userdebarreddate ) %] until <span id="userdebarred_date">[% BORROWER_INFO.userdebarreddate | $KohaDates %]</span>[% END %][% IF ( BORROWER_INFO.debarredcomment ) %] with the comment <span id="userdebarred_comment">"[% BORROWER_INFO.debarredcomment %]"</span>[% END %]. Usually the reason for freezing an account is old overdues or damage fees. If <a href="/cgi-bin/koha/opac-account.pl">your account page</a> shows your account to be clear, please contact the library.</li>
94 [% IF ( BORROWER_INFO.gonenoaddress ) %]
95 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date [% UNLESS OPACPatronDetails %]<a href="/cgi-bin/koha/opac-memberentry.pl">contact information</a>[% ELSE %]contact information[% END %] on file. Please contact the library[% IF OPACPatronDetails %] or use the <a href="/cgi-bin/koha/opac-memberentry.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>
97 [% IF ( BORROWER_INFO.lost ) %]
98 <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>
100 [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %]
101 <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>
105 [% END # / IF patron_flagged %]
107 [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
108 [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
110 <div id="opac-user-views" class="toptabs">
112 <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
113 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
114 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
115 [% IF ( OPACFinesTab ) %]
116 [% IF ( BORROWER_INFO.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INFO.amountoutstanding %])</a></li>[% END %]
117 [% IF ( BORROWER_INFO.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INFO.amountoutstanding %])</a></li>[% END %]
118 [% IF ( BORROWER_INFO.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% BORROWER_INFO.amountoutstanding %])</a></li>[% END %]
120 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count %])</a></li>[% END %]
123 <div id="opac-user-checkouts">
124 [% IF ( issues_count ) %]
125 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
126 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
127 <input type="hidden" name="from" value="opac_user" />
128 <table id="checkoutst" class="table table-bordered table-striped">
129 <caption>[% issues_count %] Item(s) checked out</caption>
132 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
133 <th class="anti-the">Title</th>
134 <th class="title-string psort">Due</th>
135 [% UNLESS ( item_level_itypes ) %]
138 [% IF ( show_barcode ) %]
142 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
143 <th class="nosort">Renew</th>
145 [% IF ( OPACFinesTab ) %]
148 [% IF ( OPACMySummaryHTML ) %]
149 <th class="nosort">Links</th>
154 [% FOREACH ISSUE IN ISSUES %]
155 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
156 [% IF ( JacketImages ) %]<td class="jacketcell">
158 [% IF ( OPACAmazonCoverImages ) %]
159 [% IF ( ISSUE.normalized_isbn ) %]
160 <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>
162 <a href="#"><span class="no-image">No cover image available</span></a>
166 [% IF ( GoogleJackets ) %]
167 [% IF ( ISSUE.normalized_isbn ) %]
168 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
170 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
174 [% IF ( BakerTaylorEnabled ) %]
175 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
177 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
179 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
183 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
184 [% IF ( using_https ) %]
185 <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" />
187 <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" />
191 </td>[% END # / IF JacketImages %]
194 <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>
195 <span class="item-details">[% ISSUE.author %]</span>
197 [% IF ( ISSUE.overdue ) %]
198 <td class="date_due overdue">
199 <span title="[% ISSUE.date_due %]">
200 <span class="tdlabel">Date due:</span>
201 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
205 <td class="date_due">
206 <span title="[% ISSUE.date_due %]">
207 <span class="tdlabel">Date due:</span>
208 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
212 [% UNLESS ( item_level_itypes ) %]
214 <span class="tdlabel">Item type:</span>
215 [% IF ( ISSUE.imageurl ) %]
216 <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
217 [% END %] [% ISSUE.description %]
220 [% IF ( show_barcode ) %]
222 <span class="tdlabel">Barcode:</span>
227 <span class="tdlabel">Call no.:</span>
228 [% ISSUE.itemcallnumber %]
230 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
232 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
233 [% IF ( ISSUE.status ) %]
234 [% IF ( canrenew ) %]
235 <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>
237 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
238 [% ELSIF ( ISSUE.too_many ) %]
240 [% ELSIF ( ISSUE.norenew_overdue ) %]
241 Not allowed <span class="renewals">(overdue)</span>
242 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
244 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
245 [% ELSIF ( ISSUE.too_soon ) %]
246 No renewal before [% ISSUE.soonestrenewdate %]
247 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
248 [% ELSIF ( ISSUE.on_reserve ) %]
249 <span class="renewals">(On hold)</span>
253 [% IF ( OPACFinesTab ) %]
255 <span class="tdlabel">Fines:</span>
256 [% IF ( ISSUE.charges ) %]
263 [% IF ( OPACMySummaryHTML ) %]
264 <td class="links">[% ISSUE.MySummaryHTML %]</td>
267 [% END # /FOREACH ISSUES %]
270 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
271 <input type="submit" class="btn" value="Renew selected" />
275 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
276 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
277 <input type="hidden" name="from" value="opac_user" />
278 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
279 [% FOREACH ISSUE IN ISSUES %]
280 <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
282 <input type="submit" class="btn" value="Renew all" />
286 <table class="table table-bordered table-striped">
287 <tr><td>You have nothing checked out</td></tr>
289 [% END # IF issues_count %]
290 </div> <!-- / .opac-user-checkouts -->
292 [% IF ( OPACFinesTab ) %]
294 [% IF BORROWER_INFO.amountoverfive %]
295 <div id="opac-user-fines"> <h3>Fines and charges</h3>
296 <table class="table table-bordered table-striped">
297 <thead><tr><th colspan="2">Amount</th></tr></thead>
300 <td>You currently owe fines and charges amounting to:</td>
301 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
308 [% IF BORROWER_INFO.amountoverzero %]
309 <div id="opac-user-fines"> <h3>Fines and charges</h3>
310 <table class="table table-bordered table-striped">
311 <thead><tr><th colspan="2">Amount</th></tr></thead>
314 <td>You currently owe fines and charges amounting to:</td>
315 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
322 [% IF BORROWER_INFO.amountlessthanzero %]
323 <div id="opac-user-fines"> <h3>Credits</h3>
324 <table class="table table-bordered table-striped">
325 <thead><tr><th colspan="2">Amount</th></tr></thead>
328 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
334 [% END # / OPACFinesTab %]
337 <div id="opac-user-relative-issues">
338 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
341 <th class="anti-the">Title</th>
345 <th class="psort">Relative</th>
350 [% FOREACH r IN relatives %]
351 [% FOREACH i IN r.issues %]
354 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
355 [% i.item.biblio.title %]
360 [% i.date_due | $KohaDates %]
368 [% i.item.itemcallnumber %]
372 [% r.firstname %] [% r.surname %]
382 [% IF ( overdues_count ) %]
383 <div id="opac-user-overdues">
384 <table id="overduest" class="table table-bordered table-striped">
385 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
386 <!-- OVERDUES TABLE ROWS -->
389 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
390 <th class="anti-the">Title</th>
391 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
392 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
394 <th class="title-string psort">Due</th>
395 [% IF ( OpacRenewalAllowed ) %]
396 <th class="nosort">Renew</th>
398 [% IF ( OPACFinesTab ) %]
404 [% FOREACH OVERDUE IN OVERDUES %]
406 [% IF ( JacketImages ) %]
407 <td class="jacketcell">
408 [% IF ( OPACAmazonCoverImages ) %]
409 [% IF ( OVERDUE.normalized_isbn ) %]
410 <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>
412 <a href="#"><span class="no-image">No cover image available</span></a>
416 [% IF ( GoogleJackets ) %]
417 [% IF ( OVERDUE.normalized_isbn ) %]
418 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
420 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
424 [% IF ( BakerTaylorEnabled ) %]
425 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
427 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
429 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
433 [% IF ( SyndeticsCoverImages ) %]
434 [% IF ( using_https ) %]
435 <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" />
437 <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" />
441 [% END # /IF jacketcell %]
444 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]
446 <span class="item-details">[% OVERDUE.author %]</span></td>
448 [% UNLESS ( item_level_itypes ) %]
450 [% IF ( OVERDUE.imageurl ) %]
451 <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
452 [% END %] [% OVERDUE.description %]
455 [% IF ( show_barcode ) %]
457 <span class="tdlabel">Barcode:</span>
458 [% OVERDUE.barcode %]
462 <span class="tdlabel">Call no.:</span>
463 [% OVERDUE.itemcallnumber %]
466 <span title="[% OVERDUE.date_due %]">
467 <span class="tdlabel">Date due:</span>
468 [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %]
471 [% IF ( OpacRenewalAllowed ) %]
473 [% IF ( OVERDUE.debarred ) %]
475 [% ELSIF ( OVERDUE.status ) %]
476 [% IF ( canrenew ) %]
477 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber %]&bornum=[% OVERDUE.borrowernumber %]">Renew</a>
479 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
480 [% ELSIF ( OVERDUE.norenew_overdue ) %]
481 Not allowed<span class="renewals">(overdue)</span>
482 [% ELSIF ( OVERDUE.onreserve ) %]
489 [% IF ( OPACFinesTab ) %]
491 <span class="tdlabel">Fines:</span>
492 [% IF ( OVERDUE.charges ) %]
503 </div> <!-- / #opac-user-overdues -->
504 [% END # /overdues_count %]
507 [% IF ( RESERVES.count ) %]
508 <div id="opac-user-holds">
509 <table id="holdst" class="table table-bordered table-striped">
510 <caption>Holds <span class="count">([% RESERVES.count %] total)</span></caption>
511 <!-- RESERVES TABLE ROWS -->
514 <th class="anti-the">Title</th>
515 <th class="psort">Placed on</th>
517 <th>Pick up location</th>
518 [% IF ( showpriority ) %]
522 [% IF SuspendHoldsOpac %]
523 <th class="nosort" >Suspend</th>
525 <th class="nosort">Modify</th>
529 [% FOREACH RESERVE IN RESERVES %]
530 [% IF ( RESERVE.is_waiting ) %]
531 [% IF ( RESERVE.is_at_destination ) %]
532 [% IF ( RESERVE.is_found ) %]
533 <tr class="reserved">
538 <tr class="transfered">
544 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
545 [% RESERVE.biblio.title %]
546 [% FOREACH s IN RESERVE.biblio.subtitles %]
549 [% RESERVE.item.enumchron %]
551 [% RESERVE.biblio.author %]
553 <td class="reservedate">
554 <span title="[% RESERVE.reservedate %]">
555 <span class="tdlabel">Hold date:</span>
556 [% RESERVE.reservedate | $KohaDates %]
559 <td class="expirationdate">
560 [% IF ! RESERVE.found %]
561 [% IF ( RESERVE.expirationdate ) %]
563 <span class="tdlabel">Expiration:</span>
564 [% RESERVE.expirationdate | $KohaDates %]
567 <span class="tdlabel">Expiration:</span>
575 <span class="tdlabel">Pick up location:</span>
576 [% RESERVE.branch.branchname %]
578 [% IF ( showpriority ) %]
579 <td class="priority">
580 <span class="tdlabel">Priority:</span>
581 [% RESERVE.priority %]
585 <span class="tdlabel">Status:</span>
586 [% IF ( RESERVE.is_waiting ) %]
587 [% IF ( RESERVE.is_at_destination ) %]
588 [% IF ( RESERVE.found ) %]
589 Item waiting at <b> [% RESERVE.branch.branchname %]</b>
590 [% IF ( RESERVE.waitingdate ) %]
591 since [% RESERVE.waitingdate | $KohaDates %]
592 [% IF RESERVE.waiting_expires_on %]
593 until [% RESERVE.waiting_expires_on | $KohaDates %]
596 <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
598 Item waiting to be pulled from <b> [% RESERVE.wbrname %]</b>
601 Item in transit to <b> [% RESERVE.wbrname %]</b> <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
604 [% IF ( RESERVE.is_in_transit ) %]
605 Item in transit from <b> [% RESERVE.frombranch %]</b> since
606 [% RESERVE.datesent | $KohaDates %]
607 [% ELSIF ( RESERVE.suspend ) %]
608 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
614 [% IF SuspendHoldsOpac %]
616 [% IF ( RESERVE.is_cancelable ) %]
617 [% IF RESERVE.suspend %]
618 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
619 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
620 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
623 [% IF AutoResumeSuspendedHolds %]
624 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
625 [% # hold suspend modal form %]
626 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
627 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
628 <div class="modal-header">
629 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
630 [% IF RESERVE.suspend %]
631 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.biblio.title %]</i></h3>
633 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.biblio.title %]</i></h3>
636 <div class="modal-body">
637 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
638 <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
639 <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
640 [% INCLUDE 'date-format.inc' %]
641 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
642 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
644 <div class="modal-footer">
645 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
646 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
649 </div> <!-- /#suspendModal[% RESERVE.reserve_id %] -->
651 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
652 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
653 <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
655 [% END # / IF AutoResumeSuspendedHolds %]
656 [% END # / IF RESERVE.suspend %]
657 [% END # / IF ( RESERVE.is_cancelable )%]
659 [% END # / IF SuspendHoldsOpac %]
661 [% IF ( RESERVE.is_cancelable ) %]
662 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
663 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
664 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
665 <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>
669 [% END # /FOREACH RESERVES %]
673 [% IF SuspendHoldsOpac %]
675 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
676 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
677 <input type="hidden" name="suspend" value="1" />
679 [% IF AutoResumeSuspendedHolds %]
680 <label for="suspend_until"> until </label>
681 <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
682 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
688 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
689 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
690 <input type="hidden" name="suspend" value="0" />
694 </div> <!-- / #opac-user-holds -->
695 [% END # / #RESERVES.count %]
696 </div> <!-- /#opac-user-views -->
697 </div> <!-- /#userdetails -->
698 </div> <!-- /.span10 -->
699 </div> <!-- /.row-fluid -->
700 </div> <!-- /.container-fluid -->
701 </div> <!-- /#main -->
703 [% INCLUDE 'opac-bottom.inc' %]
706 [% BLOCK jsinclude %]
707 [% INCLUDE 'calendar.inc' %]
708 [% INCLUDE 'datatables.inc' %]
709 <script type="text/JavaScript">
711 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
712 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
713 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
715 $(document).ready(function(){
716 $('#opac-user-views').tabs();
717 $(".js-show").show();
718 $(".js-hide").hide();
719 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
720 $(".suspend-until").prop("readonly",1);
722 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
723 dTables.each(function(){
724 var thIndex = $(this).find("th.psort").index();
725 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
726 "aaSorting" : [[ thIndex, 'asc' ]],
728 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
729 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
730 { "sType": "title-string", "aTargets" : [ "title-string" ] }
735 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
736 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
737 $("#renewselected").submit(function(){
739 $("input[type=checkbox]").each(function(){
740 if($(this).is(':checked')){
745 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
749 $("body").on("click","#renewselected_link",function(e){
751 $("#renewselected").submit();
753 $("body").on("click","#renewall_link",function(e){
755 $("#renewall").submit();
757 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
758 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
762 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future