Lines 307-458
Link Here
|
307 |
<div class="container-fluid"> |
307 |
<div class="container-fluid"> |
308 |
<div class="row"> |
308 |
<div class="row"> |
309 |
<div class="col order-first order-md-first order-lg-2"> |
309 |
<div class="col order-first order-md-first order-lg-2"> |
310 |
<ul class="nav nav-tabs" role="tablist"> |
310 |
[% WRAPPER tabs %] |
311 |
<li class="nav-item" role="presentation"> |
311 |
[% WRAPPER tabs_nav %] |
312 |
<a class="nav-link active" href="#checkouts-tab" id="checkouts" aria-controls="home" aria-selected="true" data-toggle="tab">Checkouts ([% issues_count | html %])</a> |
312 |
[% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %] |
313 |
</li> |
313 |
<span>Checkouts ([% issues_count | html %])</span> |
314 |
<li class="nav-item" role="presentation"> |
314 |
[% END %] |
315 |
<a class="nav-link" href="#holds-tab" id="holds" aria-controls="home" aria-selected="false" data-toggle="tab"> |
315 |
[% WRAPPER tab_item tabname= "holds" %] |
316 |
[% IF waiting_holds_count %] |
316 |
[% IF waiting_holds_count %] |
317 |
<i class="fa fa-exclamation-circle" aria-hidden="true"></i> |
317 |
<i class="fa fa-exclamation-circle" aria-hidden="true"></i> |
318 |
[% END %] |
318 |
[% END %] |
319 |
Holds ([% HOLDS.count | html %]) |
319 |
<span>Holds</span> ([% HOLDS.count | html %]) |
320 |
</a> |
320 |
[% END %] |
321 |
</li> |
321 |
[% WRAPPER tab_item tabname= "account" %] |
322 |
<li class="nav-item" role="presentation"> |
322 |
<span>Charges ([% total | $Price %])</span> |
323 |
<a class="nav-link" href="#account-tab" id="account" aria-controls="home" aria-selected="false" data-toggle="tab">Charges ([% total | $Price %])</a> |
323 |
[% END %] |
324 |
</li> |
324 |
[% END # /WRAPPER tabs_nav %] |
325 |
</ul> |
325 |
|
326 |
<div class="tab-content"> |
326 |
[% WRAPPER tab_panels %] |
327 |
<div id="checkouts-tab" class="tab-pane show active" aria-labelledby="checkouts"> |
327 |
[% WRAPPER tab_panel tabname="checkouts" bt_active= 1 %] |
328 |
<div id="borrowerdetails"> |
328 |
<div id="checkouts-tab" class="tab-pane show active" aria-labelledby="checkouts"> |
329 |
[% IF ( new_issue ) %] |
329 |
<div id="borrowerdetails"> |
330 |
<div class="lastchecked"> |
330 |
[% IF ( new_issue ) %] |
331 |
<p> |
331 |
<div class="lastchecked"> |
332 |
<strong>Checked out: </strong> |
332 |
<p> |
333 |
[% new_issue.item.biblio.title | html %] ([% new_issue.item.barcode | html %]). |
333 |
<strong>Checked out: </strong> |
334 |
|
334 |
[% new_issue.item.biblio.title | html %] ([% new_issue.item.barcode | html %]). |
335 |
[% IF new_issue.item.is_bundle %] |
335 |
|
336 |
[% SET bundle_items_count = new_issue.item.bundle_items.count %] |
336 |
[% IF new_issue.item.is_bundle %] |
337 |
[% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %]. |
337 |
[% SET bundle_items_count = new_issue.item.bundle_items.count %] |
338 |
[% END %] |
338 |
[% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %]. |
|
|
339 |
[% END %] |
339 |
|
340 |
|
340 |
Due on [% new_issue.date_due | $KohaDates as_due_date => 1 %] |
341 |
Due on [% new_issue.date_due | $KohaDates as_due_date => 1 %] |
341 |
</p> |
342 |
</p> |
342 |
</div> |
343 |
</div> |
343 |
[% END %] |
344 |
[% END %] |
344 |
[% IF ( issues_count ) %] |
345 |
[% IF ( issues_count ) %] |
345 |
[% IF ( Koha.Preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
346 |
[% IF ( Koha.Preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
346 |
<table id="loanTable" class="table table-bordered table-striped"> |
347 |
<table id="loanTable" class="table table-bordered table-striped"> |
347 |
<caption>Checkouts for [% borrowername | html %] <span class="count">([% issues_count | html %] total)</span></caption> |
348 |
<caption>Checkouts for [% borrowername | html %] <span class="count">([% issues_count | html %] total)</span></caption> |
348 |
<!-- ISSUES TABLE ROWS --> |
349 |
<!-- ISSUES TABLE ROWS --> |
349 |
<thead> |
350 |
<thead> |
350 |
<tr> |
351 |
<tr> |
351 |
<th class="noshow">Checked out on</th> |
352 |
<th class="noshow">Checked out on</th> |
352 |
<th class="all anti-the">Title</th> |
353 |
<th class="all anti-the">Title</th> |
353 |
<th>Call number</th> |
354 |
<th>Call number</th> |
354 |
<th class="psort">Due</th> |
355 |
<th class="psort">Due</th> |
355 |
<th class="all nosort">Renew</th> |
356 |
<th class="all nosort">Renew</th> |
356 |
[% UNLESS ( nofines ) %] |
357 |
[% UNLESS ( nofines ) %] |
357 |
<th>Fines</th> |
358 |
<th>Fines</th> |
358 |
[% END %] |
|
|
359 |
<th></th> |
360 |
</tr> |
361 |
</thead> |
362 |
<tbody> |
363 |
[% FOREACH ISSUE IN ISSUES %] |
364 |
<tr> |
365 |
<td>[% ISSUE.issuedate | html %]</td> |
366 |
<td> |
367 |
[% UNLESS ( noitemlinks ) %] |
368 |
<a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE. biblionumber | uri %]">[% ISSUE.title | html %]</a> |
369 |
[% ELSE %] |
370 |
<strong>[% ISSUE.title | html %]</strong> |
371 |
[% END %] |
372 |
[% IF ( newissues.match(ISSUE.barcode)) %] |
373 |
<span class="label label-info">NEW</span> |
374 |
[% END %] |
359 |
[% END %] |
375 |
<span class="item-details">[% ISSUE.author | html %]</span> |
360 |
<th></th> |
376 |
([% ISSUE.barcode | html %]) |
361 |
</tr> |
377 |
</td> |
362 |
</thead> |
378 |
<td>[% ISSUE.itemcallnumber | html %]</td> |
363 |
<tbody> |
379 |
[% IF ( ISSUE.overdue ) %] |
364 |
[% FOREACH ISSUE IN ISSUES %] |
380 |
<td class="overdue" data-order="[% ISSUE.date_due | html %]"> |
365 |
<tr> |
381 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
366 |
<td>[% ISSUE.issuedate | html %]</td> |
382 |
</td> |
367 |
<td> |
383 |
[% ELSE %] |
368 |
[% UNLESS ( noitemlinks ) %] |
384 |
<td data-order="[% ISSUE.date_due | html %]"> |
369 |
<a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE. biblionumber | uri %]">[% ISSUE.title | html %]</a> |
385 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
|
|
386 |
</td> |
387 |
[% END %] |
388 |
<td> |
389 |
<form action="/cgi-bin/koha/sco/sco-main.pl" method="post"> |
390 |
[% INCLUDE 'csrf-token.inc' %] |
391 |
<legend class="sr-only">Issue renews</legend> |
392 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
393 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
394 |
<input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" /> |
395 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
396 |
[% IF ISSUE.can_be_renewed %] |
397 |
<input type="hidden" name="op" value="cud-renew" /> |
398 |
<input type="hidden" name="confirmed" value="1" /> |
399 |
[% UNLESS ( ISSUE.renew ) %] |
400 |
<input type="submit" value="Renew item" name="confirm " class="btn btn-primary btn-sm renew" /> |
401 |
[% ELSE %] |
370 |
[% ELSE %] |
402 |
<input type="submit" value="Renew item" class="btn btn-primary btn-sm renew" /> |
371 |
<strong>[% ISSUE.title | html %]</strong> |
403 |
[% END %] |
372 |
[% END %] |
404 |
[% ELSE %] |
373 |
[% IF ( newissues.match(ISSUE.barcode)) %] |
405 |
[% IF ISSUE.renew_error == 'onsite_checkout' %] |
374 |
<span class="label label-info">NEW</span> |
406 |
<span>This is a on-site checkout, it cannot be renewed.</span> |
|
|
407 |
[% ELSIF ISSUE.renew_error == 'too_unseen' %] |
408 |
<span>You have renewed this item the maximum number of consecutive times without it being seen by the library.</span> |
409 |
[% ELSIF ISSUE.renew_error == 'too_soon' %] |
410 |
<span>This item cannot yet be renewed.</span> |
411 |
[% ELSE %] |
412 |
<span>No renewals allowed</span> |
413 |
[% END %] |
414 |
[% IF Koha.Preference('SCOAllowCheckin') %] |
415 |
<div> |
416 |
<input type="submit" value="Check in item" name="confirm" class="btn btn-info btn-sm return" /> |
417 |
<input type="hidden" name="op" value="cud-returnbook" /> |
418 |
<input type="hidden" name="confirmed" value="" /> |
419 |
</div> |
420 |
[% END %] |
375 |
[% END %] |
|
|
376 |
<span class="item-details">[% ISSUE.author | html %]</span> |
377 |
([% ISSUE.barcode | html %]) |
378 |
</td> |
379 |
<td>[% ISSUE.itemcallnumber | html %]</td> |
380 |
[% IF ( ISSUE.overdue ) %] |
381 |
<td class="overdue" data-order="[% ISSUE.date_due | html %]"> |
382 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
383 |
</td> |
384 |
[% ELSE %] |
385 |
<td data-order="[% ISSUE.date_due | html %]"> |
386 |
[% ISSUE.date_due | $KohaDates as_due_date => 1 %] |
387 |
</td> |
421 |
[% END %] |
388 |
[% END %] |
422 |
[% IF ISSUE.auto_renew %] |
389 |
<td> |
423 |
<br><span>This item is scheduled for automatic renewal</span> |
390 |
<form action="/cgi-bin/koha/sco/sco-main.pl" method="post"> |
|
|
391 |
[% INCLUDE 'csrf-token.inc' %] |
392 |
<legend class="sr-only">Issue renews</legend> |
393 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
394 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
395 |
<input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" /> |
396 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
397 |
[% IF ISSUE.can_be_renewed %] |
398 |
<input type="hidden" name="op" value="cud-renew" /> |
399 |
<input type="hidden" name="confirmed" value="1" /> |
400 |
[% UNLESS ( ISSUE.renew ) %] |
401 |
<input type="submit" value="Renew item" name="confirm " class="btn btn-primary btn-sm renew" /> |
402 |
[% ELSE %] |
403 |
<input type="submit" value="Renew item" class="btn btn-primary btn-sm renew" /> |
404 |
[% END %] |
405 |
[% ELSE %] |
406 |
[% IF ISSUE.renew_error == 'onsite_checkout' %] |
407 |
<span>This is a on-site checkout, it cannot be renewed.</span> |
408 |
[% ELSIF ISSUE.renew_error == 'too_unseen' %] |
409 |
<span>You have renewed this item the maximum number of consecutive times without it being seen by the library.</span> |
410 |
[% ELSIF ISSUE.renew_error == 'too_soon' %] |
411 |
<span>This item cannot yet be renewed.</span> |
412 |
[% ELSE %] |
413 |
<span>No renewals allowed</span> |
414 |
[% END %] |
415 |
[% IF Koha.Preference('SCOAllowCheckin') %] |
416 |
<div> |
417 |
<input type="submit" value="Check in item" name="confirm" class="btn btn-info btn-sm return" /> |
418 |
<input type="hidden" name="op" value="cud-returnbook" /> |
419 |
<input type="hidden" name="confirmed" value="" /> |
420 |
</div> |
421 |
[% END %] |
422 |
[% END %] |
423 |
[% IF ISSUE.auto_renew %] |
424 |
<br><span>This item is scheduled for automatic renewal</span> |
425 |
[% END %] |
426 |
</form> |
427 |
</td> |
428 |
[% UNLESS ( nofines ) %] |
429 |
<td> |
430 |
[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %] |
431 |
</td> |
424 |
[% END %] |
432 |
[% END %] |
425 |
</form> |
433 |
<td></td> |
426 |
</td> |
434 |
</tr> |
427 |
[% UNLESS ( nofines ) %] |
435 |
[% END # / FOREACH ISSUE %] |
428 |
<td> |
436 |
</tbody> |
429 |
[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %] |
437 |
</table> |
430 |
</td> |
438 |
[% ELSE %] |
431 |
[% END %] |
439 |
<a class="btn btn-secondary" href="?load_checkouts=1#scan_form"><i class="fa fa-book" aria-hidden="true"></i> Show your checkouts</a> |
432 |
<td></td> |
440 |
[% END # / IF ( Koha.preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
433 |
</tr> |
441 |
[% ELSE %] |
434 |
[% END # / FOREACH ISSUE %] |
442 |
<h3>You currently have nothing checked out.</h3> |
435 |
</tbody> |
443 |
[% END # / IF issues_count %] |
436 |
</table> |
444 |
</div> <!-- / #borrowerdetails --> |
437 |
[% ELSE %] |
445 |
</div> |
438 |
<a class="btn btn-secondary" href="?load_checkouts=1#scan_form"><i class="fa fa-book" aria-hidden="true"></i> Show your checkouts</a> |
446 |
[% END # /tab_panel %] |
439 |
[% END # / IF ( Koha.preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
447 |
[% WRAPPER tab_panel tabname="holds" %] |
|
|
448 |
[% IF HOLDS.count > 0 %] |
449 |
[% PROCESS 'holds-table.inc' HOLDS = HOLDS, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds, onlyinfo = 'true' %] |
440 |
[% ELSE %] |
450 |
[% ELSE %] |
441 |
<h3>You currently have nothing checked out.</h3> |
451 |
<h3>You currently have no pending holds.</h3> |
442 |
[% END # / IF issues_count %] |
452 |
[% END %] |
443 |
</div> <!-- / #borrowerdetails --> |
453 |
[% END # /tab_panel %] |
444 |
</div> |
454 |
[% WRAPPER tab_panel tabname="account" %] |
445 |
<div id="holds-tab" class="tab-pane" role="tabpanel" aria-labelledby="holds"> |
455 |
[% PROCESS 'account-table.inc' %] |
446 |
[% IF HOLDS.count > 0 %] |
456 |
[% END # /tab_panel %] |
447 |
[% PROCESS 'holds-table.inc' HOLDS = HOLDS, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds, onlyinfo = 'true' %] |
457 |
[% END # /WRAPPER tab_panels %] |
448 |
[% ELSE %] |
458 |
[% END # /WRAPPER tabs %] |
449 |
<h3>You currently have no pending holds.</h3> |
459 |
|
450 |
[% END %] |
460 |
|
451 |
</div> |
|
|
452 |
<div id="account-tab" class="tab-pane" role="tabpanel" aria-labelledby="account"> |
453 |
[% PROCESS 'account-table.inc' %] |
454 |
</div> |
455 |
</div> |
456 |
[% ELSE # IF validuser %] |
461 |
[% ELSE # IF validuser %] |
457 |
<div class="sco_entry" > |
462 |
<div class="sco_entry" > |
458 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
463 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
459 |
- |
|
|