@@ -, +, @@ - Exclude partners with no email address, we cannot use them - Quote the "value" attribute to avoid warnings displayed by IE, they - Apply the patch - Define 3 ILL partner patrons (patrons in the category that has a code - Navigate to "Place request with partners" for an ILL request - TEST: Observe that the patron with no email address is not displayed - Try filtering the list - TEST: Observe that the list filters correctly --- .../prog/en/modules/ill/ill-requests.tt | 8 +++++--- koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 12 +++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -290,9 +290,11 @@ --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -323,20 +323,22 @@ $(document).ready(function() { }); // Filter partner list + // Record the list of all options + var ill_partner_options = $('#partners > option'); $('#partner_filter').keyup(function() { var needle = $('#partner_filter').val(); - $('#partners > option').each(function() { - var regex = new RegExp(needle, 'i'); + var regex = new RegExp(needle, 'i'); + var filtered = []; + ill_partner_options.each(function() { if ( needle.length == 0 || $(this).is(':selected') || $(this).text().match(regex) ) { - $(this).show(); - } else { - $(this).hide(); + filtered.push($(this)); } }); + $('#partners').empty().append(filtered); }); // Display the modal containing request supplier metadata --