5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
10 [% INCLUDE 'bodytag.inc' bodyid='opac-user' bodyclass='scrollto' %]
11 [% INCLUDE 'masthead.inc' %]
14 <ul class="breadcrumb">
15 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
16 <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>
17 <li><a href="#">Your summary</a></li>
20 <div class="container-fluid">
21 <div class="row-fluid">
24 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
28 <div id="userdetails" class="maincontent">
29 [% IF ( bor_messages ) %]
30 <div class="alert alert-info">
31 <h3>Messages for you</h3>
33 [% FOREACH message IN patron_messages %]
35 <strong>[% message.message %]</strong><br>
36 <i>Written on [% message.message_date | $KohaDates %] by [% Branches.GetName(message.branchcode) %]</i>
40 [% IF ( opacnote ) %]<li>[% opacnote %]</li>[% END %]
44 <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 %]
47 <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>
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 %]
52 <div class="alert alert-info">
54 <p>One or more holds were not placed due to existing holds.</p>
58 [% IF ( BORROWER_INFO.warndeparture ) %]
59 <div class="alert" id="warndeparture">
60 <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>
61 [% IF ( BORROWER_INFO.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
65 [% IF ( BORROWER_INFO.warnexpired ) %]
66 <div class="alert" id="warnexpired">
67 <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>
71 [% IF ( RENEW_ERROR ) %]
72 <div class="dialog alert">
73 <strong>Please note:</strong>
75 Your loan renewal failed because of the following reason(s):
76 [% FOREACH error IN RENEW_ERROR.split('\|') %]
77 [% IF error == 'card_expired' %]
78 Your account has expired. Please contact the library for more information.
79 [% ELSIF error == 'too_many' %]
80 You have renewed this item the maximum number of times allowed.
81 [% ELSIF error == 'on_reserve' %]
82 This item is on hold for another patron.
89 [% IF ( patron_flagged ) %]
92 [% IF ( userdebarred ) %]
93 <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>
95 [% IF ( BORROWER_INFO.gonenoaddress ) %]
96 <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>
98 [% IF ( BORROWER_INFO.lost ) %]
99 <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>
101 [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %]
102 <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>
106 [% END # / IF patron_flagged %]
108 [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
109 [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
111 <div id="opac-user-views" class="toptabs">
113 <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
114 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
115 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
116 [% IF ( OPACFinesTab ) %]
117 [% IF ( BORROWER_INFO.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INFO.amountoutstanding %])</a></li>[% END %]
118 [% IF ( BORROWER_INFO.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INFO.amountoutstanding %])</a></li>[% END %]
119 [% IF ( BORROWER_INFO.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% BORROWER_INFO.amountoutstanding %])</a></li>[% END %]
121 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count %])</a></li>[% END %]
124 <div id="opac-user-checkouts">
125 [% IF ( issues_count ) %]
126 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
127 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
128 <input type="hidden" name="from" value="opac_user" />
129 <table id="checkoutst" class="table table-bordered table-striped">
130 <caption>[% issues_count %] Item(s) checked out</caption>
133 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
134 <th class="anti-the">Title</th>
135 <th class="title-string psort">Due</th>
136 [% UNLESS ( item_level_itypes ) %]
139 [% IF ( show_barcode ) %]
143 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
144 <th class="nosort">Renew</th>
146 [% IF ( OPACFinesTab ) %]
149 [% IF ( OPACMySummaryHTML ) %]
150 <th class="nosort">Links</th>
155 [% FOREACH ISSUE IN ISSUES %]
156 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
157 [% IF ( JacketImages ) %]<td class="jacketcell">
159 [% IF ( OPACAmazonCoverImages ) %]
160 [% IF ( ISSUE.normalized_isbn ) %]
161 <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>
163 <a href="#"><span class="no-image">No cover image available</span></a>
167 [% IF ( GoogleJackets ) %]
168 [% IF ( ISSUE.normalized_isbn ) %]
169 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
171 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
175 [% IF ( BakerTaylorEnabled ) %]
176 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
178 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
180 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
184 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
185 [% IF ( using_https ) %]
186 <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" />
188 <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" />
192 </td>[% END # / IF JacketImages %]
195 <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>
196 <span class="item-details">[% ISSUE.author %]</span>
198 [% IF ( ISSUE.overdue ) %]
199 <td class="date_due overdue">
200 <span title="[% ISSUE.date_due %]">
201 <span class="tdlabel">Date due:</span>
202 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
206 <td class="date_due">
207 <span title="[% ISSUE.date_due %]">
208 <span class="tdlabel">Date due:</span>
209 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
213 [% UNLESS ( item_level_itypes ) %]
215 <span class="tdlabel">Item type:</span>
216 [% IF ( ISSUE.imageurl ) %]
217 <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
218 [% END %] [% ISSUE.description %]
221 [% IF ( show_barcode ) %]
223 <span class="tdlabel">Barcode:</span>
228 <span class="tdlabel">Call no.:</span>
229 [% ISSUE.itemcallnumber %]
231 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
233 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
234 [% IF ( ISSUE.status ) %]
235 [% IF ( canrenew ) %]
236 <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>
238 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
239 [% ELSIF ( ISSUE.too_many ) %]
241 [% ELSIF ( ISSUE.norenew_overdue ) %]
242 Not allowed <span class="renewals">(overdue)</span>
243 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
245 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
246 [% ELSIF ( ISSUE.too_soon ) %]
247 No renewal before [% ISSUE.soonestrenewdate %]
248 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
249 [% ELSIF ( ISSUE.on_reserve ) %]
250 <span class="renewals">(On hold)</span>
254 [% IF ( OPACFinesTab ) %]
256 <span class="tdlabel">Fines:</span>
257 [% IF ( ISSUE.charges ) %]
264 [% IF ( OPACMySummaryHTML ) %]
265 <td class="links">[% ISSUE.MySummaryHTML %]</td>
268 [% END # /FOREACH ISSUES %]
271 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
272 <input type="submit" class="btn" value="Renew selected" />
276 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
277 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
278 <input type="hidden" name="from" value="opac_user" />
279 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
280 [% FOREACH ISSUE IN ISSUES %]
281 <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
283 <input type="submit" class="btn" value="Renew all" />
287 <table class="table table-bordered table-striped">
288 <tr><td>You have nothing checked out</td></tr>
290 [% END # IF issues_count %]
291 </div> <!-- / .opac-user-checkouts -->
293 [% IF ( OPACFinesTab ) %]
295 [% IF BORROWER_INFO.amountoverfive %]
296 <div id="opac-user-fines"> <h3>Fines and charges</h3>
297 <table class="table table-bordered table-striped">
298 <thead><tr><th colspan="2">Amount</th></tr></thead>
301 <td>You currently owe fines and charges amounting to:</td>
302 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
309 [% IF BORROWER_INFO.amountoverzero %]
310 <div id="opac-user-fines"> <h3>Fines and charges</h3>
311 <table class="table table-bordered table-striped">
312 <thead><tr><th colspan="2">Amount</th></tr></thead>
315 <td>You currently owe fines and charges amounting to:</td>
316 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
323 [% IF BORROWER_INFO.amountlessthanzero %]
324 <div id="opac-user-fines"> <h3>Credits</h3>
325 <table class="table table-bordered table-striped">
326 <thead><tr><th colspan="2">Amount</th></tr></thead>
329 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
335 [% END # / OPACFinesTab %]
338 <div id="opac-user-relative-issues">
339 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
342 <th class="anti-the">Title</th>
346 <th class="psort">Relative</th>
351 [% FOREACH r IN relatives %]
352 [% FOREACH i IN r.issues %]
355 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
356 [% i.item.biblio.title %]
361 [% i.date_due | $KohaDates %]
369 [% i.item.itemcallnumber %]
373 [% r.firstname %] [% r.surname %]
383 [% IF ( overdues_count ) %]
384 <div id="opac-user-overdues">
385 <table id="overduest" class="table table-bordered table-striped">
386 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
387 <!-- OVERDUES TABLE ROWS -->
390 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
391 <th class="anti-the">Title</th>
392 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
393 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
395 <th class="title-string psort">Due</th>
396 [% IF ( OpacRenewalAllowed ) %]
397 <th class="nosort">Renew</th>
399 [% IF ( OPACFinesTab ) %]
405 [% FOREACH OVERDUE IN OVERDUES %]
407 [% IF ( JacketImages ) %]
408 <td class="jacketcell">
409 [% IF ( OPACAmazonCoverImages ) %]
410 [% IF ( OVERDUE.normalized_isbn ) %]
411 <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>
413 <a href="#"><span class="no-image">No cover image available</span></a>
417 [% IF ( GoogleJackets ) %]
418 [% IF ( OVERDUE.normalized_isbn ) %]
419 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
421 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
425 [% IF ( BakerTaylorEnabled ) %]
426 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
428 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
430 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
434 [% IF ( SyndeticsCoverImages ) %]
435 [% IF ( using_https ) %]
436 <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" />
438 <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" />
442 [% END # /IF jacketcell %]
445 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]
447 <span class="item-details">[% OVERDUE.author %]</span></td>
449 [% UNLESS ( item_level_itypes ) %]
451 [% IF ( OVERDUE.imageurl ) %]
452 <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
453 [% END %] [% OVERDUE.description %]
456 [% IF ( show_barcode ) %]
458 <span class="tdlabel">Barcode:</span>
459 [% OVERDUE.barcode %]
463 <span class="tdlabel">Call no.:</span>
464 [% OVERDUE.itemcallnumber %]
467 <span title="[% OVERDUE.date_due %]">
468 <span class="tdlabel">Date due:</span>
469 [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %]
472 [% IF ( OpacRenewalAllowed ) %]
474 [% IF ( OVERDUE.debarred ) %]
476 [% ELSIF ( OVERDUE.status ) %]
477 [% IF ( canrenew ) %]
478 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber %]&bornum=[% OVERDUE.borrowernumber %]">Renew</a>
480 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
481 [% ELSIF ( OVERDUE.norenew_overdue ) %]
482 Not allowed<span class="renewals">(overdue)</span>
483 [% ELSIF ( OVERDUE.onreserve ) %]
490 [% IF ( OPACFinesTab ) %]
492 <span class="tdlabel">Fines:</span>
493 [% IF ( OVERDUE.charges ) %]
504 </div> <!-- / #opac-user-overdues -->
505 [% END # /overdues_count %]
508 [% IF ( RESERVES.count ) %]
509 <div id="opac-user-holds">
510 <table id="holdst" class="table table-bordered table-striped">
511 <caption>Holds <span class="count">([% RESERVES.count %] total)</span></caption>
512 <!-- RESERVES TABLE ROWS -->
515 <th class="anti-the">Title</th>
516 <th class="psort">Placed on</th>
518 <th>Pick up location</th>
519 [% IF ( showpriority ) %]
523 [% IF SuspendHoldsOpac %]
524 <th class="nosort" >Suspend</th>
526 <th class="nosort">Modify</th>
530 [% FOREACH RESERVE IN RESERVES %]
531 [% IF ( RESERVE.is_waiting ) %]
532 [% IF ( RESERVE.is_at_destination ) %]
533 [% IF ( RESERVE.is_found ) %]
534 <tr class="reserved">
539 <tr class="transfered">
545 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
546 [% RESERVE.biblio.title %]
547 [% FOREACH s IN RESERVE.biblio.subtitles %]
550 [% RESERVE.item.enumchron %]
552 [% RESERVE.biblio.author %]
554 <td class="reservedate">
555 <span title="[% RESERVE.reservedate %]">
556 <span class="tdlabel">Hold date:</span>
557 [% RESERVE.reservedate | $KohaDates %]
560 <td class="expirationdate">
561 [% IF ! RESERVE.found %]
562 [% IF ( RESERVE.expirationdate ) %]
564 <span class="tdlabel">Expiration:</span>
565 [% RESERVE.expirationdate | $KohaDates %]
568 <span class="tdlabel">Expiration:</span>
576 <span class="tdlabel">Pick up location:</span>
577 [% RESERVE.branch.branchname %]
579 [% IF ( showpriority ) %]
580 <td class="priority">
581 <span class="tdlabel">Priority:</span>
582 [% RESERVE.priority %]
586 <span class="tdlabel">Status:</span>
587 [% IF ( RESERVE.is_waiting ) %]
588 [% IF ( RESERVE.is_at_destination ) %]
589 [% IF ( RESERVE.found ) %]
590 Item waiting at <b> [% RESERVE.branch.branchname %]</b>
591 [% IF ( RESERVE.waitingdate ) %]
592 since [% RESERVE.waitingdate | $KohaDates %]
593 [% IF RESERVE.waiting_expires_on %]
594 until [% RESERVE.waiting_expires_on | $KohaDates %]
597 <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
599 Item waiting to be pulled from <b> [% RESERVE.wbrname %]</b>
602 Item in transit to <b> [% RESERVE.wbrname %]</b> <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
605 [% IF ( RESERVE.is_in_transit ) %]
606 Item in transit from <b> [% RESERVE.frombranch %]</b> since
607 [% RESERVE.datesent | $KohaDates %]
608 [% ELSIF ( RESERVE.suspend ) %]
609 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
615 [% IF SuspendHoldsOpac %]
617 [% IF ( RESERVE.is_cancelable ) %]
618 [% IF RESERVE.suspend %]
619 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
620 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
621 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
624 [% IF AutoResumeSuspendedHolds %]
625 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
626 [% # hold suspend modal form %]
627 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
628 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
629 <div class="modal-header">
630 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
631 [% IF RESERVE.suspend %]
632 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.biblio.title %]</i></h3>
634 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.biblio.title %]</i></h3>
637 <div class="modal-body">
638 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
639 <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
640 <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
641 [% INCLUDE 'date-format.inc' %]
642 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
643 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
645 <div class="modal-footer">
646 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
647 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
650 </div> <!-- /#suspendModal[% RESERVE.reserve_id %] -->
652 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
653 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
654 <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
656 [% END # / IF AutoResumeSuspendedHolds %]
657 [% END # / IF RESERVE.suspend %]
658 [% END # / IF ( RESERVE.is_cancelable )%]
660 [% END # / IF SuspendHoldsOpac %]
662 [% IF ( RESERVE.is_cancelable ) %]
663 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
664 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
665 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
666 <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>
670 [% END # /FOREACH RESERVES %]
674 [% IF SuspendHoldsOpac %]
676 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
677 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
678 <input type="hidden" name="suspend" value="1" />
680 [% IF AutoResumeSuspendedHolds %]
681 <label for="suspend_until"> until </label>
682 <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
683 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
689 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
690 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
691 <input type="hidden" name="suspend" value="0" />
695 </div> <!-- / #opac-user-holds -->
696 [% END # / #RESERVES.count %]
697 </div> <!-- /#opac-user-views -->
698 </div> <!-- /#userdetails -->
699 </div> <!-- /.span10 -->
700 </div> <!-- /.row-fluid -->
701 </div> <!-- /.container-fluid -->
702 </div> <!-- /#main -->
704 [% INCLUDE 'opac-bottom.inc' %]
707 [% BLOCK jsinclude %]
708 [% INCLUDE 'calendar.inc' %]
709 [% INCLUDE 'datatables.inc' %]
710 <script type="text/JavaScript">
712 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
713 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
714 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
716 $(document).ready(function(){
717 $('#opac-user-views').tabs();
718 $(".js-show").show();
719 $(".js-hide").hide();
720 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
721 $(".suspend-until").prop("readonly",1);
723 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
724 dTables.each(function(){
725 var thIndex = $(this).find("th.psort").index();
726 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
727 "aaSorting" : [[ thIndex, 'asc' ]],
729 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
730 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
731 { "sType": "title-string", "aTargets" : [ "title-string" ] }
736 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
737 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
738 $("#renewselected").submit(function(){
740 $("input[type=checkbox]").each(function(){
741 if($(this).is(':checked')){
746 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
750 $("body").on("click","#renewselected_link",function(e){
752 $("#renewselected").submit();
754 $("body").on("click","#renewall_link",function(e){
756 $("#renewall").submit();
758 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %]
759 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
763 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future