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 <body id="opac-user" class="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 card has expired. Please contact the library for more information.</span>
64 [% IF ( patron_flagged ) %]
67 [% IF ( userdebarred ) %]
68 <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>
70 [% IF ( BORROWER_INF.gonenoaddress ) %]
71 <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>
73 [% IF ( BORROWER_INF.lost ) %]
74 <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>
76 [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %]
77 <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>
81 [% END # / IF patron_flagged %]
83 [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
84 [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
86 <div id="opac-user-views" class="toptabs">
88 <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
89 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
90 [% IF ( OPACFinesTab ) %]
91 [% IF ( BORROWER_INF.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
92 [% IF ( BORROWER_INF.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
93 [% IF ( BORROWER_INF.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% BORROWER_INF.amountoutstanding %])</a></li>[% END %]
95 [% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="#opac-user-waiting">Waiting ([% waiting_count %])</a></li>[% END %][% END %]
96 [% IF ( reserves_count ) %]<li><a href="#opac-user-holds">Holds ([% reserves_count %])</a></li>[% END %]
99 <div id="opac-user-checkouts">
100 [% IF ( issues_count ) %]
101 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
102 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
103 <input type="hidden" name="from" value="opac_user" />
104 <table id="checkoutst" class="table table-bordered table-striped">
105 <caption>[% issues_count %] Item(s) checked out</caption>
108 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
109 <th class="anti-the">Title</th>
110 <th class="title-string psort">Due</th>
111 [% UNLESS ( item_level_itypes ) %]
114 [% IF ( show_barcode ) %]
118 [% IF ( OpacRenewalAllowed ) %]
119 <th class="nosort">Renew</th>
121 [% IF ( OPACFinesTab ) %]
124 [% IF ( OPACMySummaryHTML ) %]
125 <th class="nosort">Links</th>
130 [% FOREACH ISSUE IN ISSUES %]
131 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
132 [% IF ( JacketImages ) %]<td class="jacketcell">
134 [% IF ( OPACAmazonCoverImages ) %]
135 [% IF ( ISSUE.normalized_isbn ) %]
136 <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View at Amazon.com"><img src="http://images.amazon.com/images/P/[% ISSUE.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
138 <a href="#"><span class="no-image">No cover image available</span></a>
142 [% IF ( GoogleJackets ) %]
143 [% IF ( ISSUE.normalized_isbn ) %]
144 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
146 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
150 [% IF ( BakerTaylorEnabled ) %]
151 [% IF ( ISSUE.normalized_isbn ) %]
152 <a href="https://[% BakerTaylorBookstoreURL |html %][% ISSUE.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% ISSUE.normalized_isbn %]" /></a>
154 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_isbn! -->
158 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
159 [% IF ( using_https ) %]
160 <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" />
162 <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" />
166 </td>[% END # / IF JacketImages %]
169 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %]</a> <span class="item-details">[% ISSUE.author %]</span>
171 [% IF ( ISSUE.overdue ) %]
172 <td class="date_due overdue">
173 <span title="[% ISSUE.date_due %]">
174 <span class="tdlabel">Date due:</span>
175 [% ISSUE.date_due | $KohaDates %]
179 <td class="date_due">
180 <span title="[% ISSUE.date_due %]">
181 <span class="tdlabel">Date due:</span>
182 [% ISSUE.date_due | $KohaDates %]
186 [% UNLESS ( item_level_itypes ) %]
188 <span class="tdlabel">Item type:</span>
189 [% IF ( ISSUE.imageurl ) %]
190 <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
191 [% END %] [% ISSUE.description %]
194 [% IF ( show_barcode ) %]
196 <span class="tdlabel">Barcode:</span>
201 <span class="tdlabel">Call number:</span>
202 [% ISSUE.itemcallnumber %]
204 [% IF ( OpacRenewalAllowed ) %]
206 [% IF ( ISSUE.status ) %]
207 [% IF ( canrenew ) %]
208 <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>
210 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
211 [% ELSIF ( ISSUE.too_many ) %]
213 [% ELSIF ( ISSUE.too_soon ) %]
214 No renewal before [% ISSUE.soonestrenewdate %]
215 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
216 [% ELSIF ( ISSUE.on_reserve ) %]
217 <span class="renewals">(On hold)</span>
221 [% IF ( OPACFinesTab ) %]
223 <span class="tdlabel">Fines:</span>
224 [% IF ( ISSUE.charges ) %]
231 [% IF ( OPACMySummaryHTML ) %]
232 <td class="links">[% ISSUE.MySummaryHTML %]</td>
235 [% END # /FOREACH ISSUES %]
238 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
239 <input type="submit" class="btn" value="Renew selected" />
243 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
244 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
245 <input type="hidden" name="from" value="opac_user" />
246 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
247 [% FOREACH ISSUE IN ISSUES %]
248 <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
250 <input type="submit" class="btn" value="Renew all" />
254 <table class="table table-bordered table-striped">
255 <tr><td>You have nothing checked out</td></tr>
257 [% END # IF issues_count %]
258 </div> <!-- / .opac-user-checkouts -->
260 [% IF ( OPACFinesTab ) %]
262 [% IF ( BORROWER_INF.amountoverfive ) %]
263 <div id="opac-user-fines"> <h3>Fines and charges</h3>
264 <table class="table table-bordered table-striped">
265 <thead><tr><th colspan="2">Amount</th></tr></thead>
268 <td>You currently owe fines and charges amounting to:</td>
269 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
276 [% IF ( BORROWER_INF.amountoverzero ) %]
277 <div id="opac-user-fines"> <h3>Fines and charges</h3>
278 <table class="table table-bordered table-striped">
279 <thead><tr><th colspan="2">Amount</th></tr></thead>
282 <td>You currently owe fines and charges amounting to:</td>
283 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
290 [% IF ( BORROWER_INF.amountlessthanzero ) %]
291 <div id="opac-user-fines"> <h3>Credits</h3>
292 <table class="table table-bordered table-striped">
293 <thead><tr><th colspan="2">Amount</th></tr></thead>
296 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
302 [% END # / OPACFinesTab %]
304 [% END # / FOREACH BORROWER_INFO %]
306 [% IF ( waiting_count && atdestination ) %]
307 <div id="opac-user-waiting">
308 <table id="waitingt" class="table table-bordered table-striped">
309 <caption>Holds waiting</caption>
312 <th class="anti-the">Title</th>
314 <th>Pick up library</th>
318 [% FOREACH WAITIN IN WAITING %]
320 <td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td>
322 <a class="title" href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]">
323 [% WAITIN.waiting_title %]
325 <span class="item-details">
329 <span class="tdlabel">Hold date:</span>
330 [% WAITIN.reservedate | $KohaDates %]</td>
332 [% IF ( WAITIN.atdestination ) %]
333 <strong>Waiting</strong> at [% WAITIN.branch %]
335 In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %]
342 </div> <!-- /#opac-user-waiting -->
343 [% END # waiting_count && atdestination %]
346 [% IF ( overdues_count ) %]
347 <div id="opac-user-overdues">
348 <table id="overduest" class="table table-bordered table-striped">
349 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
350 <!-- OVERDUES TABLE ROWS -->
353 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
354 <th class="anti-the">Title</th>
355 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
356 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
358 <th class="title-string psort">Due</th>
359 [% IF ( OpacRenewalAllowed ) %]
360 <th class="nosort">Renew</th>
362 [% IF ( OPACFinesTab ) %]
368 [% FOREACH OVERDUE IN OVERDUES %]
370 [% IF ( JacketImages ) %]
371 <td class="jacketcell">
372 [% IF ( OPACAmazonCoverImages ) %]
373 [% IF ( OVERDUE.normalized_isbn ) %]
374 <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View at Amazon.com"><img src="http://images.amazon.com/images/P/[% OVERDUE.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
376 <a href="#"><span class="no-image">No cover image available</span></a>
380 [% IF ( GoogleJackets ) %]
381 [% IF ( OVERDUE.normalized_isbn ) %]
382 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
384 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
388 [% IF ( BakerTaylorEnabled ) %]
389 [% IF ( OVERDUE.normalized_isbn ) %]
390 <a href="https://[% BakerTaylorBookstoreURL |html %][% OVERDUE.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% OVERDUE.normalized_isbn %]" /></a>
392 <!-- BakerTaylor needs normalized_isbn! --><span class="no-image">No cover image available</span>
396 [% IF ( SyndeticsCoverImages ) %]
397 [% IF ( using_https ) %]
398 <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" />
400 <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" />
404 [% END # /IF jacketcell %]
407 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %]
409 <span class="item-details">[% OVERDUE.author %]</span></td>
411 [% UNLESS ( item_level_itypes ) %]
413 [% IF ( OVERDUE.imageurl ) %]
414 <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
415 [% END %] [% OVERDUE.description %]
418 [% IF ( show_barcode ) %]
420 <span class="tdlabel">Barcode:</span>
421 [% OVERDUE.barcode %]
425 <span class="tdlabel">Call number:</span>
426 [% OVERDUE.itemcallnumber %]
429 <span title="[% OVERDUE.date_due %]">
430 <span class="tdlabel">Date due:</span>
431 [% OVERDUE.date_due | $KohaDates %]
434 [% IF ( OpacRenewalAllowed ) %]
436 [% IF ( OVERDUE.debarred ) %]
438 [% ELSIF ( OVERDUE.status ) %]
439 [% IF ( canrenew ) %]
440 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber %]&bornum=[% OVERDUE.borrowernumber %]">Renew</a>
442 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
443 [% ELSIF ( OVERDUE.onreserve ) %]
450 [% IF ( OPACFinesTab ) %]
452 <span class="tdlabel">Fines:</span>
453 [% IF ( OVERDUE.charges ) %]
464 </div> <!-- / #opac-user-overdues -->
465 [% END # /overdues_count %]
468 [% IF ( reserves_count ) %]
469 <div id="opac-user-holds">
470 <table id="holdst" class="table table-bordered table-striped">
471 <caption>Holds <span class="count">([% reserves_count %] total)</span></caption>
472 <!-- RESERVES TABLE ROWS -->
475 <th class="anti-the">Title</th>
476 <th class="psort">Placed on</th>
478 <th>Pick up location</th>
479 [% IF ( showpriority ) %]
483 [% IF SuspendHoldsOpac %]
484 <th class="nosort" >Suspend</th>
486 <th class="nosort">Modify</th>
490 [% FOREACH RESERVE IN RESERVES %]
491 [% IF ( RESERVE.wait ) %]
492 [% IF ( RESERVE.atdestination ) %]
493 [% IF ( RESERVE.found ) %]
494 <tr class="reserved">
499 <tr class="transfered">
505 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">[% RESERVE.reserves_title %]</a>
508 <td class="reservedate">
509 <span title="[% RESERVE.reservedate %]">
510 <span class="tdlabel">Hold date:</span>
511 [% RESERVE.reservedate | $KohaDates %]
514 <td class="expirationdate">
515 [% IF ( RESERVE.expirationdate ) %]
517 <span class="tdlabel">Expiration:</span>
518 [% RESERVE.expirationdate | $KohaDates %]
521 <span class="tdlabel">Expiration:</span>
526 <span class="tdlabel">Pick up location:</span>
529 [% IF ( showpriority ) %]
530 <td class="priority">
531 <span class="tdlabel">Priority:</span>
532 [% RESERVE.priority %]
536 <span class="tdlabel">Status:</span>
537 [% IF ( RESERVE.wait ) %]
538 [% IF ( RESERVE.atdestination ) %]
539 [% IF ( RESERVE.found ) %]
540 Item waiting at <b> [% RESERVE.wbrname %]</b>[% IF ( RESERVE.waitingdate ) %] since [% RESERVE.waitingdate | $KohaDates %][% END %]
541 <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
543 Item waiting to be pulled from <b> [% RESERVE.wbrname %]</b>
546 Item in transit to <b> [% RESERVE.wbrname %]</b> <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
549 [% IF ( RESERVE.intransit ) %]
550 Item in transit from <b> [% RESERVE.frombranch %]</b> since
551 [% RESERVE.datesent | $KohaDates %]
552 [% ELSIF ( RESERVE.suspend ) %]
553 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
559 [% IF SuspendHoldsOpac %]
561 [% IF ( RESERVE.cancelable ) %]
562 [% IF RESERVE.suspend %]
563 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
564 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
565 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
568 [% IF AutoResumeSuspendedHolds %]
569 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
570 [% # hold suspend modal form %]
571 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
572 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
573 <div class="modal-header">
574 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
575 [% IF RESERVE.suspend %]
576 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.reserves_title %]</i></h3>
578 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.reserves_title %]</i></h3>
581 <div class="modal-body">
582 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
583 <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
584 <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
585 [% INCLUDE 'date-format.inc' %]
586 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
587 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
589 <div class="modal-footer">
590 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
591 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
594 </div> <!-- /#suspendModal[% RESERVE.reserve_id %] -->
596 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
597 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
598 <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
600 [% END # / IF AutoResumeSuspendedHolds %]
601 [% END # / IF RESERVE.suspend %]
602 [% END # / IF ( RESERVE.cancelable )%]
604 [% END # / IF SuspendHoldsOpac %]
606 [% IF ( RESERVE.cancelable ) %]
607 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
608 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
609 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
610 <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>
614 [% END # /FOREACH RESERVES %]
618 [% IF SuspendHoldsOpac %]
620 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
621 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
622 <input type="hidden" name="suspend" value="1" />
624 [% IF AutoResumeSuspendedHolds %]
625 <label for="suspend_until"> until </label>
626 <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
627 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
633 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
634 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
635 <input type="hidden" name="suspend" value="0" />
639 </div> <!-- / #opac-user-holds -->
640 [% END # / #reserves_count %]
641 </div> <!-- /#opac-user-views -->
642 </div> <!-- /#userdetails -->
643 </div> <!-- /.span10 -->
644 </div> <!-- /.row-fluid -->
645 </div> <!-- /.container-fluid -->
646 </div> <!-- /#main -->
648 [% INCLUDE 'opac-bottom.inc' %]
651 [% BLOCK jsinclude %]
652 [% INCLUDE 'calendar.inc' %]
653 [% INCLUDE 'datatables.inc' %]
654 <script type="text/JavaScript">
656 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
657 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
658 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
661 $('#opac-user-views').tabs();
662 $(".js-show").show();
663 $(".js-hide").hide();
664 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
665 $(".suspend-until").prop("readonly",1);
666 var dTables = $("#checkoutst,#holdst,#overduest");
667 dTables.each(function(){
668 var thIndex = $(this).find("th.psort").index();
669 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
670 "aaSorting" : [[ thIndex, 'asc' ]],
672 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
673 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
674 { "sType": "title-string", "aTargets" : [ "title-string" ] }
679 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
680 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
681 $("#renewselected").submit(function(){
683 $("input[type=checkbox]").each(function(){
684 if($(this).is(':checked')){
689 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
693 $("body").on("click","#renewselected_link",function(e){
695 $("#renewselected").submit();
697 $("body").on("click","#renewall_link",function(e){
699 $("#renewall").submit();
701 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
703 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future