|
Line 0
Link Here
|
|
|
1 |
[% USE Koha %] |
| 2 |
[% USE KohaDates %] |
| 3 |
|
| 4 |
[% INCLUDE 'doc-head-open.inc' %] |
| 5 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your recalls history</title> |
| 6 |
[% INCLUDE 'doc-head-close.inc' %] |
| 7 |
[% BLOCK cssinclude %][% END %] |
| 8 |
</head> |
| 9 |
[% INCLUDE 'bodytag.inc' bodyid='opac-recalls' bodyclass='scrollto' %] |
| 10 |
[% INCLUDE 'masthead.inc' %] |
| 11 |
|
| 12 |
<div class="main"> |
| 13 |
<ul class="breadcrumb"> |
| 14 |
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> |
| 15 |
<li><a href="#">Your recalls history</a></li> |
| 16 |
</ul> |
| 17 |
|
| 18 |
<div class="container-fluid"> |
| 19 |
<div class="row-fluid"> |
| 20 |
<div class="span2"> |
| 21 |
<div id="navigation"> |
| 22 |
[% INCLUDE 'navigation.inc' IsPatronPage=1 %] |
| 23 |
</div> |
| 24 |
</div> |
| 25 |
<div class="span10"> |
| 26 |
<div id="recalls" class="maincontent"> |
| 27 |
|
| 28 |
<h2>Recalls history</h2> |
| 29 |
|
| 30 |
[% IF RECALLS.count %] |
| 31 |
<div id="opac-user-recalls"> |
| 32 |
<table id="recalls-table" class="table table-bordered table-striped"> |
| 33 |
<thead> |
| 34 |
<tr> |
| 35 |
<th class="anti-the">Title</th> |
| 36 |
<th class="psort title-string">Placed on</th> |
| 37 |
<th class="title-string">Expires on</th> |
| 38 |
<th>Pickup location</th> |
| 39 |
<th>Status</th> |
| 40 |
<th class="nosort">Cancel</th> |
| 41 |
</tr> |
| 42 |
</thead> |
| 43 |
<tbody> |
| 44 |
[% FOREACH RECALL IN RECALLS %] |
| 45 |
<tr> |
| 46 |
<td class="title"> |
| 47 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblionumber %]"> |
| 48 |
[% RECALL.biblio.title %] |
| 49 |
[% FOREACH s IN RECALL.biblio.subtitles %] |
| 50 |
[% s %] |
| 51 |
[% END %] |
| 52 |
[% RECALL.item.enumchron %] |
| 53 |
</a> |
| 54 |
[% RECALL.biblio.author %] |
| 55 |
</td> |
| 56 |
<td class="recalldate"> |
| 57 |
<span title="[% RECALL.recalldate %]"> |
| 58 |
<span class="tdlabel">Recall date:</span> |
| 59 |
[% RECALL.recalldate | $KohaDates %] |
| 60 |
</span> |
| 61 |
</td> |
| 62 |
<td class="expirationdate"> |
| 63 |
[% IF ( RECALL.is_waiting ) %] |
| 64 |
[% IF ( RECALL.expirationdate ) %] |
| 65 |
<span title="[% RECALL.expirationdate %]"> |
| 66 |
<span class="tdlabel">Expiration:</span> |
| 67 |
[% RECALL.expirationdate | $KohaDates %] |
| 68 |
</span> |
| 69 |
[% ELSE %] |
| 70 |
<span title="0000-00-00"> |
| 71 |
<span class="tdlabel">Expiration:</span> |
| 72 |
Never expires |
| 73 |
</span> |
| 74 |
[% END %] |
| 75 |
[% ELSIF ( RECALL.has_expired && RECALL.expirationdate ) %] |
| 76 |
<span title="[% RECALL.expirationdate %]" class="overdue"> |
| 77 |
<span class="tdlabel">Expiration:</span> |
| 78 |
[% RECALL.expirationdate | $KohaDates %] |
| 79 |
</span> |
| 80 |
[% ELSE %] |
| 81 |
<span title="0000-00-00">-</span> |
| 82 |
[% END %] |
| 83 |
</td> |
| 84 |
<td class="branch"> |
| 85 |
<span class="tdlabel">Pick up location:</span> |
| 86 |
[% RECALL.branch.branchname %] |
| 87 |
</td> |
| 88 |
<td class="status"> |
| 89 |
<span class="tdlabel">Status:</span> |
| 90 |
[% IF ( RECALL.is_requested ) %] |
| 91 |
Requested |
| 92 |
[% ELSIF ( RECALL.is_waiting ) %] |
| 93 |
Ready for pickup |
| 94 |
[% ELSIF ( RECALL.has_expired ) %] |
| 95 |
Expired |
| 96 |
[% ELSIF ( RECALL.is_cancelled ) %] |
| 97 |
Cancelled |
| 98 |
[% END %] |
| 99 |
</td> |
| 100 |
<td class="cancelrecall"> |
| 101 |
[% IF ( !RECALL.cancellationdate && ( RECALL.is_requested || RECALL.is_overdue ) ) %] |
| 102 |
<form action="/cgi-bin/koha/opac-recall.pl" method="post"> |
| 103 |
<input type="hidden" name="op" value="cancel"> |
| 104 |
<input type="hidden" name="recall_id" value="[% RECALL.recall_id %]"> |
| 105 |
<input type="hidden" name="itemnumber" value="[% RECALL.itemnumber %]"> |
| 106 |
<button type="submit" name="submit" class="btn btn-mini btn-danger" id="cancel_recall"><i class="icon-remove icon-white"></i> Cancel</button> |
| 107 |
</form> |
| 108 |
[% END %] |
| 109 |
</td> |
| 110 |
[% END %] |
| 111 |
</tr> |
| 112 |
</tbody> |
| 113 |
<table> |
| 114 |
</div> |
| 115 |
[% END # / # RECALLS.count %] |
| 116 |
|
| 117 |
</div> <!-- /#recalls --> |
| 118 |
</div> <!-- /.span10 --> |
| 119 |
</div> <!-- /.row-fluid --> |
| 120 |
</div> <!-- /.container-fluid --> |
| 121 |
</div> <!-- /#main --> |
| 122 |
|
| 123 |
[% INCLUDE 'opac-bottom.inc' %] |
| 124 |
|
| 125 |
[% BLOCK jsinclude %] |
| 126 |
[% INCLUDE 'datatables.inc' %] |
| 127 |
<script type="text/JavaScript"> |
| 128 |
//<![CDATA[ |
| 129 |
var MSG_CONFIRM_CANCEL_RECALL = _("Are you sure you want to undo this recall?"); |
| 130 |
|
| 131 |
$(document).ready(function(){ |
| 132 |
$("#cancel_recall").click(function(e){ |
| 133 |
e.preventDefault(); |
| 134 |
return confirmDelete(MSG_CONFIRM_CANCEL_RECALL); |
| 135 |
}); |
| 136 |
$("#recalls-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 137 |
"aoColumnDefs": [ |
| 138 |
{ "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false }, |
| 139 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
| 140 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
| 141 |
] |
| 142 |
})); |
| 143 |
}); |
| 144 |
</script> |
| 145 |
[% END %] |