Lines 195-200
Link Here
|
195 |
<script> |
195 |
<script> |
196 |
let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %]; |
196 |
let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %]; |
197 |
let hold_ids = [% IF updated_holds %] [% updated_holds | $raw %] [% ELSE %] [] [% END %]; |
197 |
let hold_ids = [% IF updated_holds %] [% updated_holds | $raw %] [% ELSE %] [] [% END %]; |
|
|
198 |
let hold_ids_from_sql = [% IF reserve_ids_list %] [% reserve_ids_list | $raw %] [% ELSE %] [] [% END %]; |
198 |
|
199 |
|
199 |
$(document).ready(function() { |
200 |
$(document).ready(function() { |
200 |
|
201 |
|
Lines 260-265
Link Here
|
260 |
return false; |
261 |
return false; |
261 |
}); |
262 |
}); |
262 |
|
263 |
|
|
|
264 |
if(hold_ids_from_sql.length > 0){ |
265 |
$('#modify_holds_form').trigger('submit'); |
266 |
} |
267 |
|
263 |
$("#edit_search").on("click", function(e){ |
268 |
$("#edit_search").on("click", function(e){ |
264 |
e.preventDefault(); |
269 |
e.preventDefault(); |
265 |
$('#modify_holds_search').show(); |
270 |
$('#modify_holds_search').show(); |
Lines 359-364
Link Here
|
359 |
searchpattern += holdnotes ? _("hold notes like ") + holdnotes : ""; |
364 |
searchpattern += holdnotes ? _("hold notes like ") + holdnotes : ""; |
360 |
|
365 |
|
361 |
return holdnotes ? {"-like": "%"+holdnotes+"%"} : ""; |
366 |
return holdnotes ? {"-like": "%"+holdnotes+"%"} : ""; |
|
|
367 |
}, |
368 |
"me.hold_id": function(){ |
369 |
return hold_ids_from_sql.length > 0 ? { "-in": hold_ids_from_sql } : ""; |
362 |
} |
370 |
} |
363 |
} |
371 |
} |
364 |
|
372 |
|