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 [% WRAPPER 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
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>
21 <div class="main container-fluid">
23 [% IF Koha.Preference('CircSidebar') %]
24 <div class="col-sm-10 col-sm-push-2">
26 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
29 <h1>Recalls awaiting pickup</h1>
31 [% IF Koha.Preference('UseRecalls') %]
33 <div id="results" class="toptabs">
35 <ul class="nav nav-tabs" role="tablist">
36 <li role="presentation" class="active">
37 <a href="#recallswaiting" aria-controls="recallswaiting" role="tab" data-toggle="tab">Recalls waiting: [% recalls.count | html %]</a>
39 <li role="presentation">
40 <a href="#recallsover" aria-controls="recallsover" role="tab" data-toggle="tab">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.count | html %]</a>
44 <div class="tab-content">
45 <div id="recallswaiting" role="tabpanel" class="tab-pane active">
47 <table id="recallswaiting-table">
49 <th class="recall-waitingdate title-string">Available since</th>
50 <th class="recall-title anti-the">Title</th>
51 <th class="recall-patron">Requested by</th>
52 <th class="recall-library">Pickup location</th>
53 <th class="recall-action nosort"> </th>
56 [% FOREACH recall IN recalls %]<tr>
57 <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
58 <td class="recall-title">
59 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
60 [% recall.biblio.title | html %]
61 [% FOREACH s IN recall.biblio.subtitle %]
65 [% recall.biblio.author | html %]
66 <br><i>Barcode: [% recall.item.barcode | html %]</i>
68 <td class="recall-patron">
69 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
70 [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
71 [% 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 %]
73 <td class="recall-library">[% recall.library.branchname | html %]</td>
74 <td class="recall-action actions">
75 <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
76 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
77 <input type="hidden" name="op" value="modify">
78 <fieldset class="action">
79 <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
80 <input type="submit" name="expire" class="expire_recall" value="Expire recall">
88 <div class="dialog message">There are no recalls to show.</div>
90 </div> <!-- recallswaiting -->
92 <div id="recallsover" role="tabpanel" class="tab-pane">
93 [% IF ( over.size ) %]
94 [% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days.</p>[% END %]
95 <table id="recallsover-table">
97 <th class="recall-waitingdate title-string">Available since</th>
98 <th class="recall-title anti-the">Title</th>
99 <th class="recall-patron">Requested by</th>
100 <th class="recall-library">Pickup location</th>
101 <th class="recall-action nosort"> </th>
104 [% FOREACH recall IN over %]<tr>
105 <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
106 <td class="recall-title">
107 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
108 [% recall.biblio.title | html %]
109 [% FOREACH s IN recall.biblio.subtitles %]
112 [% recall.item.enumchron | html %]
114 [% recall.biblio.author | html %]
115 <br><i>Barcode: [% recall.item.barcode | html %]</i>
117 <td class="recall-patron">
118 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
119 [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
120 [% 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 %]
122 <td class="recall-library">[% recall.library.branchname | html %]</td>
123 <td class="recall-action actions">
124 <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
125 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
126 <input type="hidden" name="op" value="modify">
127 <fieldset class="action">
128 <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
129 <input type="submit" name="expire" class="expire_recall" value="Expire recall">
137 <div class="dialog message">There are no recalls to show.</div>
139 </div> <!-- recallsover -->
140 </div> <!-- /.tab-content -->
141 </div> <!-- results-->
144 <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>
145 [% END %] <!-- Koha.Preference('UseRecalls') -->
148 </div> <!-- /.col-etc -->
150 [% IF Koha.Preference('CircSidebar') %]
151 <div class="col-sm-2 col-sm-pull-10">
153 [% INCLUDE 'circ-nav.inc' %]
155 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
158 </div> <!-- /.row -->
160 [% MACRO jsinclude BLOCK %]
161 [% INCLUDE 'datatables.inc' %]
162 [% INCLUDE 'columns_settings.inc' %]
164 $(document).ready(function() {
165 $("#recallswaiting-table, #recallsover-table").dataTable($.extend(true, {}, dataTablesDefaults, {
168 { 'bSortable': false, 'aTargets': [ 'nosort' ] },
170 "sPaginationType": "full_numbers"
173 $(".revert_recall").click(function(e) {
174 return confirmDelete(_("Are you sure you want to revert this recall's status from Waiting?"));
177 $(".expire_recall").click(function(e) {
178 return confirmDelete(_("Are you sure you want to remove this recall?"));
184 [% INCLUDE 'intranet-bottom.inc' %]