|
Line 0
Link Here
|
|
|
1 |
[% USE Koha %] |
| 2 |
[% USE KohaDates %] |
| 3 |
[% USE Asset %] |
| 4 |
[% SET footerjs = 1 %] |
| 5 |
[% INCLUDE 'doc-head-open.inc' %] |
| 6 |
<title>Koha › Circulation › Recalls awaiting pickup</title> |
| 7 |
[% INCLUDE 'doc-head-close.inc' %] |
| 8 |
<style type="text/css"> p { margin-top: 0; }</style> |
| 9 |
[% Asset.css("css/datatables.css") %] |
| 10 |
</head> |
| 11 |
<body id="circ_recalls_awaiting_pickup" class="circ"> |
| 12 |
[% INCLUDE 'header.inc' %] |
| 13 |
[% INCLUDE 'cat-search.inc' %] |
| 14 |
|
| 15 |
<div id="breadcrumbs"> |
| 16 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
| 17 |
› <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> |
| 18 |
› <a href="/cgi-bin/koha/recalls/recalls_waiting.pl">Recalls awaiting pickup</a> |
| 19 |
</div> |
| 20 |
|
| 21 |
<div class="main container-fluid"> |
| 22 |
<div class="row"> |
| 23 |
[% IF Koha.Preference('CircSidebar') %] |
| 24 |
<div class="col-sm-10 col-sm-push-2"> |
| 25 |
[% ELSE %] |
| 26 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
| 27 |
[% END %] |
| 28 |
<main> |
| 29 |
<h1>Recalls awaiting pickup</h1> |
| 30 |
|
| 31 |
[% IF Koha.Preference('UseRecalls') %] |
| 32 |
|
| 33 |
<div id="results" class="toptabs"> |
| 34 |
|
| 35 |
<ul> |
| 36 |
<li><a href="#recallswaiting">Recalls waiting: [% recalls.count %]</a></li> |
| 37 |
<li><a href="#recallsover">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') %] days: [% over.count %]</a></li> |
| 38 |
</ul> |
| 39 |
|
| 40 |
<div id="recallswaiting"> |
| 41 |
[% IF ( recalls.size > 0 ) %] |
| 42 |
<table id="recallswaiting-table"> |
| 43 |
<thead><tr> |
| 44 |
<th class="recall-waitingdate title-string">Available since</th> |
| 45 |
<th class="recall-title anti-the">Title</th> |
| 46 |
<th class="recall-patron">Requested by</th> |
| 47 |
<th class="recall-library">Pickup location</th> |
| 48 |
<th class="recall-action nosort"> </th> |
| 49 |
</tr></thead> |
| 50 |
<tbody> |
| 51 |
[% FOREACH recall IN recalls %]<tr> |
| 52 |
<td class="recall-waitingdate">[% recall.waitingdate | $KohaDates %]</td> |
| 53 |
<td class="recall-title"> |
| 54 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber %]"> |
| 55 |
[% recall.biblio.title %] |
| 56 |
[% FOREACH s IN recall.biblio.subtitles %] |
| 57 |
[% s %] |
| 58 |
[% END %] |
| 59 |
</a> |
| 60 |
[% recall.biblio.author %] |
| 61 |
<br><i>Barcode: [% recall.item.barcode %]</i> |
| 62 |
</td> |
| 63 |
<td class="recall-patron"> |
| 64 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber %]">[% recall.patron.firstname %] [% recall.patron.surname %]</a> |
| 65 |
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone %][% END %] |
| 66 |
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email %]?subject=Recall waiting: [% recall.biblio.title %]">[% recall.patron.email %]</a>[% END %] |
| 67 |
</td> |
| 68 |
<td class="recall-library">[% recall.library.branchname %]</td> |
| 69 |
<td class="recall-action actions"> |
| 70 |
<form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post"> |
| 71 |
<input type="hidden" name="recall_id" value="[% recall.recall_id %]"> |
| 72 |
<input type="hidden" name="op" value="modify"> |
| 73 |
<fieldset class="action"> |
| 74 |
<input type="submit" name="expire" class="expire_recall" value="Expire recall"> |
| 75 |
<input type="submit" name="revert" class="revert_recall" value="Revert waiting status"> |
| 76 |
</fieldset> |
| 77 |
</form> |
| 78 |
</td> |
| 79 |
</tr>[% END %] |
| 80 |
</tbody> |
| 81 |
</table> |
| 82 |
[% ELSE %] |
| 83 |
<div class="dialog message">There are no recalls to show.</div> |
| 84 |
[% END %] |
| 85 |
</div> <!-- recallswaiting --> |
| 86 |
|
| 87 |
<div id="recallsover"> |
| 88 |
[% IF ( over.size ) %] |
| 89 |
[% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') %] days.</p>[% END %] |
| 90 |
<table id="recallsover-table"> |
| 91 |
<thead><tr> |
| 92 |
<th class="recall-waitingdate title-string">Available since</th> |
| 93 |
<th class="recall-title anti-the">Title</th> |
| 94 |
<th class="recall-patron">Requested by</th> |
| 95 |
<th class="recall-library">Pickup location</th> |
| 96 |
<th class="recall-action nosort"> </th> |
| 97 |
</tr></thead> |
| 98 |
<tbody> |
| 99 |
[% FOREACH recall IN over %]<tr> |
| 100 |
<td class="recall-waitingdate">[% recall.waitingdate | $KohaDates %]</td> |
| 101 |
<td class="recall-title"> |
| 102 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber %]"> |
| 103 |
[% recall.biblio.title %] |
| 104 |
[% FOREACH s IN recall.biblio.subtitles %] |
| 105 |
[% s %] |
| 106 |
[% END %] |
| 107 |
[% recall.item.enumchron %] |
| 108 |
</a> |
| 109 |
[% recall.biblio.author %] |
| 110 |
<br><i>Barcode: [% recall.item.barcode %]</i> |
| 111 |
</td> |
| 112 |
<td class="recall-patron"> |
| 113 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber %]">[% recall.patron.firstname %] [% recall.patron.surname %]</a> |
| 114 |
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone %][% END %] |
| 115 |
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email %]?subject=Recall waiting: [% recall.biblio.title %]">[% recall.patron.email %]</a>[% END %] |
| 116 |
</td> |
| 117 |
<td class="recall-library">[% recall.library.branchname %]</td> |
| 118 |
<td class="recall-action actions"> |
| 119 |
<form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post"> |
| 120 |
<input type="hidden" name="recall_id" value="[% recall.recall_id %]"> |
| 121 |
<input type="hidden" name="op" value="modify"> |
| 122 |
<fieldset class="action"> |
| 123 |
<input type="submit" name="expire" class="expire_recall" value="Expire recall"> |
| 124 |
<input type="submit" name="revert" class="revert_recall" value="Revert waiting status"> |
| 125 |
</fieldset> |
| 126 |
</form> |
| 127 |
</td> |
| 128 |
</tr>[% END %] |
| 129 |
</tbody> |
| 130 |
</table> |
| 131 |
[% ELSE %] |
| 132 |
<div class="dialog message">There are no recalls to show.</div> |
| 133 |
[% END %] |
| 134 |
</div> <!-- recallsover --> |
| 135 |
|
| 136 |
</div> <!-- results--> |
| 137 |
|
| 138 |
[% ELSE %] |
| 139 |
<div class="dialog message">Recalls have not been enabled. Enable the <a href="/cgi-bin/koha/admin/preferences.pl?tab=circulation">UseRecalls</a> system preference to use recalls.</div> |
| 140 |
[% END %] <!-- Koha.Preference('UseRecalls') --> |
| 141 |
|
| 142 |
</main> |
| 143 |
</div> <!-- /.col-etc --> |
| 144 |
|
| 145 |
[% IF Koha.Preference('CircSidebar') %] |
| 146 |
<div class="col-sm-2 col-sm-pull-10"> |
| 147 |
<aside> |
| 148 |
[% INCLUDE 'circ-nav.inc' %] |
| 149 |
</aside> |
| 150 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 151 |
[% END %] |
| 152 |
|
| 153 |
</div> <!-- /.row --> |
| 154 |
</div> |
| 155 |
|
| 156 |
[% MACRO jsinclude BLOCK %] |
| 157 |
[% INCLUDE 'datatables.inc' %] |
| 158 |
<script type="text/javascript"> |
| 159 |
$(document).ready(function() { |
| 160 |
$('#results').tabs(); |
| 161 |
|
| 162 |
$("#recallswaiting-table, #recallsover-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 163 |
"autoWidth": false, |
| 164 |
"aoColumnDefs": [ |
| 165 |
{ 'bSortable': false, 'aTargets': [ 'nosort' ] }, |
| 166 |
], |
| 167 |
"sPaginationType": "full_numbers" |
| 168 |
})); |
| 169 |
|
| 170 |
$(".cancel_recall").click(function(e) { |
| 171 |
e.preventDefault(); |
| 172 |
return confirmDelete(_("Are you sure you want to remove this recall?")); |
| 173 |
}); |
| 174 |
|
| 175 |
$(".expire_recall").click(function(e) { |
| 176 |
e.preventDefault(); |
| 177 |
return confirmDelete(_("Are you sure you want to remove this recall?")); |
| 178 |
}); |
| 179 |
}); |
| 180 |
</script> |
| 181 |
[% END %] |
| 182 |
|
| 183 |
[% INCLUDE 'intranet-bottom.inc' %] |