7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
12 [% INCLUDE 'bodytag.inc' bodyid='opac-user' bodyclass='scrollto' %]
13 [% INCLUDE 'masthead.inc' %]
16 <ul class="breadcrumb">
17 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
18 <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]</a> <span class="divider">›</span></li>
19 <li><a href="#">Your summary</a></li>
22 <div class="container-fluid">
23 <div class="row-fluid">
26 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
30 <div id="userdetails" class="maincontent">
33 <div id="adminwarning" class="dialog alert">
35 <strong><i class="fa fa-exclamation-triangle"> </i> Warning:</strong>
36 Using this account is not recommended because some parts of Koha will not function as expected. Instead, please log in with a different account.
37 <a class="btn btn-small" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
38 <i class="fa fa-sign-out"> </i> Log out</a>
43 [% INCLUDE 'opac-note.inc' %]
45 <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]
48 <p><a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here if you're not [% BORROWER_INFO.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]</a></p>
50 [% IF ( patronupdate ) %]<div class="alert alert-info"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
53 <div class="alert alert-info">
55 <p>One or more holds were not placed due to existing holds.</p>
59 [% IF ( BORROWER_INFO.warndeparture ) %]
60 <div class="alert" id="warndeparture">
61 <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% BORROWER_INFO.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
62 [% IF ( BORROWER_INFO.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
66 [% IF ( BORROWER_INFO.warnexpired ) %]
67 <div class="alert" id="warnexpired">
68 <strong>Please note: </strong><span>Your account has expired as of [% BORROWER_INFO.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
72 [% IF ( RENEW_ERROR ) %]
73 <div class="dialog alert">
74 <strong>Please note:</strong>
76 Your loan renewal failed because of the following reason(s):
77 [% FOREACH error IN RENEW_ERROR.split('\|') %]
78 [% IF error == 'card_expired' %]
79 Your account has expired. Please contact the library for more information.
80 [% ELSIF error == 'too_many' %]
81 You have renewed this item the maximum number of times allowed.
82 [% ELSIF error == 'too_soon' %]
83 It is too soon after the checkout date for this item to be renewed.
84 [% ELSIF error == 'on_reserve' %]
85 This item is on hold for another patron.
92 [% IF ( patron_flagged ) %]
95 [% IF ( userdebarred ) %]
96 [% IF ( discharge_available ) %]
98 <strong>Please note:</strong> Your account is frozen because it has been discharged. <a href="/cgi-bin/koha/opac-discharge.pl?op=get">Get your discharge</a>
101 <li id="userdebarred"><strong>Please note:</strong> Your account has been frozen.
102 [% IF ( BORROWER_INFO.debarredcomment ) %] Comment: <span id="userdebarred_comment">"[% BORROWER_INFO.debarredcomment %]"</span>[% END %]
103 [% IF ( BORROWER_INFO.userdebarreddate ) %] End date: <span id="userdebarred_date">[% BORROWER_INFO.userdebarreddate | $KohaDates %]</span>[% END %]
104 <em>Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library.</em> <a href="/cgi-bin/koha/opac-account.pl">Go to your account page</a></li>
107 [% IF ( BORROWER_INFO.gonenoaddress ) %]
108 <li id="gonenoaddress"><strong>Please note:</strong> According to our records, we don't have up-to-date contact information. Please contact the library.
109 <a href="/cgi-bin/koha/opac-memberentry.pl">[% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %]</a>
110 [% IF ( Koha.Preference('OPACPatronDetails') ) %]<em>(Please note: there may be a delay in restoring your account if you submit online.)</em>[% END %]
113 [% IF ( BORROWER_INFO.lost ) %]
114 <li id="lost"><strong>Please note: </strong> Your library card has been marked as lost or stolen. <em>If this is an error, please contact the library.</em></li>
116 [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %]
117 <li id="renewal_blocked_fines"><strong>Please note: </strong>You cannot renew your books online. Reason: [% IF ( renewal_blocked_fines ) > 0 %]Your fines exceed <span id="renewal_blocked_fines_amount">[% renewal_blocked_fines | $Price %]</span>.[% ELSE %]You have fines.[% END %]
121 [% END # / IF patron_flagged %]
123 [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
124 [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
126 <div id="opac-user-views" class="toptabs">
128 <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
129 [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
130 [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count %])</a></li>[% END %]
131 [% IF ( OPACFinesTab ) %]
132 [% IF ( BORROWER_INFO.amountoverfive ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
133 [% IF ( BORROWER_INFO.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% amountoutstanding | $Price %])</a></li>[% END %]
134 [% IF ( BORROWER_INFO.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding | $Price %])</a></li>[% END %]
136 [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count %])</a></li>[% END %]
137 [% IF Koha.Preference('ArticleRequests') && borrower.article_requests_current %]<li><a href="#opac-user-article-requests">Article requests ([% borrower.article_requests_current.count %])</a></li>[% END %]
138 [% IF ( OverDriveCirculation ) %]
139 <li><a href="#opac-user-overdrive">OverDrive Account</a></li>
143 <div id="opac-user-overdrive">
145 <div id="opac-user-checkouts">
146 [% IF ( issues_count ) %]
147 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
148 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
149 <input type="hidden" name="from" value="opac_user" />
150 <table id="checkoutst" class="table table-bordered table-striped">
151 <caption>[% issues_count %] Item(s) checked out</caption>
154 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
155 <th class="anti-the">Title</th>
157 <th class="title-string psort">Due</th>
158 [% UNLESS ( item_level_itypes ) %]
161 [% IF ( show_barcode ) %]
165 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
166 <th class="nosort">Renew</th>
168 [% IF ( OPACFinesTab ) %]
171 [% IF ( OPACMySummaryHTML ) %]
172 <th class="nosort">Links</th>
177 [% FOREACH ISSUE IN ISSUES %]
178 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
179 [% IF ( JacketImages ) %]<td class="jacketcell">
181 [% IF ( OPACAmazonCoverImages ) %]
182 [% IF ( ISSUE.normalized_isbn ) %]
183 <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>
185 <a href="#"><span class="no-image">No cover image available</span></a>
189 [% IF ( GoogleJackets ) %]
190 [% IF ( ISSUE.normalized_isbn ) %]
191 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
193 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
197 [% IF ( BakerTaylorEnabled ) %]
198 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
200 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
202 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
206 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
207 [% IF ( using_https ) %]
208 <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" />
210 <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" />
214 </td>[% END # / IF JacketImages %]
217 <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>
218 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
221 <td class="author">[% ISSUE.author %]</td>
222 [% IF ( ISSUE.overdue ) %]
223 <td class="date_due overdue">
224 <span title="[% ISSUE.date_due %]">
225 <span class="tdlabel">Date due:</span>
226 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
230 <td class="date_due">
231 <span title="[% ISSUE.date_due %]">
232 <span class="tdlabel">Date due:</span>
233 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
237 [% UNLESS ( item_level_itypes ) %]
239 <span class="tdlabel">Item type:</span>
240 [% IF ( ISSUE.imageurl ) %]
241 <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
242 [% END %] [% ISSUE.description %]
245 [% IF ( show_barcode ) %]
247 <span class="tdlabel">Barcode:</span>
252 <span class="tdlabel">Call no.:</span>
253 [% ISSUE.itemcallnumber %]
255 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
257 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
258 [% IF ( ISSUE.status ) %]
259 [% IF ( canrenew ) %]
260 <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>
262 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
263 [% ELSIF ( ISSUE.on_reserve ) %]
264 Not renewable <span class="renewals">(on hold)</span>
265 [% ELSIF ( ISSUE.too_many ) %]
267 [% ELSIF ( ISSUE.norenew_overdue ) %]
268 Not allowed <span class="renewals">(overdue)</span>
269 [% ELSIF ( ISSUE.auto_too_late ) %]
271 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
273 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
274 [% ELSIF ( ISSUE.too_soon ) %]
275 No renewal before [% ISSUE.soonestrenewdate %]
276 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
280 [% IF ( OPACFinesTab ) %]
282 <span class="tdlabel">Fines:</span>
283 [% IF ( ISSUE.charges ) %]
284 Yes (Item overdue or lost)
285 [% ELSIF ( ISSUE.rentalfines ) %]
292 [% IF ( OPACMySummaryHTML ) %]
293 <td class="links">[% ISSUE.MySummaryHTML %]</td>
296 [% END # /FOREACH ISSUES %]
299 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
300 <input type="submit" class="btn" value="Renew selected" />
304 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
305 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
306 <input type="hidden" name="from" value="opac_user" />
307 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
308 [% FOREACH ISSUE IN ISSUES %]
309 <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
311 <input type="submit" class="btn" value="Renew all" />
314 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
316 <table class="table table-bordered table-striped">
317 <tr><td>You have nothing checked out</td></tr>
319 [% END # IF issues_count %]
320 </div> <!-- / .opac-user-checkouts -->
322 [% IF ( OPACFinesTab ) %]
324 [% IF BORROWER_INFO.amountoverfive %]
325 <div id="opac-user-fines"> <h3>Fines and charges</h3>
326 <table class="table table-bordered table-striped">
327 <thead><tr><th colspan="2">Amount</th></tr></thead>
330 <td>You currently owe fines and charges amounting to:</td>
331 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
338 [% IF BORROWER_INFO.amountoverzero %]
339 <div id="opac-user-fines"> <h3>Fines and charges</h3>
340 <table class="table table-bordered table-striped">
341 <thead><tr><th colspan="2">Amount</th></tr></thead>
344 <td>You currently owe fines and charges amounting to:</td>
345 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding %]</a></td>
352 [% IF BORROWER_INFO.amountlessthanzero %]
353 <div id="opac-user-fines"> <h3>Credits</h3>
354 <table class="table table-bordered table-striped">
355 <thead><tr><th colspan="2">Amount</th></tr></thead>
358 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding %]</a></td>
364 [% END # / OPACFinesTab %]
367 <div id="opac-user-relative-issues">
368 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
371 <th class="anti-the">Title</th>
375 <th class="psort">Relative</th>
380 [% FOREACH r IN relatives %]
381 [% FOREACH i IN r.issues %]
384 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
385 [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %]
390 [% i.date_due | $KohaDates %]
398 [% i.item.itemcallnumber %]
402 [% r.firstname %] [% r.surname %]
412 [% IF ( overdues_count ) %]
413 <div id="opac-user-overdues">
414 <table id="overduest" class="table table-bordered table-striped">
415 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
416 <!-- OVERDUES TABLE ROWS -->
419 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
420 <th class="anti-the">Title</th>
421 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
422 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
424 <th class="title-string psort">Due</th>
425 [% IF ( OpacRenewalAllowed ) %]
426 <th class="nosort">Renew</th>
428 [% IF ( OPACFinesTab ) %]
434 [% FOREACH OVERDUE IN OVERDUES %]
436 [% IF ( JacketImages ) %]
437 <td class="jacketcell">
438 [% IF ( OPACAmazonCoverImages ) %]
439 [% IF ( OVERDUE.normalized_isbn ) %]
440 <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>
442 <a href="#"><span class="no-image">No cover image available</span></a>
446 [% IF ( GoogleJackets ) %]
447 [% IF ( OVERDUE.normalized_isbn ) %]
448 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
450 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
454 [% IF ( BakerTaylorEnabled ) %]
455 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
457 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
459 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
463 [% IF ( SyndeticsCoverImages ) %]
464 [% IF ( using_https ) %]
465 <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" />
467 <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" />
471 [% END # /IF jacketcell %]
474 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]
476 <span class="item-details">[% OVERDUE.author %]</span></td>
478 [% UNLESS ( item_level_itypes ) %]
480 [% IF ( OVERDUE.imageurl ) %]
481 <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
482 [% END %] [% OVERDUE.description %]
485 [% IF ( show_barcode ) %]
487 <span class="tdlabel">Barcode:</span>
488 [% OVERDUE.barcode %]
492 <span class="tdlabel">Call no.:</span>
493 [% OVERDUE.itemcallnumber %]
496 <span title="[% OVERDUE.date_due %]">
497 <span class="tdlabel">Date due:</span>
498 [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %]
501 [% IF ( OpacRenewalAllowed ) %]
503 [% IF ( OVERDUE.debarred ) %]
505 [% ELSIF ( OVERDUE.status ) %]
506 [% IF ( canrenew ) %]
507 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber %]&bornum=[% OVERDUE.borrowernumber %]">Renew</a>
509 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
510 [% ELSIF ( OVERDUE.norenew_overdue ) %]
511 Not allowed<span class="renewals">(overdue)</span>
512 [% ELSIF ( OVERDUE.onreserve ) %]
519 [% IF ( OPACFinesTab ) %]
521 <span class="tdlabel">Fines:</span>
522 [% IF ( OVERDUE.charges ) %]
533 </div> <!-- / #opac-user-overdues -->
534 [% END # /overdues_count %]
537 [% IF ( RESERVES.count ) %]
538 <div id="opac-user-holds">
539 <table id="holdst" class="table table-bordered table-striped">
540 <caption>Holds <span class="count">([% RESERVES.count %] total)</span></caption>
541 <!-- RESERVES TABLE ROWS -->
544 <th class="anti-the">Title</th>
545 <th class="psort title-string">Placed on</th>
546 <th class="title-string">Expires on</th>
547 <th>Pick up location</th>
548 [% IF ( showpriority ) %]
552 [% IF SuspendHoldsOpac %]
553 <th class="nosort" >Suspend</th>
555 <th class="nosort">Modify</th>
559 [% FOREACH RESERVE IN RESERVES %]
560 [% IF ( RESERVE.is_waiting ) %]
561 [% IF ( RESERVE.is_at_destination ) %]
562 [% IF ( RESERVE.is_found ) %]
563 <tr class="reserved">
568 <tr class="transfered">
574 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
575 [% RESERVE.biblio.title %]
576 [% FOREACH s IN RESERVE.biblio.subtitles %]
579 [% RESERVE.item.enumchron %]
581 [% RESERVE.biblio.author %]
583 <td class="reservedate">
584 <span title="[% RESERVE.reservedate %]">
585 <span class="tdlabel">Hold date:</span>
586 [% RESERVE.reservedate | $KohaDates %]
589 <td class="expirationdate">
590 [% IF ! RESERVE.found %]
591 [% IF ( RESERVE.expirationdate ) %]
592 <span title="[% RESERVE.expirationdate %]">
593 <span class="tdlabel">Expiration:</span>
594 [% RESERVE.expirationdate | $KohaDates %]
597 <span title="0000-00-00">
598 <span class="tdlabel">Expiration:</span>
603 <span title="0000-00-00">-</span>
607 <span class="tdlabel">Pick up location:</span>
608 [% RESERVE.branch.branchname %]
610 [% IF ( showpriority ) %]
611 <td class="priority">
612 <span class="tdlabel">Priority:</span>
613 [% RESERVE.priority %]
617 <span class="tdlabel">Status:</span>
618 [% IF ( RESERVE.is_waiting ) %]
619 [% IF ( RESERVE.is_at_destination ) %]
620 [% IF ( RESERVE.found ) %]
621 Item waiting at <b> [% RESERVE.branch.branchname %]</b>
622 [% IF ( RESERVE.waitingdate ) %]
623 since [% RESERVE.waitingdate | $KohaDates %]
624 [% IF RESERVE.waiting_expires_on %]
625 until [% RESERVE.waiting_expires_on | $KohaDates %]
628 <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
630 Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) %]</b>
633 Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
636 [% IF ( RESERVE.is_in_transit ) %]
637 [% SET transfer = RESERVE.item.get_transfer %]
638 Item in transit from <b> [% Branches.GetName( transfer.frombranch ) %]</b> since
639 [% transfer.datesent | $KohaDates %]
640 [% ELSIF ( RESERVE.suspend ) %]
641 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
643 [% IF RESERVE.itemtype %]
644 Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) %]'
651 [% IF SuspendHoldsOpac %]
653 [% IF ( RESERVE.is_cancelable ) %]
654 [% IF RESERVE.suspend %]
655 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
656 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
657 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
660 [% IF AutoResumeSuspendedHolds %]
661 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
662 [% # hold suspend modal form %]
663 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
664 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
665 <div class="modal-header">
666 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
667 [% IF RESERVE.suspend %]
668 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.biblio.title %]</i></h3>
670 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.biblio.title %]</i></h3>
673 <div class="modal-body">
674 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
675 <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
676 <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
677 [% INCLUDE 'date-format.inc' %]
678 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
679 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
681 <div class="modal-footer">
682 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
683 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
686 </div> <!-- /#suspendModal[% RESERVE.reserve_id %] -->
688 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
689 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
690 <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
692 [% END # / IF AutoResumeSuspendedHolds %]
693 [% END # / IF RESERVE.suspend %]
694 [% END # / IF ( RESERVE.is_cancelable )%]
696 [% END # / IF SuspendHoldsOpac %]
698 [% IF ( RESERVE.is_cancelable ) %]
699 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
700 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
701 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
702 <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>
706 [% END # /FOREACH RESERVES %]
710 [% IF SuspendHoldsOpac %]
712 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
713 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
714 <input type="hidden" name="suspend" value="1" />
716 [% IF AutoResumeSuspendedHolds %]
717 <label for="suspend_until"> until </label>
718 <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
719 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
725 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
726 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
727 <input type="hidden" name="suspend" value="0" />
731 </div> <!-- / #opac-user-holds -->
732 [% END # / #RESERVES.count %]
734 [% IF Koha.Preference('ArticleRequests') %]
735 <div id="opac-user-article-requests">
736 [% IF borrower.article_requests_current.count %]
737 <table id="article-requests-table" class="table table-bordered table-striped">
738 <caption>Article requests <span class="count">([% borrower.article_requests_current.count %] total)</span></caption>
741 <th class="anti-the article-request-record-title">Record title</th>
742 <th class="psort article-request-created-on">Placed on</th>
743 <th class="anti-the article-request-title">Title</th>
744 <th class="article-request-author">Author</th>
745 <th class="article-request-volume">Volume</th>
746 <th class="article-request-issue">Issue</th>
747 <th class="article-request-date">Date</th>
748 <th class="article-request-pages">Pages</th>
749 <th class="article-request-chapters">Chapters</th>
750 <th class="article-request-patron-notes">Notes</th>
751 <th class="article-request-status">Status</th>
752 <th class="article-request-branchcode">Pickup library</th>
753 <th class="nosort article-request-cancel"> </th>
758 [% FOREACH ar IN borrower.article_requests_current %]
759 <td class="article-request-record-title">
760 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber %]">
761 [% ar.biblio.title %]
762 [% ar.item.enumchron %]
764 [% ar.biblio.author %]
765 [% IF ar.itemnumber %] <i>(only [% ar.item.barcode %])</i>[% END %]
768 <td class="article-request-created_on">
769 [% ar.created_on | $KohaDates %]
772 <td class="article-request-title">
776 <td class="article-request-author">
780 <td class="article-request-volume">
784 <td class="article-request-issue">
788 <td class="article-request-date">
792 <td class="article-request-pages">
796 <td class="article-request-chapters">
800 <td class="article-request-patron-notes">
801 [% ar.patron_notes %]
804 <td class="article-request-status">
805 [% IF ar.status == 'PENDING' %]
807 [% ELSIF ar.status == 'PROCESSING' %]
809 [% ELSIF ar.status == 'COMPLETED' %]
811 [% ELSIF ar.status == 'CANCELED' %]
816 <td class="article-request-branchcode">
817 [% ar.branch.branchname %]
820 <td class="article-request-cancel">
821 <span class="tdlabel">Cancel:</span>
822 <a class="btn btn-mini btn-danger" href="opac-article-request-cancel.pl?id=[% ar.id %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="icon-remove icon-white"></i> Cancel</a>
823 <!-- TODO: replace MSG_CONFIRM_DELETE_HOLD with correct message -->
830 <table class="table table-bordered table-striped">
831 <tr><td>You have no article requests currently.</td></tr>
833 [% END # IF article_requests_current.count %]
834 </div> <!-- / #opac-user-article-requests -->
837 </div> <!-- /#opac-user-views -->
838 </div> <!-- /#userdetails -->
839 </div> <!-- /.span10 -->
840 </div> <!-- /.row-fluid -->
841 </div> <!-- /.container-fluid -->
842 </div> <!-- /#main -->
844 [% IF ( OverDriveCirculation ) %]
845 [% INCLUDE 'overdrive-checkout.inc' %]
848 [% INCLUDE 'opac-bottom.inc' %]
851 [% BLOCK jsinclude %]
852 [% INCLUDE 'calendar.inc' %]
853 [% INCLUDE 'datatables.inc' %]
854 <script type="text/JavaScript">
856 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
857 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
858 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
860 $(document).ready(function(){
861 $('#opac-user-views').tabs();
862 $(".js-show").show();
863 $(".js-hide").hide();
864 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
865 $(".suspend-until").prop("readonly",1);
867 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
868 dTables.each(function(){
869 var thIndex = $(this).find("th.psort").index();
870 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
871 "aaSorting" : [[ thIndex, 'asc' ]],
873 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
874 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
875 { "sType": "title-string", "aTargets" : [ "title-string" ] }
880 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
881 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
882 $("#renewselected").submit(function(){
884 $("input[type=checkbox]").each(function(){
885 if($(this).is(':checked')){
890 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
894 $("body").on("click","#renewselected_link",function(e){
896 $("#renewselected").submit();
898 $("body").on("click","#renewall_link",function(e){
900 $("#renewall").submit();
902 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
903 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
907 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
911 [% IF Koha.Preference('OverDriveCirculation') %]
912 <script type="text/javascript" src="[% interface %]//[% theme %]/js/overdrive.js"></script>
913 <script type="text/JavaScript">
914 $(document).ready(function() {
915 [% IF ( overdrive_error ) %]
916 KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote %]");
919 [% IF ( overdrive_tab ) %]
920 $("#opac-user-views").tabs("select", "#opac-user-overdrive");
923 $("#opac-user-overdrive").each( function() {
924 KOHA.OverDriveCirculation.display_account_details(this);