Lines 200-365
Link Here
|
200 |
[% END %] |
200 |
[% END %] |
201 |
|
201 |
|
202 |
<div id="opac-user-views" class="toptabs"> |
202 |
<div id="opac-user-views" class="toptabs"> |
203 |
<ul> |
203 |
<ul class="nav nav-tabs" role="tablist"> |
204 |
<li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li> |
204 |
<li class="nav-item" role="presentation"> |
205 |
[% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %] |
205 |
<a class="nav-link active" id="opac-user-checkouts-tab" data-toggle="tab" role="tab" aria-controls="opac-user-checkouts" aria-selected="true" href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a> |
206 |
[% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a></li>[% END %] |
206 |
</li> |
|
|
207 |
[% IF relatives %] |
208 |
<li class="nav-item" role="presentation"> |
209 |
<a class="nav-link" id="opac-user-relative-issues-tab" data-toggle="tab" role="tab" aria-controls="opac-user-relative-issues" aria-selected="false" href="#opac-user-relative-issues">Relatives' checkouts</a> |
210 |
</li> |
211 |
[% END %] |
212 |
[% IF ( overdues_count ) %] |
213 |
<li class="nav-item" role="presentation"> |
214 |
<a class="nav-link" id="opac-user-overdues-tab" data-toggle="tab" role="tab" aria-controls="opac-user-overdues" aria-selected="false" href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a> |
215 |
</li> |
216 |
[% END %] |
207 |
[% IF ( OPACFinesTab ) %] |
217 |
[% IF ( OPACFinesTab ) %] |
208 |
[% IF ( amountoutstanding > 0 ) %]<li><a href="#opac-user-fines">Charges ([% amountoutstanding | $Price %])</a></li>[% END %] |
218 |
[% IF ( amountoutstanding > 0 ) %] |
209 |
[% IF ( amountoutstanding < 0 ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding * -1 | $Price %])</a></li>[% END %] |
219 |
<li class="nav-item" role="presentation"> |
210 |
[% IF relatives_with_fines %]<li><a href="#opac-user-relative-fines">Relatives' charges</a></li>[% END %] |
220 |
<a class="nav-link" id="opac-user-fines-tab" data-toggle="tab" role="tab" aria-controls="opac-user-fines" aria-selected="false" href="#opac-user-fines">Charges ([% amountoutstanding | $Price %])</a> |
|
|
221 |
</li> |
222 |
[% END %] |
223 |
[% IF ( amountoutstanding < 0 ) %] |
224 |
<li class="nav-item" role="presentation"> |
225 |
<a class="nav-link" id="opac-user-fines-tab" data-toggle="tab" role="tab" aria-controls="opac-user-fines" aria-selected="false" href="#opac-user-fines">Credits ([% amountoutstanding * -1 | $Price %])</a> |
226 |
</li> |
227 |
[% END %] |
228 |
[% IF relatives_with_fines %] |
229 |
<li class="nav-item" role="presentation"> |
230 |
<a class="nav-link" id="opac-user-relative-fines-tab" data-toggle="tab" role="tab" aria-controls="opac-user-relative-fines" aria-selected="false" href="#opac-user-relative-fines">Relatives' charges</a> |
231 |
</li> |
232 |
[% END %] |
211 |
[% END %] |
233 |
[% END %] |
212 |
|
234 |
|
213 |
[% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %] |
235 |
[% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %] |
214 |
<li> |
236 |
<li class="nav-item" role="presentation"> |
215 |
<a id="opac-user-clubs-tab-link" href="#opac-user-clubs"> |
237 |
<a class="nav-link" data-toggle="tab" role="tab" aria-controls="opac-user-clubs" aria-selected="false" id="opac-user-clubs-tab-link" href="#opac-user-clubs"> |
216 |
Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %]) |
238 |
Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %]) |
217 |
</a> |
239 |
</a> |
218 |
</li> |
240 |
</li> |
219 |
[% END %] |
241 |
[% END %] |
220 |
|
242 |
|
221 |
[% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %] |
243 |
[% IF ( RESERVES.count ) %] |
222 |
[% IF Koha.Preference('UseRecalls') && RECALLS.count %]<li><a href="#opac-user-recalls">Recalls ([% RECALLS.count | html %])</a></li>[% END %] |
244 |
<li class="nav-item" role="presentation"> |
223 |
[% IF Koha.Preference('ArticleRequests') %]<li><a href="#opac-user-article-requests">Article requests ([% current_article_requests.size || 0 | html %])</a></li>[% END %] |
245 |
<a class="nav-link" id="opac-user-holds-tab" data-toggle="tab" role="tab" aria-controls="opac-user-holds" aria-selected="false" href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a> |
|
|
246 |
</li> |
247 |
[% END %] |
248 |
[% IF Koha.Preference('UseRecalls') && RECALLS.count %] |
249 |
<li class="nav-item" role="presentation"> |
250 |
<a class="nav-link" id="opac-user-recalls-tab" data-toggle="tab" role="tab" aria-controls="opac-user-recalls" aria-selected="false" href="#opac-user-recalls">Recalls ([% RECALLS.count | html %])</a> |
251 |
</li> |
252 |
[% END %] |
253 |
[% IF Koha.Preference('ArticleRequests') %] |
254 |
<li class="nav-item" role="presentation"> |
255 |
<a class="nav-link" id="opac-user-article-requests-tab" data-toggle="tab" role="tab" aria-controls="opac-user-article-requests" aria-selected="false" href="#opac-user-article-requests">Article requests ([% current_article_requests.size || 0 | html %])</a> |
256 |
</li> |
257 |
[% END %] |
224 |
[% IF ( OverDriveCirculation ) %] |
258 |
[% IF ( OverDriveCirculation ) %] |
225 |
<li><a href="#opac-user-overdrive">OverDrive account</a></li> |
259 |
<li class="nav-item" role="presentation"> |
|
|
260 |
<a class="nav-link" id="opac-user-overdrive-tab" data-toggle="tab" role="tab" aria-controls="opac-user-overdrive" aria-selected="false" href="#opac-user-overdrive">OverDrive account</a> |
261 |
</li> |
226 |
[% END %] |
262 |
[% END %] |
227 |
[% IF ( RecordedBooksCirculation ) %] |
263 |
[% IF ( RecordedBooksCirculation ) %] |
228 |
<li><a href="#opac-user-recordedbooks">RecordedBooks account</a></li> |
264 |
<li class="nav-item" role="presentation"> |
|
|
265 |
<a class="nav-link" id="opac-user-recordedbooks-tab" data-toggle="tab" role="tab" aria-controls="opac-user-recordedbooks" aria-selected="false" href="#opac-user-recordedbooks">RecordedBooks account</a> |
266 |
</li> |
229 |
[% END %] |
267 |
[% END %] |
230 |
</ul> |
268 |
</ul> |
|
|
269 |
<div class="tab-content"> |
231 |
|
270 |
|
232 |
<div id="opac-user-overdrive"> |
271 |
<div id="opac-user-overdrive" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-overdrive-tab"> |
233 |
</div> |
272 |
</div> |
234 |
<div id="opac-user-recordedbooks"> |
273 |
<div id="opac-user-recordedbooks" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-recordedbooks-tab"> |
235 |
</div> |
274 |
</div> |
236 |
<div id="opac-user-checkouts"> |
275 |
<div id="opac-user-checkouts" class="tab-pane active" role="tabpanel" aria-labelledby="opac-user-checkouts-tab"> |
237 |
[% IF ( issues_count ) %] |
276 |
[% IF ( issues_count ) %] |
238 |
<form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
277 |
<form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
239 |
<legend class="sr-only">Renew selected</legend> |
278 |
<legend class="sr-only">Renew selected</legend> |
240 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]"> |
279 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]"> |
241 |
<input type="hidden" name="from" value="opac_user" /> |
280 |
<input type="hidden" name="from" value="opac_user" /> |
242 |
<table id="checkoutst" class="table table-bordered table-striped"> |
281 |
<table id="checkoutst" class="table table-bordered table-striped"> |
243 |
<caption>[% issues_count | html %] Item(s) checked out</caption> |
282 |
<caption>[% issues_count | html %] Item(s) checked out</caption> |
244 |
<thead> |
283 |
<thead> |
245 |
<tr> |
284 |
<tr> |
246 |
[% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %] |
285 |
[% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %] |
247 |
<th class="anti-the">Title</th> |
286 |
<th class="anti-the">Title</th> |
248 |
<th>Author</th> |
287 |
<th>Author</th> |
249 |
<th class="psort">Due</th> |
288 |
<th class="psort">Due</th> |
250 |
[% UNLESS ( item_level_itypes ) %] |
289 |
[% UNLESS ( item_level_itypes ) %] |
251 |
<th>Item type</th> |
290 |
<th>Item type</th> |
252 |
[% END %] |
|
|
253 |
[% IF ( show_barcode ) %] |
254 |
<th>Barcode</th> |
255 |
[% END %] |
256 |
<th>Call number</th> |
257 |
[% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
258 |
<th>Renew</th> |
259 |
[% END %] |
260 |
[% IF ( OPACFinesTab ) %] |
261 |
<th>Fines</th> |
262 |
[% END %] |
263 |
[% IF ( OPACMySummaryHTML ) %] |
264 |
<th class="nosort">Links</th> |
265 |
[% END %] |
266 |
[% IF ( Koha.Preference('AllowCheckoutNotes') ) %] |
267 |
<th class="hidden">Checkout note</th> |
268 |
<th id="checkout-notes" class="nosort noExport" title="Use this to report any problems with your currently checked out items">Report a problem</th> |
269 |
[% END %] |
270 |
</tr> |
271 |
</thead> |
272 |
<tbody> |
273 |
[% FOREACH ISSUE IN ISSUES %] |
274 |
[% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %] |
275 |
[% IF ( JacketImages ) %]<td class="jacketcell"> |
276 |
[% IF ( OPACAmazonCoverImages ) %] |
277 |
[% IF ( ISSUE.normalized_isbn ) %] |
278 |
<a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a> |
279 |
[% ELSE %] |
280 |
<a href="#"><span class="no-image">No cover image available</span></a> |
281 |
[% END %] |
282 |
[% END %] |
291 |
[% END %] |
283 |
|
292 |
[% IF ( show_barcode ) %] |
284 |
[% IF ( GoogleJackets ) %] |
293 |
<th>Barcode</th> |
285 |
[% IF ( ISSUE.normalized_isbn ) %] |
|
|
286 |
<div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
287 |
[% ELSE %] |
288 |
<a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a> |
289 |
[% END %] |
290 |
[% END %] |
294 |
[% END %] |
291 |
|
295 |
<th>Call number</th> |
292 |
[% IF ( BakerTaylorEnabled ) %] |
296 |
[% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
293 |
[% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %] |
297 |
<th>Renew</th> |
294 |
[% IF ( bt_id ) %] |
|
|
295 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
296 |
[% ELSE %] |
297 |
<span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! --> |
298 |
[% END %] |
299 |
[% END %] |
298 |
[% END %] |
300 |
|
299 |
[% IF ( OPACFinesTab ) %] |
301 |
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] |
300 |
<th>Fines</th> |
302 |
[% SET custom_cover_image_url = ISSUE.biblio_object.custom_cover_image_url %] |
|
|
303 |
[% IF custom_cover_image_url %] |
304 |
<a class="custom_cover_image" href="[% custom_cover_image_url | url %]"><img alt="Cover image" src="[% custom_cover_image_url | url %]" /></a> |
305 |
[% END %] |
306 |
[% END %] |
301 |
[% END %] |
307 |
|
302 |
[% IF ( OPACMySummaryHTML ) %] |
308 |
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] |
303 |
<th class="nosort">Links</th> |
309 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% ISSUE.normalized_upc | html %]&oclc=[% ISSUE.normalized_oclc | html %]" alt="" class="item-thumbnail" /> |
|
|
310 |
[% END %] |
304 |
[% END %] |
|
|
305 |
[% IF ( Koha.Preference('AllowCheckoutNotes') ) %] |
306 |
<th class="hidden">Checkout note</th> |
307 |
<th id="checkout-notes" class="nosort noExport" title="Use this to report any problems with your currently checked out items">Report a problem</th> |
308 |
[% END %] |
309 |
</tr> |
310 |
</thead> |
311 |
<tbody> |
312 |
[% FOREACH ISSUE IN ISSUES %] |
313 |
[% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %] |
314 |
[% IF ( JacketImages ) %] |
315 |
<td class="jacketcell"> |
316 |
[% IF ( OPACAmazonCoverImages ) %] |
317 |
[% IF ( ISSUE.normalized_isbn ) %] |
318 |
<a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a> |
319 |
[% ELSE %] |
320 |
<a href="#"><span class="no-image">No cover image available</span></a> |
321 |
[% END %] |
322 |
[% END %] |
311 |
|
323 |
|
312 |
</td>[% END # / IF JacketImages %] |
324 |
[% IF ( GoogleJackets ) %] |
|
|
325 |
[% IF ( ISSUE.normalized_isbn ) %] |
326 |
<div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
327 |
[% ELSE %] |
328 |
<a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a> |
329 |
[% END %] |
330 |
[% END %] |
313 |
|
331 |
|
314 |
<td class="title"> |
332 |
[% IF ( BakerTaylorEnabled ) %] |
315 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=ISSUE %]</a> |
333 |
[% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %] |
316 |
[% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %] |
334 |
[% IF ( bt_id ) %] |
|
|
335 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
336 |
[% ELSE %] |
337 |
<span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! --> |
338 |
[% END %] |
339 |
[% END %] |
317 |
|
340 |
|
318 |
[% IF ( ISSUE.onsite_checkout ) %] <em class="onsite_checkout">(On-site checkout)</em>[% END %] |
341 |
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] |
|
|
342 |
[% SET custom_cover_image_url = ISSUE.biblio_object.custom_cover_image_url %] |
343 |
[% IF custom_cover_image_url %] |
344 |
<a class="custom_cover_image" href="[% custom_cover_image_url | url %]"><img alt="Cover image" src="[% custom_cover_image_url | url %]" /></a> |
345 |
[% END %] |
346 |
[% END %] |
319 |
|
347 |
|
320 |
[% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %] |
348 |
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] |
321 |
[% INCLUDE 'user-star-ratings.inc' item=ISSUE %] |
349 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% ISSUE.normalized_upc | html %]&oclc=[% ISSUE.normalized_oclc | html %]" alt="" class="item-thumbnail" /> |
322 |
[% END %] |
350 |
[% END %] |
|
|
351 |
</td> |
352 |
[% END # / IF JacketImages %] |
323 |
|
353 |
|
324 |
[% IF ( ISSUE.recall ) %]<br><i>This item has been recalled. Please return by the new due date.</i>[% END %] |
354 |
<td class="title"> |
325 |
</td> |
355 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=ISSUE %]</a> |
|
|
356 |
[% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %] |
326 |
|
357 |
|
327 |
<td class="author">[% ISSUE.author | html %]</td> |
358 |
[% IF ( ISSUE.onsite_checkout ) %] <em class="onsite_checkout">(On-site checkout)</em>[% END %] |
328 |
[% IF ( ISSUE.overdue ) %] |
359 |
|
329 |
<td class="date_due overdue" data-order="[% ISSUE.date_due | html %]"> |
360 |
[% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %] |
330 |
<span class="tdlabel">Date due:</span> |
361 |
[% INCLUDE 'user-star-ratings.inc' item=ISSUE %] |
331 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
362 |
[% END %] |
332 |
</td> |
363 |
|
333 |
[% ELSE %] |
364 |
[% IF ( ISSUE.recall ) %]<br><i>This item has been recalled. Please return by the new due date.</i>[% END %] |
334 |
<td class="date_due" data-order="[% ISSUE.date_due | html %]"> |
|
|
335 |
<span class="tdlabel">Date due:</span> |
336 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
337 |
</td> |
338 |
[% END %] |
339 |
[% UNLESS ( item_level_itypes ) %] |
340 |
<td class="itype"> |
341 |
<span class="tdlabel">Item type:</span> |
342 |
[% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %] |
343 |
<img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" /> |
344 |
[% END %] [% ISSUE.description | html %] |
345 |
</td> |
346 |
[% END %] |
347 |
[% IF ( show_barcode ) %] |
348 |
<td class="barcode"> |
349 |
<span class="tdlabel">Barcode:</span> |
350 |
[% ISSUE.barcode | html %] |
351 |
</td> |
365 |
</td> |
352 |
[% END %] |
366 |
|
353 |
<td class="call_no"> |
367 |
<td class="author">[% ISSUE.author | html %]</td> |
354 |
<span class="tdlabel">Call number:</span> |
368 |
[% IF ( ISSUE.overdue ) %] |
355 |
[% ISSUE.itemcallnumber | html %] |
369 |
<td class="date_due overdue" data-order="[% ISSUE.date_due | html %]"> |
356 |
</td> |
370 |
<span class="tdlabel">Date due:</span> |
357 |
[% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
371 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
358 |
[% IF ( ISSUE.status && canrenew ) %] |
372 |
</td> |
359 |
<td class="renew" data-order="[% ISSUE.renewsleft | html %]"> |
|
|
360 |
[% ELSE %] |
373 |
[% ELSE %] |
361 |
<td class="renew" data-order="0"> |
374 |
<td class="date_due" data-order="[% ISSUE.date_due | html %]"> |
|
|
375 |
<span class="tdlabel">Date due:</span> |
376 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
377 |
</td> |
378 |
[% END %] |
379 |
[% UNLESS ( item_level_itypes ) %] |
380 |
<td class="itype"> |
381 |
<span class="tdlabel">Item type:</span> |
382 |
[% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %] |
383 |
<img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" /> |
384 |
[% END %] [% ISSUE.description | html %] |
385 |
</td> |
386 |
[% END %] |
387 |
[% IF ( show_barcode ) %] |
388 |
<td class="barcode"> |
389 |
<span class="tdlabel">Barcode:</span> |
390 |
[% ISSUE.barcode | html %] |
391 |
</td> |
362 |
[% END %] |
392 |
[% END %] |
|
|
393 |
<td class="call_no"> |
394 |
<span class="tdlabel">Call number:</span> |
395 |
[% ISSUE.itemcallnumber | html %] |
396 |
</td> |
397 |
[% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
398 |
[% IF ( ISSUE.status && canrenew ) %] |
399 |
<td class="renew" data-order="[% ISSUE.renewsleft | html %]"> |
400 |
[% ELSE %] |
401 |
<td class="renew" data-order="0"> |
402 |
[% END %] |
363 |
[% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %] |
403 |
[% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %] |
364 |
[% IF ( ISSUE.status ) %] |
404 |
[% IF ( ISSUE.status ) %] |
365 |
[% IF ( canrenew ) %] |
405 |
[% IF ( canrenew ) %] |
Lines 425-938
Link Here
|
425 |
[% ELSIF ( ISSUE.item_denied_renewal ) %] |
465 |
[% ELSIF ( ISSUE.item_denied_renewal ) %] |
426 |
Renewal not allowed |
466 |
Renewal not allowed |
427 |
[% END %] |
467 |
[% END %] |
428 |
</td> |
468 |
</td> |
429 |
[% END %] |
469 |
[% END %] |
430 |
[% IF ( OPACFinesTab ) %] |
470 |
[% IF ( OPACFinesTab ) %] |
431 |
<td class="fines"> |
471 |
<td class="fines"> |
432 |
<span class="tdlabel">Fines:</span> |
472 |
<span class="tdlabel">Fines:</span> |
433 |
[% IF ( ISSUE.charges ) %] |
473 |
[% IF ( ISSUE.charges ) %] |
434 |
Yes (Item overdue or lost) |
474 |
Yes (Item overdue or lost) |
435 |
[% ELSIF ( ISSUE.rentalfines ) %] |
475 |
[% ELSIF ( ISSUE.rentalfines ) %] |
436 |
Yes (Rental fees) |
476 |
Yes (Rental fees) |
437 |
[% ELSE %] |
477 |
[% ELSE %] |
438 |
No |
478 |
No |
439 |
[% END %] |
|
|
440 |
</td> |
441 |
[% END %] |
442 |
[% IF ( OPACMySummaryHTML ) %] |
443 |
<td class="links">[% ISSUE.MySummaryHTML | $raw %]</td> |
444 |
[% END %] |
445 |
[% IF ( Koha.Preference('AllowCheckoutNotes') ) %] |
446 |
<td> |
447 |
[% ISSUE.note | html %] |
448 |
</td> |
449 |
<td class="note"> |
450 |
<div id="viewnote_[% ISSUE.issue_id | html %]"> |
451 |
[% ISSUE.note | html %] |
452 |
</div> |
453 |
<a id="save_[% ISSUE.issue_id | html %]" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | html %]" class="btn btn-primary btn-sm btn-add-note noprint" data-title="[% ISSUE.title | html %] [% FOREACH subtitle IN ISSUE.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %][% subtitle | html %][% END %]" data-issueid="[% ISSUE.issue_id | html %]" id="save_[% ISSUE.issue_id | html %]"> |
454 |
[% IF ( ISSUE.note ) -%] |
455 |
<span>Edit note</span> |
456 |
[% ELSE -%] |
457 |
<span>Add note</span> |
458 |
[% END %] |
479 |
[% END %] |
459 |
</a> |
480 |
</td> |
460 |
<input type="hidden" id="note_[% ISSUE.issue_id | html %]" name="note" value="[% ISSUE.note | html %]" data-origvalue="[% ISSUE.note | html %]" /> |
481 |
[% END %] |
461 |
</td> |
482 |
[% IF ( OPACMySummaryHTML ) %] |
462 |
[% END %] |
483 |
<td class="links">[% ISSUE.MySummaryHTML | $raw %]</td> |
463 |
</tr> |
484 |
[% END %] |
464 |
[% END # /FOREACH ISSUES %] |
485 |
[% IF ( Koha.Preference('AllowCheckoutNotes') ) %] |
465 |
</tbody> |
486 |
<td> |
466 |
</table> |
487 |
[% ISSUE.note | html %] |
467 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
488 |
</td> |
468 |
<input type="submit" class="btn btn-primary" value="Renew selected" /> |
489 |
<td class="note"> |
469 |
<button type="button" id="renewall_js" class="btn btn-primary">Renew all</button> |
490 |
<div id="viewnote_[% ISSUE.issue_id | html %]"> |
470 |
[% END %] |
491 |
[% ISSUE.note | html %] |
471 |
</form> |
492 |
</div> |
472 |
|
493 |
<a id="save_[% ISSUE.issue_id | html %]" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | html %]" class="btn btn-primary btn-sm btn-add-note noprint" data-title="[% ISSUE.title | html %] [% FOREACH subtitle IN ISSUE.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %][% subtitle | html %][% END %]" data-issueid="[% ISSUE.issue_id | html %]" id="save_[% ISSUE.issue_id | html %]"> |
473 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
494 |
[% IF ( ISSUE.note ) -%] |
474 |
<form id="renewall" class="js-hide" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
495 |
<span>Edit note</span> |
475 |
<legend class="sr-only">Renew</legend> |
496 |
[% ELSE -%] |
476 |
<input type="hidden" name="from" value="opac_user" /> |
497 |
<span>Add note</span> |
477 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" /> |
498 |
[% END %] |
478 |
[% FOREACH ISSUE IN ISSUES %] |
499 |
</a> |
479 |
[% IF ISSUE.status %] |
500 |
<input type="hidden" id="note_[% ISSUE.issue_id | html %]" name="note" value="[% ISSUE.note | html %]" data-origvalue="[% ISSUE.note | html %]" /> |
480 |
<input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" /> |
501 |
</td> |
481 |
[% END %] |
502 |
[% END %] |
|
|
503 |
</tr> |
504 |
[% END # /FOREACH ISSUES %] |
505 |
</tbody> |
506 |
</table> |
507 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
508 |
<input type="submit" class="btn btn-primary" value="Renew selected" /> |
509 |
<button type="button" id="renewall_js" class="btn btn-primary">Renew all</button> |
482 |
[% END %] |
510 |
[% END %] |
483 |
<input type="submit" class="btn btn-primary" value="Renew all" /> |
|
|
484 |
</form> |
511 |
</form> |
485 |
[% END %] |
512 |
|
486 |
[% ELSE %] |
513 |
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] |
487 |
<table class="table table-bordered table-striped"> |
514 |
<form id="renewall" class="js-hide" action="/cgi-bin/koha/opac-renew.pl" method="post"> |
488 |
<caption class="sr-only">Checked out</caption> |
515 |
<legend class="sr-only">Renew</legend> |
489 |
<tr><td>You have nothing checked out</td></tr> |
516 |
<input type="hidden" name="from" value="opac_user" /> |
490 |
</table> |
517 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" /> |
491 |
[% END # IF issues_count %] |
518 |
[% FOREACH ISSUE IN ISSUES %] |
492 |
|
519 |
[% IF ISSUE.status %] |
493 |
<!-- Add note modal --> |
520 |
<input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" /> |
494 |
<div class="modal" id="addNoteModal" tabindex="-1" aria-labelledby="addNoteLabel" aria-hidden="true"> |
521 |
[% END %] |
495 |
<div class="modal-dialog"> |
522 |
[% END %] |
496 |
<form action="#" id="addNoteForm"> |
523 |
<input type="submit" class="btn btn-primary" value="Renew all" /> |
497 |
<div class="modal-content"> |
524 |
</form> |
498 |
<div class="modal-header"> |
525 |
[% END %] |
499 |
<h5 class="modal-title" id="addNoteLabel">Report a problem</h5> |
526 |
[% ELSE %] |
500 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> |
527 |
<table class="table table-bordered table-striped"> |
501 |
<span aria-hidden="true">×</span> |
528 |
<caption class="sr-only">Checked out</caption> |
502 |
</button> |
529 |
<tr><td>You have nothing checked out</td></tr> |
503 |
</div> |
530 |
</table> |
504 |
<div class="modal-body" id="addNoteBody"> |
531 |
[% END # IF issues_count %] |
505 |
<h6 id="addNoteTitle"></h6> |
532 |
|
506 |
<input type="hidden" id="addNoteIssueId" name="issue_id" value="" /> |
533 |
<!-- Add note modal --> |
507 |
<textarea name="note" id="addNote" rows="4"></textarea> |
534 |
<div class="modal" id="addNoteModal" tabindex="-1" aria-labelledby="addNoteLabel" aria-hidden="true"> |
508 |
<div class="hint">Your note will be shown to the librarian when the item is checked in.</div> |
535 |
<div class="modal-dialog"> |
509 |
</div> |
536 |
<form action="#" id="addNoteForm"> |
510 |
<div class="modal-footer"> |
537 |
<div class="modal-content"> |
511 |
<button type="submit" class="btn btn-primary">Submit note</button> |
538 |
<div class="modal-header"> |
512 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
539 |
<h5 class="modal-title" id="addNoteLabel">Report a problem</h5> |
|
|
540 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> |
541 |
<span aria-hidden="true">×</span> |
542 |
</button> |
543 |
</div> |
544 |
<div class="modal-body" id="addNoteBody"> |
545 |
<h6 id="addNoteTitle"></h6> |
546 |
<input type="hidden" id="addNoteIssueId" name="issue_id" value="" /> |
547 |
<textarea name="note" id="addNote" rows="4"></textarea> |
548 |
<div class="hint">Your note will be shown to the librarian when the item is checked in.</div> |
549 |
</div> |
550 |
<div class="modal-footer"> |
551 |
<button type="submit" class="btn btn-primary">Submit note</button> |
552 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
553 |
</div> |
513 |
</div> |
554 |
</div> |
514 |
</div> |
555 |
</form> |
515 |
</form> |
556 |
</div> |
516 |
</div> |
557 |
</div> |
517 |
</div> |
|
|
518 |
|
558 |
|
519 |
</div> <!-- / .opac-user-checkouts --> |
559 |
</div> <!-- / .opac-user-checkouts --> |
520 |
|
560 |
|
521 |
[% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %] |
561 |
[% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %] |
522 |
<div id="opac-user-clubs"> |
562 |
<div id="opac-user-clubs" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-clubs-tab-link"> |
523 |
Loading... |
563 |
Loading... |
524 |
</div> |
|
|
525 |
[% END %] |
526 |
|
527 |
[% IF ( OPACFinesTab ) %] |
528 |
<!-- FINES BOX --> |
529 |
[% IF ( amountoutstanding > 0 ) %] |
530 |
<div id="opac-user-fines"> |
531 |
<table class="table table-bordered table-striped"> |
532 |
<caption>Charges</caption> |
533 |
<thead><tr><th colspan="2">Amount</th></tr></thead> |
534 |
<tbody> |
535 |
<tr> |
536 |
<td>You currently owe fines and charges amounting to:</td> |
537 |
<td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td> |
538 |
</tr> |
539 |
</tbody> |
540 |
</table> |
541 |
</div> |
564 |
</div> |
542 |
[% END %] |
565 |
[% END %] |
543 |
|
566 |
|
544 |
[% IF ( amountoutstanding < 0 ) %] |
567 |
[% IF ( OPACFinesTab ) %] |
545 |
<div id="opac-user-fines"> |
568 |
<!-- FINES BOX --> |
546 |
<table class="table table-bordered table-striped"> |
569 |
[% IF ( amountoutstanding > 0 ) %] |
547 |
<caption>Credits</caption> |
570 |
<div id="opac-user-fines" class="tab-pane" id="home" role="tabpanel" aria-labelledby="opac-user-fines-tab"> |
548 |
<thead><tr><th colspan="2">Amount</th></tr></thead> |
571 |
<table class="table table-bordered table-striped"> |
549 |
<tbody> |
572 |
<caption>Charges</caption> |
|
|
573 |
<thead><tr><th colspan="2">Amount</th></tr></thead> |
574 |
<tbody> |
575 |
<tr> |
576 |
<td>You currently owe fines and charges amounting to:</td> |
577 |
<td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td> |
578 |
</tr> |
579 |
</tbody> |
580 |
</table> |
581 |
</div> |
582 |
[% END %] |
583 |
|
584 |
[% IF ( amountoutstanding < 0 ) %] |
585 |
<div id="opac-user-fines" class="tab-pane" id="home" role="tabpanel" aria-labelledby="opac-user-fines-tab"> |
586 |
<table class="table table-bordered table-striped"> |
587 |
<caption>Credits</caption> |
588 |
<thead><tr><th colspan="2">Amount</th></tr></thead> |
589 |
<tbody> |
590 |
<tr> |
591 |
<td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding * -1 | $Price %]</a></td> |
592 |
</tr> |
593 |
</tbody> |
594 |
</table> |
595 |
</div> |
596 |
[% END %] |
597 |
|
598 |
[% IF relatives_with_fines %] |
599 |
<div id="opac-user-relative-fines" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-relative-fines-tab"> |
600 |
<table class="table table-bordered table-striped"> |
601 |
<caption>Fines and charges</caption> |
602 |
<thead> |
603 |
<tr> |
604 |
<th colspan="2">Amount</th> |
605 |
</tr> |
606 |
</thead> |
607 |
<tbody> |
608 |
[% FOREACH r IN relatives_with_fines %] |
609 |
<tr> |
610 |
<td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td> |
611 |
<td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td> |
612 |
</tr> |
613 |
[% END %] |
614 |
</tbody> |
615 |
</table> |
616 |
</div> |
617 |
[% END %] |
618 |
[% END # / OPACFinesTab %] |
619 |
|
620 |
[% IF relatives %] |
621 |
<div id="opac-user-relative-issues" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-relative-issues-tab"> |
622 |
<table id="opac-user-relative-issues-table" class="table table-bordered table-striped"> |
623 |
<caption class="sr-only">Relative issues</caption> |
624 |
<thead> |
550 |
<tr> |
625 |
<tr> |
551 |
<td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding * -1 | $Price %]</a></td> |
626 |
<th class="anti-the">Title</th> |
|
|
627 |
<th>Due</th> |
628 |
<th>Barcode</th> |
629 |
<th>Call number</th> |
630 |
<th class="psort">Relative</th> |
552 |
</tr> |
631 |
</tr> |
|
|
632 |
</thead> |
633 |
|
634 |
<tbody> |
635 |
[% FOREACH r IN relatives %] |
636 |
[% FOREACH c IN r.checkouts %] |
637 |
<tr> |
638 |
<td> |
639 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% c.item.biblio.biblionumber | uri %]"> |
640 |
[% c.item.biblio.title | html %][% IF ( c.item.enumchron ) %] [% c.item.enumchron | html %][% END %] |
641 |
</a> |
642 |
</td> |
643 |
|
644 |
<td> |
645 |
[% c.date_due | $KohaDates %] |
646 |
</td> |
647 |
|
648 |
<td> |
649 |
[% c.item.barcode | html %] |
650 |
</td> |
651 |
|
652 |
<td> |
653 |
[% c.item.itemcallnumber | html %] |
654 |
</td> |
655 |
|
656 |
<td> |
657 |
[% r.firstname | html %] [% r.surname | html %] |
658 |
</td> |
659 |
</tr> |
660 |
[% END %] |
661 |
[% END %] |
553 |
</tbody> |
662 |
</tbody> |
554 |
</table> |
663 |
</table> |
555 |
</div> |
664 |
</div> |
556 |
[% END %] |
665 |
[% END %] |
557 |
|
666 |
|
558 |
[% IF relatives_with_fines %] |
667 |
[% IF ( overdues_count ) %] |
559 |
<div id="opac-user-relative-fines"> |
668 |
<div id="opac-user-overdues" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-overdues-tab"> |
560 |
<table class="table table-bordered table-striped"> |
669 |
<table id="overduest" class="table table-bordered table-striped"> |
561 |
<caption>Fines and charges</caption> |
670 |
<caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption> |
|
|
671 |
<!-- OVERDUES TABLE ROWS --> |
562 |
<thead> |
672 |
<thead> |
563 |
<tr> |
673 |
<tr> |
564 |
<th colspan="2">Amount</th> |
674 |
[% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %] |
|
|
675 |
<th class="anti-the">Title</th> |
676 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %] |
677 |
[% IF ( show_barcode ) %]<th>Barcode</th>[% END %] |
678 |
<th>Call number</th> |
679 |
<th class="psort">Due</th> |
680 |
[% IF ( OpacRenewalAllowed ) %] |
681 |
<th class="nosort">Renew</th> |
682 |
[% END %] |
683 |
[% IF ( OPACFinesTab ) %] |
684 |
<th>Fines</th> |
685 |
[% END %] |
565 |
</tr> |
686 |
</tr> |
566 |
</thead> |
687 |
</thead> |
567 |
<tbody> |
688 |
<tbody> |
568 |
[% FOREACH r IN relatives_with_fines %] |
689 |
[% FOREACH OVERDUE IN OVERDUES %] |
569 |
<tr> |
|
|
570 |
<td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td> |
571 |
<td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td> |
572 |
</tr> |
573 |
[% END %] |
574 |
</tbody> |
575 |
</table> |
576 |
</div> |
577 |
[% END %] |
578 |
[% END # / OPACFinesTab %] |
579 |
|
580 |
[% IF relatives %] |
581 |
<div id="opac-user-relative-issues"> |
582 |
<table id="opac-user-relative-issues-table" class="table table-bordered table-striped"> |
583 |
<caption class="sr-only">Relative issues</caption> |
584 |
<thead> |
585 |
<tr> |
586 |
<th class="anti-the">Title</th> |
587 |
<th>Due</th> |
588 |
<th>Barcode</th> |
589 |
<th>Call number</th> |
590 |
<th class="psort">Relative</th> |
591 |
</tr> |
592 |
</thead> |
593 |
|
594 |
<tbody> |
595 |
[% FOREACH r IN relatives %] |
596 |
[% FOREACH c IN r.checkouts %] |
597 |
<tr> |
690 |
<tr> |
598 |
<td> |
691 |
[% IF ( JacketImages ) %] |
599 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% c.item.biblio.biblionumber | uri %]"> |
692 |
<td class="jacketcell"> |
600 |
[% c.item.biblio.title | html %][% IF ( c.item.enumchron ) %] [% c.item.enumchron | html %][% END %] |
693 |
[% IF ( OPACAmazonCoverImages ) %] |
601 |
</a> |
694 |
[% IF ( OVERDUE.normalized_isbn ) %] |
602 |
</td> |
695 |
<a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a> |
603 |
|
696 |
[% ELSE %] |
604 |
<td> |
697 |
<a href="#"><span class="no-image">No cover image available</span></a> |
605 |
[% c.date_due | $KohaDates %] |
698 |
[% END %] |
606 |
</td> |
699 |
[% END %] |
607 |
|
|
|
608 |
<td> |
609 |
[% c.item.barcode | html %] |
610 |
</td> |
611 |
|
612 |
<td> |
613 |
[% c.item.itemcallnumber | html %] |
614 |
</td> |
615 |
|
700 |
|
616 |
<td> |
701 |
[% IF ( GoogleJackets ) %] |
617 |
[% r.firstname | html %] [% r.surname | html %] |
702 |
[% IF ( OVERDUE.normalized_isbn ) %] |
618 |
</td> |
703 |
<div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
619 |
</tr> |
704 |
[% ELSE %] |
620 |
[% END %] |
705 |
<a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a> |
621 |
[% END %] |
706 |
[% END %] |
622 |
</tbody> |
|
|
623 |
</table> |
624 |
</div> |
625 |
[% END %] |
626 |
|
627 |
[% IF ( overdues_count ) %] |
628 |
<div id="opac-user-overdues"> |
629 |
<table id="overduest" class="table table-bordered table-striped"> |
630 |
<caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption> |
631 |
<!-- OVERDUES TABLE ROWS --> |
632 |
<thead> |
633 |
<tr> |
634 |
[% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %] |
635 |
<th class="anti-the">Title</th> |
636 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %] |
637 |
[% IF ( show_barcode ) %]<th>Barcode</th>[% END %] |
638 |
<th>Call number</th> |
639 |
<th class="psort">Due</th> |
640 |
[% IF ( OpacRenewalAllowed ) %] |
641 |
<th class="nosort">Renew</th> |
642 |
[% END %] |
643 |
[% IF ( OPACFinesTab ) %] |
644 |
<th>Fines</th> |
645 |
[% END %] |
646 |
</tr> |
647 |
</thead> |
648 |
<tbody> |
649 |
[% FOREACH OVERDUE IN OVERDUES %] |
650 |
<tr> |
651 |
[% IF ( JacketImages ) %] |
652 |
<td class="jacketcell"> |
653 |
[% IF ( OPACAmazonCoverImages ) %] |
654 |
[% IF ( OVERDUE.normalized_isbn ) %] |
655 |
<a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a> |
656 |
[% ELSE %] |
657 |
<a href="#"><span class="no-image">No cover image available</span></a> |
658 |
[% END %] |
707 |
[% END %] |
659 |
[% END %] |
|
|
660 |
|
708 |
|
661 |
[% IF ( GoogleJackets ) %] |
709 |
[% IF ( BakerTaylorEnabled ) %] |
662 |
[% IF ( OVERDUE.normalized_isbn ) %] |
710 |
[% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %] |
663 |
<div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
711 |
[% IF ( bt_id ) %] |
664 |
[% ELSE %] |
712 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
665 |
<a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a> |
713 |
[% ELSE %] |
|
|
714 |
<span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! --> |
715 |
[% END %] |
666 |
[% END %] |
716 |
[% END %] |
667 |
[% END %] |
|
|
668 |
|
717 |
|
669 |
[% IF ( BakerTaylorEnabled ) %] |
718 |
[% IF ( SyndeticsCoverImages ) %] |
670 |
[% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %] |
719 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&upc=[% OVERDUE.normalized_upc | html %]&oclc=[% OVERDUE.normalized_oclc | html %]&type=xw10" alt="" class="item-thumbnail" /> |
671 |
[% IF ( bt_id ) %] |
|
|
672 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
673 |
[% ELSE %] |
674 |
<span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! --> |
675 |
[% END %] |
720 |
[% END %] |
676 |
[% END %] |
721 |
</td> |
|
|
722 |
[% END # /IF jacketcell %] |
677 |
|
723 |
|
678 |
[% IF ( SyndeticsCoverImages ) %] |
724 |
<td> |
679 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&upc=[% OVERDUE.normalized_upc | html %]&oclc=[% OVERDUE.normalized_oclc | html %]&type=xw10" alt="" class="item-thumbnail" /> |
725 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=OVERDUE %]</a> |
680 |
[% END %] |
726 |
<span class="item-details">[% OVERDUE.author | html %]</span> |
681 |
</td> |
727 |
</td> |
682 |
[% END # /IF jacketcell %] |
|
|
683 |
|
728 |
|
684 |
<td> |
729 |
[% UNLESS ( item_level_itypes ) %] |
685 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=OVERDUE %]</a> |
730 |
<td> |
686 |
<span class="item-details">[% OVERDUE.author | html %]</span> |
731 |
[% IF ( OVERDUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %] |
687 |
</td> |
732 |
<img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" /> |
688 |
|
733 |
[% END %] [% OVERDUE.description | html %] |
689 |
[% UNLESS ( item_level_itypes ) %] |
734 |
</td> |
|
|
735 |
[% END %] |
736 |
[% IF ( show_barcode ) %] |
737 |
<td> |
738 |
<span class="tdlabel">Barcode:</span> |
739 |
[% OVERDUE.barcode | html %] |
740 |
</td> |
741 |
[% END %] |
690 |
<td> |
742 |
<td> |
691 |
[% IF ( OVERDUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %] |
743 |
<span class="tdlabel">Call number:</span> |
692 |
<img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" /> |
744 |
[% OVERDUE.itemcallnumber | html %] |
693 |
[% END %] [% OVERDUE.description | html %] |
|
|
694 |
</td> |
745 |
</td> |
695 |
[% END %] |
746 |
<td data-order="[% OVERDUE.date_due | html %]"> |
696 |
[% IF ( show_barcode ) %] |
747 |
<span class="tdlabel">Date due:</span> |
697 |
<td> |
748 |
[% OVERDUE.date_due | $KohaDates as_due_date => 1 %] |
698 |
<span class="tdlabel">Barcode:</span> |
|
|
699 |
[% OVERDUE.barcode | html %] |
700 |
</td> |
749 |
</td> |
701 |
[% END %] |
750 |
[% IF ( OpacRenewalAllowed ) %] |
702 |
<td> |
751 |
<td> |
703 |
<span class="tdlabel">Call number:</span> |
752 |
[% IF ( OVERDUE.debarred ) %] |
704 |
[% OVERDUE.itemcallnumber | html %] |
753 |
Account frozen |
705 |
</td> |
754 |
[% ELSIF ( OVERDUE.status ) %] |
706 |
<td data-order="[% OVERDUE.date_due | html %]"> |
755 |
[% IF ( canrenew ) %] |
707 |
<span class="tdlabel">Date due:</span> |
756 |
<a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a> |
708 |
[% OVERDUE.date_due | $KohaDates as_due_date => 1 %] |
757 |
[% END %] |
709 |
</td> |
758 |
<span class="renewals">( |
710 |
[% IF ( OpacRenewalAllowed ) %] |
759 |
[% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining |
711 |
<td> |
760 |
[% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %] |
712 |
[% IF ( OVERDUE.debarred ) %] |
761 |
/ [% OVERDUE.unseenleft | html %] of [% OVERDUE.unseenallowed | html %] renewals left before the item must be seen by the library |
713 |
Account frozen |
762 |
[% END %] |
714 |
[% ELSIF ( OVERDUE.status ) %] |
763 |
)</span> |
715 |
[% IF ( canrenew ) %] |
764 |
[% ELSIF ( OVERDUE.norenew_overdue ) %] |
716 |
<a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a> |
765 |
Not allowed<span class="renewals">(overdue)</span> |
|
|
766 |
[% ELSIF ( OVERDUE.onreserve ) %] |
767 |
On hold |
768 |
[% ELSE %] |
769 |
No renewals left |
717 |
[% END %] |
770 |
[% END %] |
718 |
<span class="renewals">( |
|
|
719 |
[% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining |
720 |
[% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %] |
721 |
/ [% OVERDUE.unseenleft | html %] of [% OVERDUE.unseenallowed | html %] renewals left before the item must be seen by the library |
722 |
[% END %] |
723 |
)</span> |
724 |
[% ELSIF ( OVERDUE.norenew_overdue ) %] |
725 |
Not allowed<span class="renewals">(overdue)</span> |
726 |
[% ELSIF ( OVERDUE.onreserve ) %] |
727 |
On hold |
728 |
[% ELSE %] |
729 |
No renewals left |
730 |
[% END %] |
771 |
[% END %] |
731 |
</td> |
772 |
</td> |
732 |
[% END %] |
773 |
[% END %] |
733 |
[% IF ( OPACFinesTab ) %] |
774 |
[% IF ( OPACFinesTab ) %] |
734 |
<td> |
775 |
<td> |
735 |
<span class="tdlabel">Fines:</span> |
776 |
<span class="tdlabel">Fines:</span> |
736 |
[% IF ( OVERDUE.charges ) %] |
777 |
[% IF ( OVERDUE.charges ) %] |
737 |
Yes |
778 |
Yes |
738 |
[% ELSE %] |
779 |
[% ELSE %] |
739 |
No |
780 |
No |
740 |
[% END %] |
781 |
[% END %] |
741 |
</td> |
782 |
</td> |
742 |
[% END %] |
783 |
[% END %] |
743 |
</tr> |
784 |
</tr> |
744 |
[% END %] |
785 |
[% END %] |
745 |
</tbody> |
786 |
</tbody> |
746 |
</table> |
787 |
</table> |
747 |
</div> <!-- / #opac-user-overdues --> |
788 |
</div> <!-- / #opac-user-overdues --> |
748 |
[% END # /overdues_count %] |
789 |
[% END # /overdues_count %] |
749 |
|
790 |
|
750 |
[% PROCESS 'holds-table.inc' HOLDS = RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %] |
791 |
[% PROCESS 'holds-table.inc' HOLDS = RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %] |
751 |
|
|
|
752 |
[% IF Koha.Preference('UseRecalls') && RECALLS.count %] |
753 |
<div id="opac-user-recalls"> |
754 |
<table id="recalls-table" class="table table-bordered table-striped"> |
755 |
<caption>Recalls <span class="count">([% RECALLS.count | html %])</span></caption> |
756 |
<thead> |
757 |
<tr> |
758 |
<th class="anti-the">Title</th> |
759 |
<th class="psort">Placed on</th> |
760 |
<th>Expires on</th> |
761 |
<th>Pickup location</th> |
762 |
<th>Status</th> |
763 |
<th class="nosort"> </th> |
764 |
</tr> |
765 |
</thead> |
766 |
<tbody> |
767 |
[% FOREACH RECALL IN RECALLS %] |
768 |
<tr> |
769 |
<td class="title"> |
770 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblio_id | html %]">[% INCLUDE 'biblio-title.inc' biblio=RECALL.biblio %]</a> [% IF RECALL.item_level %]<p class="hint">Item recalled: [% RECALL.item.barcode | html %]</p>[% END %] |
771 |
</td> |
772 |
<td class="recalldate" data-order="[% RECALL.created_date | html %]"> |
773 |
<span title="[% RECALL.created_date | html %]"> |
774 |
<span class="tdlabel">Recall date:</span> |
775 |
[% RECALL.created_date | $KohaDates %] |
776 |
</span> |
777 |
</td> |
778 |
<td class="expirationdate" data-order="[% RECALL.expiration_date | html %]"> |
779 |
[% IF ( RECALL.expiration_date ) %] |
780 |
<span title="[% RECALL.expiration_date | html %]"> |
781 |
<span class="tdlabel">Expiration:</span> |
782 |
[% RECALL.expiration_date | $KohaDates %] |
783 |
</span> |
784 |
[% ELSE %] |
785 |
<span title="0000-00-00"> |
786 |
<span class="tdlabel">Expiration:</span> |
787 |
Never expires |
788 |
</span> |
789 |
[% END %] |
790 |
</td> |
791 |
<td class="branch"> |
792 |
<span class="tdlabel">Pick up location:</span> |
793 |
[% RECALL.library.branchname | html %] |
794 |
</td> |
795 |
<td class="status"> |
796 |
<span class="tdlabel">Status:</span> |
797 |
[% IF ( RECALL.requested ) %] |
798 |
Requested |
799 |
[% ELSIF ( RECALL.overdue ) %] |
800 |
Overdue to be returned |
801 |
[% ELSIF ( RECALL.in_transit ) %] |
802 |
In transit to [% RECALL.library.branchname | html %] |
803 |
[% ELSIF ( RECALL.waiting ) %] |
804 |
Ready for pickup |
805 |
[% END %] |
806 |
</td> |
807 |
<td class="cancelrecall"> |
808 |
[% IF ( RECALL.requested or RECALL.overdue ) %] |
809 |
<form action="/cgi-bin/koha/opac-recall.pl" method="post"> |
810 |
<input type="hidden" name="op" value="cancel"> |
811 |
<input type="hidden" name="recall_id" value="[% RECALL.id | html %]"> |
812 |
<input type="hidden" name="biblionumber" value="[% RECALL.biblio_id | html %]"> |
813 |
<button type="submit" name="submit" class="btn btn-sm btn-danger cancel_recall"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button> |
814 |
</form> |
815 |
[% END %] |
816 |
</td> |
817 |
[% END %] |
818 |
</tr> |
819 |
</tbody> |
820 |
</table> |
821 |
</div> |
822 |
[% END # / # RECALLS.count %] |
823 |
|
792 |
|
824 |
[% IF Koha.Preference('ArticleRequests') %] |
793 |
[% IF Koha.Preference('UseRecalls') && RECALLS.count %] |
825 |
<div id="opac-user-article-requests"> |
794 |
<div id="opac-user-recalls" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-recalls-tab"> |
826 |
[% IF current_article_requests.size %] |
795 |
<table id="recalls-table" class="table table-bordered table-striped"> |
827 |
<table id="article-requests-table" class="table table-bordered table-striped"> |
796 |
<caption>Recalls <span class="count">([% RECALLS.count | html %])</span></caption> |
828 |
<caption>Article requests <span class="count"></span></caption> |
|
|
829 |
<thead> |
797 |
<thead> |
830 |
<tr> |
798 |
<tr> |
831 |
<th class="anti-the article-request-record-title">Record title</th> |
799 |
<th class="anti-the">Title</th> |
832 |
<th class="psort article-request-created-on">Placed on</th> |
800 |
<th class="psort">Placed on</th> |
833 |
<th class="anti-the article-request-title">Title</th> |
801 |
<th>Expires on</th> |
834 |
<th class="article-request-author">Author</th> |
802 |
<th>Pickup location</th> |
835 |
<th class="article-request-volume">Volume</th> |
803 |
<th>Status</th> |
836 |
<th class="article-request-issue">Issue</th> |
804 |
<th class="nosort"> </th> |
837 |
<th class="article-request-date">Date</th> |
|
|
838 |
<th class="article-request-toc" title="Table of contents">TOC</th> |
839 |
<th class="article-request-pages">Pages</th> |
840 |
<th class="article-request-chapters">Chapters</th> |
841 |
<th class="article-request-patron-notes">Notes</th> |
842 |
<th class="article-request-format">Format</th> |
843 |
<th class="article-request-status">Status</th> |
844 |
<th class="article-request-branchcode">Pickup library</th> |
845 |
<th class="nosort article-request-cancel"> </th> |
846 |
</tr> |
805 |
</tr> |
847 |
</thead> |
806 |
</thead> |
848 |
|
|
|
849 |
<tbody> |
807 |
<tbody> |
850 |
[% FOREACH ar IN current_article_requests %] |
808 |
[% FOREACH RECALL IN RECALLS %] |
851 |
<td class="article-request-record-title"> |
809 |
<tr> |
852 |
<a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]"> |
810 |
<td class="title"> |
853 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
811 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblio_id | html %]">[% INCLUDE 'biblio-title.inc' biblio=RECALL.biblio %]</a> [% IF RECALL.item_level %]<p class="hint">Item recalled: [% RECALL.item.barcode | html %]</p>[% END %] |
854 |
[% ar.item.enumchron | html %] |
|
|
855 |
</a> |
856 |
[% ar.biblio.author | html %] |
857 |
[% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %] |
858 |
</td> |
859 |
|
860 |
<td class="article-request-created_on"> |
861 |
[% ar.created_on | $KohaDates %] |
862 |
</td> |
863 |
|
864 |
<td class="article-request-title"> |
865 |
[% ar.title | html %] |
866 |
</td> |
867 |
|
868 |
<td class="article-request-author"> |
869 |
[% ar.author | html %] |
870 |
</td> |
871 |
|
872 |
<td class="article-request-volume"> |
873 |
[% ar.volume | html %] |
874 |
</td> |
875 |
|
876 |
<td class="article-request-issue"> |
877 |
[% ar.issue | html %] |
878 |
</td> |
879 |
|
880 |
<td class="article-request-date"> |
881 |
[% ar.date | html %] |
882 |
</td> |
812 |
</td> |
883 |
|
813 |
<td class="recalldate" data-order="[% RECALL.created_date | html %]"> |
884 |
<td class="article-request-toc"> |
814 |
<span title="[% RECALL.recalldate | html %]"> |
885 |
[% IF ar.toc_request %]Yes[% END %] |
815 |
<span class="tdlabel">Recall date:</span> |
|
|
816 |
[% RECALL.created_date | $KohaDates %] |
817 |
</span> |
886 |
</td> |
818 |
</td> |
887 |
|
819 |
<td class="expirationdate" data-order="[% RECALL.expiration_date | html %]"> |
888 |
<td class="article-request-pages"> |
820 |
[% IF ( RECALL.expiration_date ) %] |
889 |
[% ar.pages | html %] |
821 |
<span title="[% RECALL.expiration_date | html %]"> |
|
|
822 |
<span class="tdlabel">Expiration:</span> |
823 |
[% RECALL.expirationdate | $KohaDates %] |
824 |
</span> |
825 |
[% ELSE %] |
826 |
<span title="0000-00-00"> |
827 |
<span class="tdlabel">Expiration:</span> |
828 |
Never expires |
829 |
</span> |
830 |
[% END %] |
890 |
</td> |
831 |
</td> |
891 |
|
832 |
<td class="branch"> |
892 |
<td class="article-request-chapters"> |
833 |
<span class="tdlabel">Pick up location:</span> |
893 |
[% ar.chapters | html %] |
834 |
[% RECALL.library.branchname | html %] |
894 |
</td> |
835 |
</td> |
895 |
|
836 |
<td class="status"> |
896 |
<td class="article-request-patron-notes"> |
837 |
<span class="tdlabel">Status:</span> |
897 |
[% ar.patron_notes | html %] |
838 |
[% IF ( RECALL.requested ) %] |
|
|
839 |
Requested |
840 |
[% ELSIF ( RECALL.overdue ) %] |
841 |
Overdue to be returned |
842 |
[% ELSIF ( RECALL.in_transit ) %] |
843 |
In transit to [% RECALL.library.branchname | html %] |
844 |
[% ELSIF ( RECALL.waiting ) %] |
845 |
Ready for pickup |
846 |
[% END %] |
898 |
</td> |
847 |
</td> |
899 |
|
848 |
<td class="cancelrecall"> |
900 |
<td class="article-request-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
849 |
[% IF ( RECALL.requested or RECALL.overdue ) %] |
901 |
|
850 |
<form action="/cgi-bin/koha/opac-recall.pl" method="post"> |
902 |
<td class="article-request-status"> |
851 |
<input type="hidden" name="op" value="cancel"> |
903 |
[% IF ar.status == 'PENDING' %] |
852 |
<input type="hidden" name="recall_id" value="[% RECALL.id | html %]"> |
904 |
Pending |
853 |
<input type="hidden" name="biblionumber" value="[% RECALL.biblio_id | html %]"> |
905 |
[% ELSIF ar.status == 'PROCESSING' %] |
854 |
<button type="submit" name="submit" class="btn btn-sm btn-danger cancel_recall"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button> |
906 |
Processing |
855 |
</form> |
907 |
[% ELSIF ar.status == 'REQUESTED' %] |
|
|
908 |
New |
909 |
[% ELSIF ar.status == 'COMPLETED' %] |
910 |
Completed |
911 |
[% ELSIF ar.status == 'CANCELED' %] |
912 |
Canceled |
913 |
[% END %] |
856 |
[% END %] |
914 |
</td> |
857 |
</td> |
|
|
858 |
[% END %] |
859 |
</tr> |
860 |
</tbody> |
861 |
</table> |
862 |
</div> |
863 |
[% END # / # RECALLS.count %] |
864 |
|
865 |
[% IF Koha.Preference('ArticleRequests') %] |
866 |
<div id="opac-user-article-requests" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-article-requests-tab"> |
867 |
[% IF current_article_requests.size %] |
868 |
<table id="article-requests-table" class="table table-bordered table-striped"> |
869 |
<caption>Article requests <span class="count"></span></caption> |
870 |
<thead> |
871 |
<tr> |
872 |
<th class="anti-the article-request-record-title">Record title</th> |
873 |
<th class="psort article-request-created-on">Placed on</th> |
874 |
<th class="anti-the article-request-title">Title</th> |
875 |
<th class="article-request-author">Author</th> |
876 |
<th class="article-request-volume">Volume</th> |
877 |
<th class="article-request-issue">Issue</th> |
878 |
<th class="article-request-date">Date</th> |
879 |
<th class="article-request-toc" title="Table of contents">TOC</th> |
880 |
<th class="article-request-pages">Pages</th> |
881 |
<th class="article-request-chapters">Chapters</th> |
882 |
<th class="article-request-patron-notes">Notes</th> |
883 |
<th class="article-request-format">Format</th> |
884 |
<th class="article-request-status">Status</th> |
885 |
<th class="article-request-branchcode">Pickup library</th> |
886 |
<th class="nosort article-request-cancel"> </th> |
887 |
</tr> |
888 |
</thead> |
915 |
|
889 |
|
916 |
<td class="article-request-branchcode"> |
890 |
<tbody> |
917 |
[% ar.branch.branchname | html %] |
891 |
<tr> |
918 |
</td> |
892 |
[% FOREACH ar IN current_article_requests %] |
|
|
893 |
<td class="article-request-record-title"> |
894 |
<a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]"> |
895 |
[% INCLUDE 'biblio-title.inc' biblio=ar.biblio %] |
896 |
[% ar.item.enumchron | html %] |
897 |
</a> |
898 |
[% ar.biblio.author | html %] |
899 |
[% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %] |
900 |
</td> |
901 |
|
902 |
<td class="article-request-created_on"> |
903 |
[% ar.created_on | $KohaDates %] |
904 |
</td> |
905 |
|
906 |
<td class="article-request-title"> |
907 |
[% ar.title | html %] |
908 |
</td> |
909 |
|
910 |
<td class="article-request-author"> |
911 |
[% ar.author | html %] |
912 |
</td> |
913 |
|
914 |
<td class="article-request-volume"> |
915 |
[% ar.volume | html %] |
916 |
</td> |
917 |
|
918 |
<td class="article-request-issue"> |
919 |
[% ar.issue | html %] |
920 |
</td> |
921 |
|
922 |
<td class="article-request-date"> |
923 |
[% ar.date | html %] |
924 |
</td> |
925 |
|
926 |
<td class="article-request-toc"> |
927 |
[% IF ar.toc_request %]Yes[% END %] |
928 |
</td> |
929 |
|
930 |
<td class="article-request-pages"> |
931 |
[% ar.pages | html %] |
932 |
</td> |
933 |
|
934 |
<td class="article-request-chapters"> |
935 |
[% ar.chapters | html %] |
936 |
</td> |
937 |
|
938 |
<td class="article-request-patron-notes"> |
939 |
[% ar.patron_notes | html %] |
940 |
</td> |
941 |
|
942 |
<td class="article-request-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td> |
943 |
|
944 |
<td class="article-request-status"> |
945 |
[% IF ar.status == 'PENDING' %] |
946 |
Pending |
947 |
[% ELSIF ar.status == 'PROCESSING' %] |
948 |
Processing |
949 |
[% ELSIF ar.status == 'REQUESTED' %] |
950 |
New |
951 |
[% ELSIF ar.status == 'COMPLETED' %] |
952 |
Completed |
953 |
[% ELSIF ar.status == 'CANCELED' %] |
954 |
Canceled |
955 |
[% END %] |
956 |
</td> |
919 |
|
957 |
|
920 |
<td class="article-request-cancel"> |
958 |
<td class="article-request-branchcode"> |
921 |
<button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button> |
959 |
[% ar.branch.branchname | html %] |
922 |
</td> |
960 |
</td> |
923 |
</tr> |
|
|
924 |
[% END %] |
925 |
</tbody> |
926 |
</table> |
927 |
[% ELSE %] |
928 |
<table class="table table-bordered table-striped"> |
929 |
<caption class="sr-only">Article requests</caption> |
930 |
<tr><td>You have no article requests currently.</td></tr> |
931 |
</table> |
932 |
[% END # IF current_article_requests.size %] |
933 |
</div> <!-- / #opac-user-article-requests --> |
934 |
[% END %] |
935 |
|
961 |
|
|
|
962 |
<td class="article-request-cancel"> |
963 |
<button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button> |
964 |
</td> |
965 |
[% END %] |
966 |
</tr> |
967 |
</tbody> |
968 |
</table> |
969 |
[% ELSE %] |
970 |
<table class="table table-bordered table-striped"> |
971 |
<caption class="sr-only">Article requests</caption> |
972 |
<tr><td>You have no article requests currently.</td></tr> |
973 |
</table> |
974 |
[% END # IF current_article_requests.size %] |
975 |
</div> <!-- / #opac-user-article-requests --> |
976 |
[% END %] |
977 |
</div> <!-- /.tab-content --> |
936 |
</div> <!-- /#opac-user-views --> |
978 |
</div> <!-- /#opac-user-views --> |
937 |
</div> <!-- /#userdetails --> |
979 |
</div> <!-- /#userdetails --> |
938 |
</div> <!-- /.col-10 --> |
980 |
</div> <!-- /.col-10 --> |
Lines 1000-1006
Link Here
|
1000 |
} |
1042 |
} |
1001 |
$(document).ready(function(){ |
1043 |
$(document).ready(function(){ |
1002 |
$('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests_count | html %]')); |
1044 |
$('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests_count | html %]')); |
1003 |
$('#opac-user-views').tabs(); |
1045 |
|
1004 |
$(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); |
1046 |
$(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); |
1005 |
|
1047 |
|
1006 |
$(".btn-delete-hold").on("click", function(e){ |
1048 |
$(".btn-delete-hold").on("click", function(e){ |
Lines 1311-1317
Link Here
|
1311 |
[% END %] |
1353 |
[% END %] |
1312 |
|
1354 |
|
1313 |
[% IF ( overdrive_tab ) %] |
1355 |
[% IF ( overdrive_tab ) %] |
1314 |
$("#opac-user-views").tabs("select", "#opac-user-overdrive"); |
1356 |
$("#opac-user-views a[href='#opac-user-overdrive']").tab("show"); |
1315 |
[% END %] |
1357 |
[% END %] |
1316 |
|
1358 |
|
1317 |
$("#opac-user-overdrive").each( function() { |
1359 |
$("#opac-user-overdrive").each( function() { |
Lines 1328-1334
Link Here
|
1328 |
KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]"); |
1370 |
KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]"); |
1329 |
[% END %] |
1371 |
[% END %] |
1330 |
[% IF ( recordedbooks_tab ) %] |
1372 |
[% IF ( recordedbooks_tab ) %] |
1331 |
$("#opac-user-views").tabs("select", "#opac-user-recordedbooks"); |
1373 |
$("#opac-user-views a[href='#opac-user-recordedbooks']").tab("show"); |
1332 |
[% END %] |
1374 |
[% END %] |
1333 |
$("#opac-user-recordedbooks").each( function() { |
1375 |
$("#opac-user-recordedbooks").each( function() { |
1334 |
KOHA.RecordedBooks.display_account_details(this); |
1376 |
KOHA.RecordedBooks.display_account_details(this); |
1335 |
- |
|
|