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 ([% BORROWER_INFO.amountoutstanding | $Price %])</a></li>[% END %]
133 [% IF ( BORROWER_INFO.amountoverzero ) %]<li><a href="#opac-user-fines">Fines ([% BORROWER_INFO.amountoutstanding | $Price %])</a></li>[% END %]
134 [% IF ( BORROWER_INFO.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits ([% BORROWER_INFO.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 %]
140 <div id="opac-user-checkouts">
141 [% IF ( issues_count ) %]
142 <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
143 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
144 <input type="hidden" name="from" value="opac_user" />
145 <table id="checkoutst" class="table table-bordered table-striped">
146 <caption>[% issues_count %] Item(s) checked out</caption>
149 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
150 <th class="anti-the">Title</th>
151 <th class="title-string psort">Due</th>
152 [% UNLESS ( item_level_itypes ) %]
155 [% IF ( show_barcode ) %]
159 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
160 <th class="nosort">Renew</th>
162 [% IF ( OPACFinesTab ) %]
165 [% IF ( OPACMySummaryHTML ) %]
166 <th class="nosort">Links</th>
171 [% FOREACH ISSUE IN ISSUES %]
172 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
173 [% IF ( JacketImages ) %]<td class="jacketcell">
175 [% IF ( OPACAmazonCoverImages ) %]
176 [% IF ( ISSUE.normalized_isbn ) %]
177 <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>
179 <a href="#"><span class="no-image">No cover image available</span></a>
183 [% IF ( GoogleJackets ) %]
184 [% IF ( ISSUE.normalized_isbn ) %]
185 <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
187 <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
191 [% IF ( BakerTaylorEnabled ) %]
192 [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
194 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
196 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
200 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
201 [% IF ( using_https ) %]
202 <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" />
204 <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" />
208 </td>[% END # / IF JacketImages %]
211 <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>
212 [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
213 <span class="item-details">[% ISSUE.author %]</span>
215 [% IF ( ISSUE.overdue ) %]
216 <td class="date_due overdue">
217 <span title="[% ISSUE.date_due %]">
218 <span class="tdlabel">Date due:</span>
219 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
223 <td class="date_due">
224 <span title="[% ISSUE.date_due %]">
225 <span class="tdlabel">Date due:</span>
226 [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
230 [% UNLESS ( item_level_itypes ) %]
232 <span class="tdlabel">Item type:</span>
233 [% IF ( ISSUE.imageurl ) %]
234 <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
235 [% END %] [% ISSUE.description %]
238 [% IF ( show_barcode ) %]
240 <span class="tdlabel">Barcode:</span>
245 <span class="tdlabel">Call no.:</span>
246 [% ISSUE.itemcallnumber %]
248 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
250 [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
251 [% IF ( ISSUE.status ) %]
252 [% IF ( canrenew ) %]
253 <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>
255 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
256 [% ELSIF ( ISSUE.on_reserve ) %]
257 Not renewable <span class="renewals">(on hold)</span>
258 [% ELSIF ( ISSUE.too_many ) %]
260 [% ELSIF ( ISSUE.norenew_overdue ) %]
261 Not allowed <span class="renewals">(overdue)</span>
262 [% ELSIF ( ISSUE.auto_too_late ) %]
264 [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
266 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
267 [% ELSIF ( ISSUE.too_soon ) %]
268 No renewal before [% ISSUE.soonestrenewdate %]
269 <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
273 [% IF ( OPACFinesTab ) %]
275 <span class="tdlabel">Fines:</span>
276 [% IF ( ISSUE.charges ) %]
283 [% IF ( OPACMySummaryHTML ) %]
284 <td class="links">[% ISSUE.MySummaryHTML %]</td>
287 [% END # /FOREACH ISSUES %]
290 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
291 <input type="submit" class="btn" value="Renew selected" />
295 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
296 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
297 <input type="hidden" name="from" value="opac_user" />
298 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
299 [% FOREACH ISSUE IN ISSUES %]
300 <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
302 <input type="submit" class="btn" value="Renew all" />
305 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
307 <table class="table table-bordered table-striped">
308 <tr><td>You have nothing checked out</td></tr>
310 [% END # IF issues_count %]
311 </div> <!-- / .opac-user-checkouts -->
313 [% IF ( OPACFinesTab ) %]
315 [% IF BORROWER_INFO.amountoverfive %]
316 <div id="opac-user-fines"> <h3>Fines and charges</h3>
317 <table class="table table-bordered table-striped">
318 <thead><tr><th colspan="2">Amount</th></tr></thead>
321 <td>You currently owe fines and charges amounting to:</td>
322 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding | $Price %]</a></td>
329 [% IF BORROWER_INFO.amountoverzero %]
330 <div id="opac-user-fines"> <h3>Fines and charges</h3>
331 <table class="table table-bordered table-striped">
332 <thead><tr><th colspan="2">Amount</th></tr></thead>
335 <td>You currently owe fines and charges amounting to:</td>
336 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
343 [% IF BORROWER_INFO.amountlessthanzero %]
344 <div id="opac-user-fines"> <h3>Credits</h3>
345 <table class="table table-bordered table-striped">
346 <thead><tr><th colspan="2">Amount</th></tr></thead>
349 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INFO.amountoutstanding %]</a></td>
355 [% END # / OPACFinesTab %]
358 <div id="opac-user-relative-issues">
359 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
362 <th class="anti-the">Title</th>
366 <th class="psort">Relative</th>
371 [% FOREACH r IN relatives %]
372 [% FOREACH i IN r.issues %]
375 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
376 [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %]
381 [% i.date_due | $KohaDates %]
389 [% i.item.itemcallnumber %]
393 [% r.firstname %] [% r.surname %]
403 [% IF ( overdues_count ) %]
404 <div id="opac-user-overdues">
405 <table id="overduest" class="table table-bordered table-striped">
406 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
407 <!-- OVERDUES TABLE ROWS -->
410 [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %]
411 <th class="anti-the">Title</th>
412 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
413 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
415 <th class="title-string psort">Due</th>
416 [% IF ( OpacRenewalAllowed ) %]
417 <th class="nosort">Renew</th>
419 [% IF ( OPACFinesTab ) %]
425 [% FOREACH OVERDUE IN OVERDUES %]
427 [% IF ( JacketImages ) %]
428 <td class="jacketcell">
429 [% IF ( OPACAmazonCoverImages ) %]
430 [% IF ( OVERDUE.normalized_isbn ) %]
431 <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>
433 <a href="#"><span class="no-image">No cover image available</span></a>
437 [% IF ( GoogleJackets ) %]
438 [% IF ( OVERDUE.normalized_isbn ) %]
439 <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
441 <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
445 [% IF ( BakerTaylorEnabled ) %]
446 [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
448 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
450 <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
454 [% IF ( SyndeticsCoverImages ) %]
455 [% IF ( using_https ) %]
456 <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" />
458 <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" />
462 [% END # /IF jacketcell %]
465 <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]
467 <span class="item-details">[% OVERDUE.author %]</span></td>
469 [% UNLESS ( item_level_itypes ) %]
471 [% IF ( OVERDUE.imageurl ) %]
472 <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
473 [% END %] [% OVERDUE.description %]
476 [% IF ( show_barcode ) %]
478 <span class="tdlabel">Barcode:</span>
479 [% OVERDUE.barcode %]
483 <span class="tdlabel">Call no.:</span>
484 [% OVERDUE.itemcallnumber %]
487 <span title="[% OVERDUE.date_due %]">
488 <span class="tdlabel">Date due:</span>
489 [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %]
492 [% IF ( OpacRenewalAllowed ) %]
494 [% IF ( OVERDUE.debarred ) %]
496 [% ELSIF ( OVERDUE.status ) %]
497 [% IF ( canrenew ) %]
498 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber %]&bornum=[% OVERDUE.borrowernumber %]">Renew</a>
500 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
501 [% ELSIF ( OVERDUE.norenew_overdue ) %]
502 Not allowed<span class="renewals">(overdue)</span>
503 [% ELSIF ( OVERDUE.onreserve ) %]
510 [% IF ( OPACFinesTab ) %]
512 <span class="tdlabel">Fines:</span>
513 [% IF ( OVERDUE.charges ) %]
524 </div> <!-- / #opac-user-overdues -->
525 [% END # /overdues_count %]
528 [% IF ( RESERVES.count ) %]
529 <div id="opac-user-holds">
530 <table id="holdst" class="table table-bordered table-striped">
531 <caption>Holds <span class="count">([% RESERVES.count %] total)</span></caption>
532 <!-- RESERVES TABLE ROWS -->
535 <th class="anti-the">Title</th>
536 <th class="psort">Placed on</th>
538 <th>Pick up location</th>
539 [% IF ( showpriority ) %]
543 [% IF SuspendHoldsOpac %]
544 <th class="nosort" >Suspend</th>
546 <th class="nosort">Modify</th>
550 [% FOREACH RESERVE IN RESERVES %]
551 [% IF ( RESERVE.is_waiting ) %]
552 [% IF ( RESERVE.is_at_destination ) %]
553 [% IF ( RESERVE.is_found ) %]
554 <tr class="reserved">
559 <tr class="transfered">
565 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
566 [% RESERVE.biblio.title %]
567 [% FOREACH s IN RESERVE.biblio.subtitles %]
570 [% RESERVE.item.enumchron %]
572 [% RESERVE.biblio.author %]
574 <td class="reservedate">
575 <span title="[% RESERVE.reservedate %]">
576 <span class="tdlabel">Hold date:</span>
577 [% RESERVE.reservedate | $KohaDates %]
580 <td class="expirationdate">
581 [% IF ! RESERVE.found %]
582 [% IF ( RESERVE.expirationdate ) %]
584 <span class="tdlabel">Expiration:</span>
585 [% RESERVE.expirationdate | $KohaDates %]
588 <span class="tdlabel">Expiration:</span>
596 <span class="tdlabel">Pick up location:</span>
597 [% RESERVE.branch.branchname %]
599 [% IF ( showpriority ) %]
600 <td class="priority">
601 <span class="tdlabel">Priority:</span>
602 [% RESERVE.priority %]
606 <span class="tdlabel">Status:</span>
607 [% IF ( RESERVE.is_waiting ) %]
608 [% IF ( RESERVE.is_at_destination ) %]
609 [% IF ( RESERVE.found ) %]
610 Item waiting at <b> [% RESERVE.branch.branchname %]</b>
611 [% IF ( RESERVE.waitingdate ) %]
612 since [% RESERVE.waitingdate | $KohaDates %]
613 [% IF RESERVE.waiting_expires_on %]
614 until [% RESERVE.waiting_expires_on | $KohaDates %]
617 <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
619 Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) %]</b>
622 Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
625 [% IF ( RESERVE.is_in_transit ) %]
626 [% SET transfer = RESERVE.item.get_transfer %]
627 Item in transit from <b> [% Branches.GetName( transfer.frombranch ) %]</b> since
628 [% transfer.datesent | $KohaDates %]
629 [% ELSIF ( RESERVE.suspend ) %]
630 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
632 [% IF RESERVE.itemtype %]
633 Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) %]'
640 [% IF SuspendHoldsOpac %]
642 [% IF ( RESERVE.is_cancelable ) %]
643 [% IF RESERVE.suspend %]
644 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
645 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
646 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
649 [% IF AutoResumeSuspendedHolds %]
650 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
651 [% # hold suspend modal form %]
652 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
653 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
654 <div class="modal-header">
655 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
656 [% IF RESERVE.suspend %]
657 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.biblio.title %]</i></h3>
659 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.biblio.title %]</i></h3>
662 <div class="modal-body">
663 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
664 <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
665 <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
666 [% INCLUDE 'date-format.inc' %]
667 <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
668 <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
670 <div class="modal-footer">
671 <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
672 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
675 </div> <!-- /#suspendModal[% RESERVE.reserve_id %] -->
677 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
678 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
679 <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
681 [% END # / IF AutoResumeSuspendedHolds %]
682 [% END # / IF RESERVE.suspend %]
683 [% END # / IF ( RESERVE.is_cancelable )%]
685 [% END # / IF SuspendHoldsOpac %]
687 [% IF ( RESERVE.is_cancelable ) %]
688 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
689 <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
690 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
691 <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>
695 [% END # /FOREACH RESERVES %]
699 [% IF SuspendHoldsOpac %]
701 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
702 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
703 <input type="hidden" name="suspend" value="1" />
705 [% IF AutoResumeSuspendedHolds %]
706 <label for="suspend_until"> until </label>
707 <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
708 <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
714 <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
715 <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
716 <input type="hidden" name="suspend" value="0" />
720 </div> <!-- / #opac-user-holds -->
721 [% END # / #RESERVES.count %]
723 [% IF Koha.Preference('ArticleRequests') && borrower.article_requests_current.count %]
724 <div id="opac-user-article-requests">
725 <table id="article-requests-table" class="table table-bordered table-striped">
726 <caption>Article requests <span class="count">([% borrower.article_requests_current.count %] total)</span></caption>
729 <th class="anti-the article-request-record-title">Record title</th>
730 <th class="psort article-request-created-on">Placed on</th>
731 <th class="anti-the article-request-title">Title</th>
732 <th class="article-request-author">Author</th>
733 <th class="article-request-volume">Volume</th>
734 <th class="article-request-issue">Issue</th>
735 <th class="article-request-date">Date</th>
736 <th class="article-request-pages">Pages</th>
737 <th class="article-request-chapters">Chapters</th>
738 <th class="article-request-patron-notes">Notes</th>
739 <th class="article-request-status">Status</th>
740 <th class="article-request-branchcode">Pickup library</th>
741 <th class="nosort article-request-cancel"> </th>
746 [% FOREACH ar IN borrower.article_requests_current %]
747 <td class="article-request-record-title">
748 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber %]">
749 [% ar.biblio.title %]
750 [% ar.item.enumchron %]
752 [% ar.biblio.author %]
753 [% IF ar.itemnumber %] <i>(only [% ar.item.barcode %])</i>[% END %]
756 <td class="article-request-created_on">
757 [% ar.created_on | $KohaDates %]
760 <td class="article-request-title">
764 <td class="article-request-author">
768 <td class="article-request-volume">
772 <td class="article-request-issue">
776 <td class="article-request-date">
780 <td class="article-request-pages">
784 <td class="article-request-chapters">
788 <td class="article-request-patron-notes">
789 [% ar.patron_notes %]
792 <td class="article-request-status">
793 [% IF ar.status == 'PENDING' %]
795 [% ELSIF ar.status == 'PROCESSING' %]
797 [% ELSIF ar.status == 'COMPLETED' %]
799 [% ELSIF ar.status == 'CANCELED' %]
804 <td class="article-request-branchcode">
805 [% ar.branch.branchname %]
808 <td class="article-request-cancel">
809 <span class="tdlabel">Cancel:</span>
810 <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>
811 <!-- TODO: replace MSG_CONFIRM_DELETE_HOLD with correct message -->
817 </div> <!-- / #opac-user-article-requests -->
820 </div> <!-- /#opac-user-views -->
821 </div> <!-- /#userdetails -->
822 </div> <!-- /.span10 -->
823 </div> <!-- /.row-fluid -->
824 </div> <!-- /.container-fluid -->
825 </div> <!-- /#main -->
827 [% INCLUDE 'opac-bottom.inc' %]
830 [% BLOCK jsinclude %]
831 [% INCLUDE 'calendar.inc' %]
832 [% INCLUDE 'datatables.inc' %]
833 <script type="text/JavaScript">
835 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
836 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
837 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
839 $(document).ready(function(){
840 $('#opac-user-views').tabs();
841 $(".js-show").show();
842 $(".js-hide").hide();
843 $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
844 $(".suspend-until").prop("readonly",1);
846 var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
847 dTables.each(function(){
848 var thIndex = $(this).find("th.psort").index();
849 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
850 "aaSorting" : [[ thIndex, 'asc' ]],
852 { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
853 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
854 { "sType": "title-string", "aTargets" : [ "title-string" ] }
859 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
860 [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
861 $("#renewselected").submit(function(){
863 $("input[type=checkbox]").each(function(){
864 if($(this).is(':checked')){
869 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
873 $("body").on("click","#renewselected_link",function(e){
875 $("#renewselected").submit();
877 $("body").on("click","#renewall_link",function(e){
879 $("#renewall").submit();
881 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
882 $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
886 $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future