Lines 52-57
Link Here
|
52 |
<div class="dialog alert"> Unable to place a recall. Check your circulation rules. </div> |
52 |
<div class="dialog alert"> Unable to place a recall. Check your circulation rules. </div> |
53 |
[% END %] |
53 |
[% END %] |
54 |
|
54 |
|
|
|
55 |
[% IF patron_holds_count %] |
56 |
<div class="dialog alert alert-info"> Patron has placed one or more record-level holds. <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber | html %]">Convert a hold to a recall</a>. </div> |
57 |
[% END %] |
58 |
|
55 |
<fieldset class="rows"> |
59 |
<fieldset class="rows"> |
56 |
<legend>Recall details</legend> |
60 |
<legend>Recall details</legend> |
57 |
<form id="recallform" action="/cgi-bin/koha/recalls/request.pl" method="post"> |
61 |
<form id="recallform" action="/cgi-bin/koha/recalls/request.pl" method="post"> |
Lines 103-109
Link Here
|
103 |
<th>Barcode</th> |
107 |
<th>Barcode</th> |
104 |
[% UNLESS ( single_branch_mode ) %] |
108 |
[% UNLESS ( single_branch_mode ) %] |
105 |
<th>Home library</th> |
109 |
<th>Home library</th> |
106 |
<th>Last location</th> |
110 |
<th>Holding library</th> |
107 |
[% END %] |
111 |
[% END %] |
108 |
<th>Collection</th> |
112 |
<th>Collection</th> |
109 |
<th>Call number</th> |
113 |
<th>Call number</th> |
Lines 144-150
Link Here
|
144 |
> |
148 |
> |
145 |
[% END %] |
149 |
[% END %] |
146 |
[% IF ( item.itemlost || item.withdrawn ) %] |
150 |
[% IF ( item.itemlost || item.withdrawn ) %] |
147 |
<span class="lost">Unavailable (lost or missing)</span> |
151 |
<span class="lost">Unavailable (lost or withdrawn)</span> |
148 |
[% END %] |
152 |
[% END %] |
149 |
[% IF ( item.notforloan ) %] |
153 |
[% IF ( item.notforloan ) %] |
150 |
<span class="notforloan">Not for loan ([% item.notforloan | html %])</span> |
154 |
<span class="notforloan">Not for loan ([% item.notforloan | html %])</span> |
Lines 161-167
Link Here
|
161 |
[% ELSIF ( hold.waitingdate ) %] |
165 |
[% ELSIF ( hold.waitingdate ) %] |
162 |
<span class="waiting"> Waiting for patron at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %]. </span> |
166 |
<span class="waiting"> Waiting for patron at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %]. </span> |
163 |
[% ELSIF ( hold.borrowernumber == logged_in_user.borrowernumber ) %] |
167 |
[% ELSIF ( hold.borrowernumber == logged_in_user.borrowernumber ) %] |
164 |
<span class="waiting"> Patron has already placed a <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]#reserves">reserve</a> on this item. </span> |
168 |
<span class="waiting"> Patron has already placed a <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]#reserves">hold</a> on this item. </span> |
165 |
[% END # / IF ( item.recall or hold ) %] |
169 |
[% END # / IF ( item.recall or hold ) %] |
166 |
</td> |
170 |
</td> |
167 |
</tr> |
171 |
</tr> |
Lines 204-232
Link Here
|
204 |
</fieldset> |
208 |
</fieldset> |
205 |
[% END %] |
209 |
[% END %] |
206 |
|
210 |
|
207 |
<h2>Existing recalls</h2> |
211 |
<div class="page-section"> |
|
|
212 |
<h2>Existing recalls</h2> |
208 |
|
213 |
|
209 |
[% IF Koha.Preference('UseRecalls') %] |
214 |
[% IF Koha.Preference('UseRecalls') %] |
210 |
[% IF recalls.count %] |
215 |
[% IF recalls.count %] |
211 |
<div class="page-section"> |
216 |
<div class="page-section"> |
212 |
<form method="post" action="/cgi-bin/koha/recalls/request.pl"> |
217 |
<form method="post" action="/cgi-bin/koha/recalls/request.pl"> |
213 |
[% INCLUDE 'csrf-token.inc' %] |
218 |
[% INCLUDE 'csrf-token.inc' %] |
214 |
<input type="hidden" name="op" value="cud-cancel_multiple_recalls" /> |
219 |
<input type="hidden" name="op" value="cud-cancel_multiple_recalls" /> |
215 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
220 |
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" /> |
216 |
<input type="checkbox" id="select_all" /> <span id="select_all_text">Select all</span> |
221 |
<input type="checkbox" id="select_all" /> <span id="select_all_text">Select all</span> |
217 |
[% INCLUDE 'recalls.inc' %] |
222 |
[% INCLUDE 'recalls.inc' %] |
218 |
<fieldset class="action"> |
223 |
<fieldset class="action"> |
219 |
<button type="submit" id="cancel_selected" class="btn btn-default btn-sm">Cancel selected recalls</button> |
224 |
<button type="submit" id="cancel_selected" class="btn btn-primary btn-sm">Cancel selected recalls</button> |
220 |
</fieldset> |
225 |
</fieldset> |
221 |
</form> |
226 |
</form> |
222 |
</div> |
227 |
</div> |
223 |
<!-- /.page-section --> |
228 |
<!-- /.page-section --> |
|
|
229 |
[% ELSE %] |
230 |
<div class="alert alert-info">No recalls have been made.</div> |
231 |
[% END %] |
224 |
[% ELSE %] |
232 |
[% ELSE %] |
225 |
<div class="alert alert-info">No recalls have been made.</div> |
233 |
<div class="alert alert-info">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> |
226 |
[% END %] |
234 |
[% END %] |
227 |
[% ELSE %] |
235 |
</div> |
228 |
<div class="alert alert-info">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> |
|
|
229 |
[% END %] |
230 |
[% END %] |
236 |
[% END %] |
231 |
[% END %] |
237 |
[% END %] |
232 |
|
238 |
|
Lines 235-244
Link Here
|
235 |
[% INCLUDE 'datatables.inc' %] |
241 |
[% INCLUDE 'datatables.inc' %] |
236 |
[% INCLUDE 'columns_settings.inc' %] |
242 |
[% INCLUDE 'columns_settings.inc' %] |
237 |
[% INCLUDE 'calendar.inc' %] |
243 |
[% INCLUDE 'calendar.inc' %] |
|
|
244 |
[% INCLUDE 'select2.inc' %] |
238 |
[% SET url_biblio_params = "biblionumber=" _ biblio.biblionumber %] |
245 |
[% SET url_biblio_params = "biblionumber=" _ biblio.biblionumber %] |
239 |
[% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %] |
246 |
[% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %] |
240 |
<script> |
247 |
<script> |
241 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
248 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
|
|
249 |
$.fn.select2.defaults.set("width", "100%" ); |
250 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
242 |
$(document).ready(function(){ |
251 |
$(document).ready(function(){ |
243 |
$("#recalls_patronsearch").on("submit", filter); |
252 |
$("#recalls_patronsearch").on("submit", filter); |
244 |
[% UNLESS patron %] |
253 |
[% UNLESS patron %] |