6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Recalls awaiting pickup › Circulation › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="circ_recalls_awaiting_pickup" class="circ">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
14 <div id="breadcrumbs">
15 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
16 › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
17 › <a href="/cgi-bin/koha/recalls/recalls_waiting.pl">Recalls awaiting pickup</a>
20 <div class="main container-fluid">
22 [% IF Koha.Preference('CircSidebar') %]
23 <div class="col-sm-10 col-sm-push-2">
25 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
28 <h1>Recalls awaiting pickup</h1>
30 [% IF Koha.Preference('UseRecalls') %]
32 <div id="results" class="toptabs">
35 <li><a href="#recallswaiting">Recalls waiting: [% recalls.count | html %]</a></li>
36 <li><a href="#recallsover">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.count | html %]</a></li>
39 <div id="recallswaiting">
41 <table id="recallswaiting-table">
43 <th class="recall-waitingdate title-string">Available since</th>
44 <th class="recall-title anti-the">Title</th>
45 <th class="recall-patron">Requested by</th>
46 <th class="recall-library">Pickup location</th>
47 <th class="recall-action nosort"> </th>
50 [% FOREACH recall IN recalls %]<tr>
51 <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
52 <td class="recall-title">
53 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
54 [% recall.biblio.title | html %]
55 [% FOREACH s IN recall.biblio.subtitle %]
59 [% recall.biblio.author | html %]
60 <br><i>Barcode: [% recall.item.barcode | html %]</i>
62 <td class="recall-patron">
63 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
64 [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
65 [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
67 <td class="recall-library">[% recall.library.branchname | html %]</td>
68 <td class="recall-action actions">
69 <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
70 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
71 <input type="hidden" name="op" value="modify">
72 <fieldset class="action">
73 <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
74 <input type="submit" name="expire" class="expire_recall" value="Expire recall">
82 <div class="dialog message">There are no recalls to show.</div>
84 </div> <!-- recallswaiting -->
86 <div id="recallsover">
87 [% IF ( over.size ) %]
88 [% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days.</p>[% END %]
89 <table id="recallsover-table">
91 <th class="recall-waitingdate title-string">Available since</th>
92 <th class="recall-title anti-the">Title</th>
93 <th class="recall-patron">Requested by</th>
94 <th class="recall-library">Pickup location</th>
95 <th class="recall-action nosort"> </th>
98 [% FOREACH recall IN over %]<tr>
99 <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
100 <td class="recall-title">
101 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
102 [% recall.biblio.title | html %]
103 [% FOREACH s IN recall.biblio.subtitles %]
106 [% recall.item.enumchron | html %]
108 [% recall.biblio.author | html %]
109 <br><i>Barcode: [% recall.item.barcode | html %]</i>
111 <td class="recall-patron">
112 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
113 [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
114 [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
116 <td class="recall-library">[% recall.library.branchname | html %]</td>
117 <td class="recall-action actions">
118 <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
119 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
120 <input type="hidden" name="op" value="modify">
121 <fieldset class="action">
122 <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
123 <input type="submit" name="expire" class="expire_recall" value="Expire recall">
131 <div class="dialog message">There are no recalls to show.</div>
133 </div> <!-- recallsover -->
135 </div> <!-- results-->
138 <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>
139 [% END %] <!-- Koha.Preference('UseRecalls') -->
142 </div> <!-- /.col-etc -->
144 [% IF Koha.Preference('CircSidebar') %]
145 <div class="col-sm-2 col-sm-pull-10">
147 [% INCLUDE 'circ-nav.inc' %]
149 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
152 </div> <!-- /.row -->
155 [% MACRO jsinclude BLOCK %]
156 [% INCLUDE 'datatables.inc' %]
157 [% INCLUDE 'columns_settings.inc' %]
159 $(document).ready(function() {
160 $('#results').tabs();
162 $("#recallswaiting-table, #recallsover-table").dataTable($.extend(true, {}, dataTablesDefaults, {
165 { 'bSortable': false, 'aTargets': [ 'nosort' ] },
167 "sPaginationType": "full_numbers"
170 $(".revert_recall").click(function(e) {
171 return confirmDelete(_("Are you sure you want to revert this recall's status from Waiting?"));
174 $(".expire_recall").click(function(e) {
175 return confirmDelete(_("Are you sure you want to remove this recall?"));
181 [% INCLUDE 'intranet-bottom.inc' %]