Bug 18160 - Error when OverDriveCirculation not enabled
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-user.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE Branches %]
4 [% USE ItemTypes %]
5 [% USE Price %]
6
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your library home</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
11 </head>
12 [% INCLUDE 'bodytag.inc' bodyid='opac-user' bodyclass='scrollto' %]
13 [% INCLUDE 'masthead.inc' %]
14
15 <div class="main">
16     <ul class="breadcrumb">
17         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</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">&rsaquo;</span></li>
19         <li><a href="#">Your summary</a></li>
20     </ul>
21
22     <div class="container-fluid">
23         <div class="row-fluid">
24             <div class="span2">
25                 <div id="navigation">
26                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
27                 </div>
28             </div>
29             <div class="span10">
30                 <div id="userdetails" class="maincontent">
31
32                     [% IF adminWarning %]
33                         <div id="adminwarning" class="dialog alert">
34                             <p>
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>
39                             </p>
40                         </div>
41                     [% END %]
42
43                     [% INCLUDE 'opac-note.inc' %]
44
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 %]
46                     </h2>
47
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>
49
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 %]
51
52                     [% IF failed_holds %]
53                         <div class="alert alert-info">
54                             <h3>Notice:</h3>
55                             <p>One or more holds were not placed due to existing holds.</p>
56                         </div>
57                     [% END %]
58
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 %]
63                         </div>
64                     [% END %]
65
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>
69                         </div>
70                     [% END %]
71
72                     [% IF ( RENEW_ERROR ) %]
73                         <div class="dialog alert">
74                             <strong>Please note:</strong>
75                             <span>
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.
86                                     [% END %]
87                                 [% END %]
88                             </span>
89                         </div>
90                     [% END %]
91
92                     [% IF ( patron_flagged ) %]
93                         <div class="alert">
94                             <ul>
95                                 [% IF ( userdebarred ) %]
96                                     [% IF ( discharge_available ) %]
97                                         <li id="discharged">
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>
99                                         </li>
100                                     [% ELSE %]
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>
105                                     [% END %]
106                                 [% END %]
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 %]
111                                     </li>
112                                 [% 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>
115                                 [% END %]
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 %]
118                                 [% END %]
119                             </ul>
120                         </div>
121                     [% END # / IF patron_flagged %]
122
123                     [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
124                     [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
125
126                     <div id="opac-user-views" class="toptabs">
127                         <ul>
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 %]
135                             [% 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>
140                             [% END %]
141                         </ul>
142
143                         <div id="opac-user-overdrive">
144                         </div>
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>
152                                         <thead>
153                                             <tr>
154                                                 [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
155                                                 <th class="anti-the">Title</th>
156                                                 <th class="title-string psort">Due</th>
157                                                 [% UNLESS ( item_level_itypes ) %]
158                                                     <th>Item type</th>
159                                                 [% END %]
160                                                 [% IF ( show_barcode ) %]
161                                                     <th>Barcode</th>
162                                                 [% END %]
163                                                     <th>Call no.</th>
164                                                 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
165                                                     <th class="nosort">Renew</th>
166                                                 [% END %]
167                                                 [% IF ( OPACFinesTab ) %]
168                                                     <th>Fines</th>
169                                                 [% END %]
170                                                 [% IF ( OPACMySummaryHTML ) %]
171                                                     <th class="nosort">Links</th>
172                                                 [% END %]
173                                             </tr>
174                                         </thead>
175                                         <tbody>
176                                             [% FOREACH ISSUE IN ISSUES %]
177                                                 [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
178                                                 [% IF ( JacketImages ) %]<td class="jacketcell">
179
180                                                     [% IF ( OPACAmazonCoverImages ) %]
181                                                         [% IF ( ISSUE.normalized_isbn ) %]
182                                                             <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>
183                                                         [% ELSE %]
184                                                             <a href="#"><span class="no-image">No cover image available</span></a>
185                                                         [% END %]
186                                                     [% END %]
187
188                                                     [% IF ( GoogleJackets ) %]
189                                                         [% IF ( ISSUE.normalized_isbn ) %]
190                                                             <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
191                                                         [% ELSE %]
192                                                             <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
193                                                         [% END %]
194                                                     [% END %]
195
196                                                     [% IF ( BakerTaylorEnabled ) %]
197                                                         [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
198                                                         [% IF ( bt_id ) %]
199                                                             <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
200                                                         [% ELSE %]
201                                                             <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
202                                                         [% END %]
203                                                     [% END %]
204
205                                                     [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
206                                                         [% IF ( using_https ) %]
207                                                             <img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% ISSUE.normalized_upc %]&amp;oclc=[% ISSUE.normalized_oclc %]" alt="" class="item-thumbnail" />
208                                                         [% ELSE %]
209                                                             <img src="http://www.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% ISSUE.normalized_upc %]&amp;oclc=[% ISSUE.normalized_oclc %]" alt="" class="item-thumbnail" />
210                                                         [% END %]
211                                                     [% END %]
212
213                                                 </td>[% END # / IF JacketImages %]
214
215                                                 <td class="title">
216                                                     <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>
217                                                     [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
218                                                     <span class="item-details">[% ISSUE.author %]</span>
219                                                 </td>
220                                                 [% IF ( ISSUE.overdue ) %]
221                                                     <td class="date_due overdue">
222                                                         <span title="[% ISSUE.date_due %]">
223                                                             <span class="tdlabel">Date due:</span>
224                                                             [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
225                                                         </span>
226                                                     </td>
227                                                 [% ELSE %]
228                                                     <td class="date_due">
229                                                         <span title="[% ISSUE.date_due %]">
230                                                             <span class="tdlabel">Date due:</span>
231                                                             [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
232                                                         </span>
233                                                     </td>
234                                                 [% END %]
235                                                 [% UNLESS ( item_level_itypes ) %]
236                                                     <td class="itype">
237                                                         <span class="tdlabel">Item type:</span>
238                                                         [% IF ( ISSUE.imageurl ) %]
239                                                             <img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />
240                                                         [% END %] [% ISSUE.description %]
241                                                     </td>
242                                                 [% END %]
243                                                 [% IF ( show_barcode ) %]
244                                                     <td class="barcode">
245                                                         <span class="tdlabel">Barcode:</span>
246                                                         [% ISSUE.barcode %]
247                                                     </td>
248                                                 [% END %]
249                                                 <td class="call_no">
250                                                     <span class="tdlabel">Call no.:</span>
251                                                     [% ISSUE.itemcallnumber %]
252                                                 </td>
253                                                 [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
254                                                     <td class="renew">
255                                                     [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
256                                                     [% IF ( ISSUE.status ) %]
257                                                         [% IF ( canrenew ) %]
258                                                             <input type="checkbox" name="item" value="[% ISSUE.itemnumber %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% ISSUE.itemnumber %]&amp;borrowernumber=[% ISSUE.borrowernumber %]">Renew</a>
259                                                         [% END %]
260                                                         <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
261                                                     [% ELSIF ( ISSUE.on_reserve ) %]
262                                                         Not renewable <span class="renewals">(on hold)</span>
263                                                     [% ELSIF ( ISSUE.too_many ) %]
264                                                         Not renewable
265                                                     [% ELSIF ( ISSUE.norenew_overdue ) %]
266                                                         Not allowed <span class="renewals">(overdue)</span>
267                                                     [% ELSIF ( ISSUE.auto_too_late ) %]
268                                                         No longer renewable
269                                                     [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %]
270                                                         Automatic renewal
271                                                         <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
272                                                     [% ELSIF ( ISSUE.too_soon ) %]
273                                                         No renewal before [% ISSUE.soonestrenewdate %]
274                                                         <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
275                                                     [% END %]
276                                                     </td>
277                                                 [% END %]
278                                                 [% IF ( OPACFinesTab ) %]
279                                                     <td class="fines">
280                                                         <span class="tdlabel">Fines:</span>
281                                                         [% IF ( ISSUE.charges ) %]
282                                                             Yes
283                                                         [% ELSE %]
284                                                             No
285                                                         [% END %]
286                                                     </td>
287                                                 [% END %]
288                                                 [% IF ( OPACMySummaryHTML ) %]
289                                                     <td class="links">[% ISSUE.MySummaryHTML %]</td>
290                                                 [% END %]
291                                             </tr>
292                                         [% END # /FOREACH ISSUES %]
293                                     </tbody>
294                                 </table>
295                                 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
296                                     <input type="submit" class="btn" value="Renew selected" />
297                                 [% END %]
298                                 </form>
299
300                                 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
301                                 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
302                                     <input type="hidden" name="from" value="opac_user" />
303                                     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
304                                     [% FOREACH ISSUE IN ISSUES %]
305                                         <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
306                                     [% END %]
307                                     <input type="submit" class="btn" value="Renew all" />
308                                 </form>
309                                 [% END %]
310                                 <p><a href="opac-ics.pl">Download as iCal/.ics file</a></p>
311                             [% ELSE %]
312                                 <table class="table table-bordered table-striped">
313                                     <tr><td>You have nothing checked out</td></tr>
314                                 </table>
315                             [% END # IF issues_count %]
316                         </div> <!-- / .opac-user-checkouts -->
317
318                         [% IF ( OPACFinesTab ) %]
319                             <!-- FINES BOX -->
320                             [% IF BORROWER_INFO.amountoverfive %]
321                                 <div id="opac-user-fines"> <h3>Fines and charges</h3>
322                                     <table class="table table-bordered table-striped">
323                                         <thead><tr><th colspan="2">Amount</th></tr></thead>
324                                         <tbody>
325                                             <tr>
326                                                 <td>You currently owe fines and charges amounting to:</td>
327                                                 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
328                                             </tr>
329                                         </tbody>
330                                     </table>
331                                 </div>
332                             [% END %]
333
334                             [% IF BORROWER_INFO.amountoverzero %]
335                                <div id="opac-user-fines"> <h3>Fines and charges</h3>
336                                     <table class="table table-bordered table-striped">
337                                         <thead><tr><th colspan="2">Amount</th></tr></thead>
338                                         <tbody>
339                                             <tr>
340                                                 <td>You currently owe fines and charges amounting to:</td>
341                                                 <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding %]</a></td>
342                                             </tr>
343                                         </tbody>
344                                     </table>
345                                 </div>
346                             [% END %]
347
348                             [% IF BORROWER_INFO.amountlessthanzero %]
349                                 <div id="opac-user-fines">  <h3>Credits</h3>
350                                     <table class="table table-bordered table-striped">
351                                         <thead><tr><th colspan="2">Amount</th></tr></thead>
352                                         <tbody>
353                                             <tr>
354                                                 <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding %]</a></td>
355                                             </tr>
356                                         </tbody>
357                                     </table>
358                                 </div>
359                             [% END %]
360                         [% END # / OPACFinesTab %]
361
362                         [% IF relatives %]
363                             <div id="opac-user-relative-issues">
364                                 <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
365                                     <thead>
366                                         <tr>
367                                             <th class="anti-the">Title</th>
368                                             <th>Due</th>
369                                             <th>Barcode</th>
370                                             <th>Call no.</th>
371                                             <th class="psort">Relative</th>
372                                         </tr>
373                                     </thead>
374
375                                     <tbody>
376                                         [% FOREACH r IN relatives %]
377                                             [% FOREACH i IN r.issues %]
378                                                 <tr>
379                                                     <td>
380                                                         <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.item.biblio.biblionumber %]">
381                                                             [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %]
382                                                         </a>
383                                                     </td>
384
385                                                     <td>
386                                                         [% i.date_due | $KohaDates %]
387                                                     </td>
388
389                                                     <td>
390                                                         [% i.item.barcode %]
391                                                     </td>
392
393                                                     <td>
394                                                         [% i.item.itemcallnumber %]
395                                                     </td>
396
397                                                     <td>
398                                                         [% r.firstname %] [% r.surname %]
399                                                     </td>
400                                                 </tr>
401                                             [% END %]
402                                         [% END %]
403                                     </tbody>
404                                 </table>
405                             </div>
406                         [% END %]
407
408                         [% IF ( overdues_count ) %]
409                             <div id="opac-user-overdues">
410                                 <table id="overduest" class="table table-bordered table-striped">
411                                     <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
412                                     <!-- OVERDUES TABLE ROWS -->
413                                     <thead>
414                                         <tr>
415                                             [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
416                                             <th class="anti-the">Title</th>
417                                             [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
418                                             [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
419                                             <th>Call no.</th>
420                                             <th class="title-string psort">Due</th>
421                                             [% IF ( OpacRenewalAllowed ) %]
422                                                 <th class="nosort">Renew</th>
423                                             [% END %]
424                                             [% IF ( OPACFinesTab ) %]
425                                                 <th>Fines</th>
426                                             [% END %]
427                                         </tr>
428                                     </thead>
429                                     <tbody>
430                                         [% FOREACH OVERDUE IN OVERDUES %]
431                                             <tr>
432                                                 [% IF ( JacketImages ) %]
433                                                     <td class="jacketcell">
434                                                     [% IF ( OPACAmazonCoverImages ) %]
435                                                         [% IF ( OVERDUE.normalized_isbn ) %]
436                                                             <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>
437                                                         [% ELSE %]
438                                                             <a href="#"><span class="no-image">No cover image available</span></a>
439                                                         [% END %]
440                                                     [% END %]
441
442                                                     [% IF ( GoogleJackets ) %]
443                                                         [% IF ( OVERDUE.normalized_isbn ) %]
444                                                             <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
445                                                         [% ELSE %]
446                                                             <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
447                                                         [% END %]
448                                                     [% END %]
449
450                                                     [% IF ( BakerTaylorEnabled ) %]
451                                                         [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
452                                                         [% IF ( bt_id ) %]
453                                                             <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
454                                                         [% ELSE %]
455                                                             <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
456                                                         [% END %]
457                                                     [% END %]
458
459                                                     [% IF ( SyndeticsCoverImages ) %]
460                                                         [% IF ( using_https ) %]
461                                                             <img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;upc=[% OVERDUE.normalized_upc %]&amp;oclc=[% OVERDUE.normalized_oclc %]&amp;type=xw10" alt="" class="item-thumbnail" />
462                                                         [% ELSE %]
463                                                             <img src="http://www.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;upc=[% OVERDUE.normalized_upc %]&amp;oclc=[% OVERDUE.normalized_oclc %]&amp;type=xw10" alt="" class="item-thumbnail" />
464                                                         [% END %]
465                                                     [% END %]
466                                                     </td>
467                                                 [% END # /IF jacketcell %]
468
469                                                 <td>
470                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %] [% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]
471                                                     </a>
472                                                     <span class="item-details">[% OVERDUE.author %]</span></td>
473
474                                                 [% UNLESS ( item_level_itypes ) %]
475                                                     <td>
476                                                         [% IF ( OVERDUE.imageurl ) %]
477                                                             <img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />
478                                                         [% END %] [% OVERDUE.description %]
479                                                     </td>
480                                                 [% END %]
481                                                 [% IF ( show_barcode ) %]
482                                                     <td>
483                                                         <span class="tdlabel">Barcode:</span>
484                                                         [% OVERDUE.barcode %]
485                                                     </td>
486                                                 [% END %]
487                                                 <td>
488                                                     <span class="tdlabel">Call no.:</span>
489                                                     [% OVERDUE.itemcallnumber %]
490                                                 </td>
491                                                 <td>
492                                                     <span title="[% OVERDUE.date_due %]">
493                                                         <span class="tdlabel">Date due:</span>
494                                                         [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %]
495                                                     </span>
496                                                 </td>
497                                                 [% IF ( OpacRenewalAllowed ) %]
498                                                     <td>
499                                                         [% IF ( OVERDUE.debarred ) %]
500                                                             Account frozen
501                                                         [% ELSIF ( OVERDUE.status ) %]
502                                                             [% IF ( canrenew ) %]
503                                                                 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% OVERDUE.itemnumber %]&amp;bornum=[% OVERDUE.borrowernumber %]">Renew</a>
504                                                             [% END %]
505                                                                 <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
506                                                         [% ELSIF ( OVERDUE.norenew_overdue ) %]
507                                                             Not allowed<span class="renewals">(overdue)</span>
508                                                         [% ELSIF ( OVERDUE.onreserve ) %]
509                                                             On hold
510                                                         [% ELSE %]
511                                                             No renewals left
512                                                         [% END %]
513                                                     </td>
514                                                 [% END %]
515                                                 [% IF ( OPACFinesTab ) %]
516                                                     <td>
517                                                         <span class="tdlabel">Fines:</span>
518                                                         [% IF ( OVERDUE.charges ) %]
519                                                             Yes
520                                                         [% ELSE %]
521                                                             No
522                                                         [% END %]
523                                                     </td>
524                                                 [% END %]
525                                             </tr>
526                                         [% END %]
527                                     </tbody>
528                                 </table>
529                             </div> <!-- / #opac-user-overdues -->
530                         [% END # /overdues_count %]
531
532
533                         [% IF ( RESERVES.count ) %]
534                             <div id="opac-user-holds">
535                                 <table id="holdst" class="table table-bordered table-striped">
536                                     <caption>Holds <span class="count">([% RESERVES.count %] total)</span></caption>
537                                     <!-- RESERVES TABLE ROWS -->
538                                     <thead>
539                                         <tr>
540                                             <th class="anti-the">Title</th>
541                                             <th class="psort">Placed on</th>
542                                             <th>Expires on</th>
543                                             <th>Pick up location</th>
544                                             [% IF ( showpriority ) %]
545                                                 <th>Priority</th>
546                                             [% END %]
547                                             <th>Status</th>
548                                             [% IF SuspendHoldsOpac %]
549                                                  <th class="nosort" >Suspend</th>
550                                             [% END %]
551                                             <th class="nosort">Modify</th>
552                                         </tr>
553                                     </thead>
554                                     <tbody>
555                                     [% FOREACH RESERVE IN RESERVES %]
556                                         [% IF ( RESERVE.is_waiting ) %]
557                                             [% IF ( RESERVE.is_at_destination ) %]
558                                                 [% IF ( RESERVE.is_found ) %]
559                                                     <tr class="reserved">
560                                                 [% ELSE %]
561                                                     <tr>
562                                                 [% END %]
563                                             [% ELSE %]
564                                                 <tr class="transfered">
565                                             [% END %]
566                                         [% ELSE %]
567                                             <tr>
568                                         [% END %]
569                                             <td class="title">
570                                                 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
571                                                     [% RESERVE.biblio.title %]
572                                                     [% FOREACH s IN RESERVE.biblio.subtitles %]
573                                                         [% s %]
574                                                     [% END %]
575                                                     [% RESERVE.item.enumchron %]
576                                                 </a>
577                                                 [% RESERVE.biblio.author %]
578                                             </td>
579                                             <td class="reservedate">
580                                                 <span title="[% RESERVE.reservedate %]">
581                                                     <span class="tdlabel">Hold date:</span>
582                                                     [% RESERVE.reservedate | $KohaDates %]
583                                                 </span>
584                                             </td>
585                                             <td class="expirationdate">
586                                                 [% IF ! RESERVE.found %]
587                                                     [% IF ( RESERVE.expirationdate ) %]
588                                                         <span>
589                                                             <span class="tdlabel">Expiration:</span>
590                                                                 [% RESERVE.expirationdate | $KohaDates %]
591                                                         </span>
592                                                     [% ELSE %]
593                                                         <span class="tdlabel">Expiration:</span>
594                                                         Never expires
595                                                     [% END %]
596                                                 [% ELSE %]
597                                                     -
598                                                 [% END %]
599                                             </td>
600                                             <td class="branch">
601                                                 <span class="tdlabel">Pick up location:</span>
602                                                 [% RESERVE.branch.branchname %]
603                                             </td>
604                                             [% IF ( showpriority ) %]
605                                                  <td class="priority">
606                                                     <span class="tdlabel">Priority:</span>
607                                                     [% RESERVE.priority %]
608                                                 </td>
609                                             [% END %]
610                                             <td class="status">
611                                                 <span class="tdlabel">Status:</span>
612                                                 [% IF ( RESERVE.is_waiting ) %]
613                                                     [% IF ( RESERVE.is_at_destination ) %]
614                                                         [% IF ( RESERVE.found ) %]
615                                                             Item waiting at <b> [% RESERVE.branch.branchname %]</b>
616                                                             [% IF ( RESERVE.waitingdate ) %]
617                                                                 since [% RESERVE.waitingdate | $KohaDates %]
618                                                                 [% IF RESERVE.waiting_expires_on %]
619                                                                     until [% RESERVE.waiting_expires_on | $KohaDates %]
620                                                                 [% END %]
621                                                             [% END %]
622                                                             <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
623                                                         [% ELSE %]
624                                                             Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) %]</b>
625                                                         [% END %]
626                                                     [% ELSE %]
627                                                         Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode %]" />
628                                                     [% END %]
629                                                 [% ELSE %]
630                                                     [% IF ( RESERVE.is_in_transit ) %]
631                                                         [% SET transfer = RESERVE.item.get_transfer %]
632                                                         Item in transit from <b> [% Branches.GetName( transfer.frombranch ) %]</b> since
633                                                         [% transfer.datesent | $KohaDates %]
634                                                     [% ELSIF ( RESERVE.suspend ) %]
635                                                         Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
636                                                     [% ELSE %]
637                                                         [% IF RESERVE.itemtype %]
638                                                             Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) %]'
639                                                         [% ELSE %]
640                                                             Pending
641                                                         [% END %]
642                                                     [% END %]
643                                                 [% END %]
644                                             </td>
645                                             [% IF SuspendHoldsOpac %]
646                                                 <td>
647                                                     [% IF ( RESERVE.is_cancelable ) %]
648                                                         [% IF RESERVE.suspend %]
649                                                             <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
650                                                                 <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
651                                                                 <button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button>
652                                                             </form>
653                                                         [% ELSE %]
654                                                             [% IF AutoResumeSuspendedHolds %]
655                                                                 <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a>
656                                                                 [% # hold suspend modal form %]
657                                                                 <div id="suspendModal[% RESERVE.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id %]Label" aria-hidden="true">
658                                                                     <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
659                                                                         <div class="modal-header">
660                                                                             <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
661                                                                             [% IF RESERVE.suspend %]
662                                                                                 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Resume your hold on <i>[% RESERVE.biblio.title %]</i></h3>
663                                                                             [% ELSE %]
664                                                                                 <h3 id="suspendModal[% RESERVE.reserve_id %]Label">Suspend your hold on <i>[% RESERVE.biblio.title %]</i></h3>
665                                                                             [% END %]
666                                                                         </div>
667                                                                         <div class="modal-body">
668                                                                             <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
669                                                                             <label for="suspend_until_[% RESERVE.reserve_id %]">Suspend until:</label>
670                                                                             <input name="suspend_until" id="suspend_until_[% RESERVE.reserve_id %]" class="suspend-until" size="10" />
671                                                                             [% INCLUDE 'date-format.inc' %]
672                                                                             <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p>
673                                                                             <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
674                                                                         </div>
675                                                                         <div class="modal-footer">
676                                                                             <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
677                                                                             <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
678                                                                         </div>
679                                                                     </form>
680                                                                 </div>  <!-- /#suspendModal[% RESERVE.reserve_id %] -->
681                                                             [% ELSE %]
682                                                                 <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
683                                                                     <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
684                                                                     <button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button>
685                                                                 </form>
686                                                             [% END # / IF AutoResumeSuspendedHolds %]
687                                                         [% END # / IF RESERVE.suspend %]
688                                                     [% END # / IF ( RESERVE.is_cancelable )%]
689                                                 </td>
690                                             [% END # / IF SuspendHoldsOpac %]
691                                             <td class="modify">
692                                                 [% IF ( RESERVE.is_cancelable ) %]
693                                                     <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
694                                                     <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
695                                                     <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
696                                                     <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>
697                                                 [% END %]
698                                             </td>
699                                         </tr>
700                                     [% END # /FOREACH RESERVES %]
701                                 </tbody>
702                             </table>
703
704                             [% IF SuspendHoldsOpac %]
705                                 <div>
706                                     <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
707                                         <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="icon-pause"></i> Suspend all holds</button>
708                                         <input type="hidden" name="suspend" value="1" />
709
710                                         [% IF AutoResumeSuspendedHolds %]
711                                             <label for="suspend_until"> until </label>
712                                             <input name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
713                                             <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
714                                         [% END %]
715                                     </form>
716                                 </div>
717                                 <br/>
718                                 <div>
719                                     <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
720                                         <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="icon-play"></i> Resume all suspended holds</button>
721                                         <input type="hidden" name="suspend" value="0" />
722                                     </form>
723                                 </div>
724                             [% END %]
725                         </div> <!-- / #opac-user-holds -->
726                         [% END # / #RESERVES.count %]
727
728                         [% IF Koha.Preference('ArticleRequests') && borrower.article_requests_current.count %]
729                             <div id="opac-user-article-requests">
730                                 <table id="article-requests-table" class="table table-bordered table-striped">
731                                     <caption>Article requests <span class="count">([% borrower.article_requests_current.count %] total)</span></caption>
732                                     <thead>
733                                         <tr>
734                                             <th class="anti-the article-request-record-title">Record title</th>
735                                             <th class="psort article-request-created-on">Placed on</th>
736                                             <th class="anti-the article-request-title">Title</th>
737                                             <th class="article-request-author">Author</th>
738                                             <th class="article-request-volume">Volume</th>
739                                             <th class="article-request-issue">Issue</th>
740                                             <th class="article-request-date">Date</th>
741                                             <th class="article-request-pages">Pages</th>
742                                             <th class="article-request-chapters">Chapters</th>
743                                             <th class="article-request-patron-notes">Notes</th>
744                                             <th class="article-request-status">Status</th>
745                                             <th class="article-request-branchcode">Pickup library</th>
746                                             <th class="nosort article-request-cancel">&nbsp;</th>
747                                         </tr>
748                                     </thead>
749
750                                     <tbody>
751                                     [% FOREACH ar IN borrower.article_requests_current %]
752                                             <td class="article-request-record-title">
753                                                 <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber %]">
754                                                     [% ar.biblio.title %]
755                                                     [% ar.item.enumchron %]
756                                                 </a>
757                                                 [% ar.biblio.author %]
758                                                 [% IF ar.itemnumber %] <i>(only [% ar.item.barcode %])</i>[% END %]
759                                             </td>
760
761                                             <td class="article-request-created_on">
762                                                 [% ar.created_on | $KohaDates %]
763                                             </td>
764
765                                             <td class="article-request-title">
766                                                 [% ar.title %]
767                                             </td>
768
769                                             <td class="article-request-author">
770                                                 [% ar.author %]
771                                             </td>
772
773                                             <td class="article-request-volume">
774                                                 [% ar.volume %]
775                                             </td>
776
777                                             <td class="article-request-issue">
778                                                 [% ar.issue %]
779                                             </td>
780
781                                             <td class="article-request-date">
782                                                 [% ar.date %]
783                                             </td>
784
785                                             <td class="article-request-pages">
786                                                 [% ar.pages %]
787                                             </td>
788
789                                             <td class="article-request-chapters">
790                                                 [% ar.chapters %]
791                                             </td>
792
793                                             <td class="article-request-patron-notes">
794                                                 [% ar.patron_notes %]
795                                             </td>
796
797                                             <td class="article-request-status">
798                                                 [% IF ar.status == 'PENDING' %]
799                                                     Pending
800                                                 [% ELSIF ar.status == 'PROCESSING' %]
801                                                     Processing
802                                                 [% ELSIF ar.status == 'COMPLETED' %]
803                                                     Completed
804                                                 [% ELSIF ar.status == 'CANCELED' %]
805                                                     Canceled
806                                                 [% END %]
807                                             </td>
808
809                                             <td class="article-request-branchcode">
810                                                 [% ar.branch.branchname %]
811                                             </td>
812
813                                             <td class="article-request-cancel">
814                                                 <span class="tdlabel">Cancel:</span>
815                                                 <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>
816                                                 <!-- TODO: replace MSG_CONFIRM_DELETE_HOLD with correct message -->
817                                             </td>
818                                         </tr>
819                                     [% END %]
820                                 </tbody>
821                             </table>
822                         </div> <!-- / #opac-user-article-requests -->
823                     [% END %]
824
825                     </div> <!-- /#opac-user-views -->
826                 </div> <!-- /#userdetails -->
827             </div> <!-- /.span10 -->
828         </div> <!-- /.row-fluid -->
829     </div> <!-- /.container-fluid -->
830 </div> <!-- /#main -->
831
832 [% IF ( OverDriveCirculation ) %]
833 [% INCLUDE 'overdrive-checkout.inc' %]
834 [% END %]
835
836 [% INCLUDE 'opac-bottom.inc' %]
837
838
839 [% BLOCK jsinclude %]
840     [% INCLUDE 'calendar.inc' %]
841     [% INCLUDE 'datatables.inc' %]
842     <script type="text/JavaScript">
843         //<![CDATA[
844         var MSG_CONFIRM_DELETE_HOLD   = _("Are you sure you want to cancel this hold?");
845         var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
846         var MSG_CONFIRM_RESUME_HOLDS  = _("Are you sure you want to resume all suspended holds?");
847
848         $(document).ready(function(){
849             $('#opac-user-views').tabs();
850             $(".js-show").show();
851             $(".js-hide").hide();
852             $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
853             $(".suspend-until").prop("readonly",1);
854
855             var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table");
856             dTables.each(function(){
857                 var thIndex = $(this).find("th.psort").index();
858                 $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
859                     "aaSorting" : [[ thIndex, 'asc' ]],
860                     "aoColumnDefs": [
861                         { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
862                         { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
863                         { "sType": "title-string", "aTargets" : [ "title-string" ] }
864                     ]
865                 }));
866             });
867
868             [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
869             [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
870                 $("#renewselected").submit(function(){
871                     valid = false;
872                     $("input[type=checkbox]").each(function(){
873                         if($(this).is(':checked')){
874                             valid = true;
875                         }
876                     });
877                     if(!valid){
878                         alert(_("Nothing has been selected. Check the box for each item you want to renew"));
879                     }
880                     return valid;
881                 });
882                 $("body").on("click","#renewselected_link",function(e){
883                     e.preventDefault();
884                     $("#renewselected").submit();
885                 });
886                 $("body").on("click","#renewall_link",function(e){
887                     e.preventDefault();
888                     $("#renewall").submit();
889                 });
890                 [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
891                     $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
892                 [% END %]
893             [% END %]
894
895             $( ".suspend-until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
896         });
897         //]]>
898     </script>
899     <script type="text/javascript" src="[% interface %]//[% theme %]/js/overdrive.js"></script>
900     [% IF ( OverDriveCirculation ) %]
901     <script type="text/JavaScript">
902     $(document).ready(function() {
903         [% IF ( overdrive_error ) %]
904         KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote %]");
905         [% END %]
906         [% IF ( overdrive_tab ) %]
907         $("#opac-user-views").tabs("select", "#opac-user-overdrive");
908         [% END %]
909         $("#opac-user-overdrive").each( function() {
910             KOHA.OverDriveCirculation.display_account_details(this);
911         } );
912     });
913     </script>
914     [% END %]
915 [% END %]