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