https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18961

--- Comment #5 from Fridolin SOMERS <fridolin.som...@biblibre.com> ---
Created attachment 68072
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68072&action=edit
Bug 18961: (alternate) Datatable column filters use exact match by default

Datatable column filters of type select do not do an exact match. E.g. for a
select with values 'Fiction' and 'Non-fiction', filtering after 'Fiction' will
match both.

Similar problems can happen for other column filters of type select as well,
see:
jQuery DataTable ColumnFilter plugin. Can the 'select' filter style support
exact match?
https://stackoverflow.com/questions/9520423/jquery-datatable-columnfilter-plugin-can-the-select-filter-style-support-exac

This patch removes the fact that search text in colum filter behaves as
'contains', match is exact by default so that filter with select are good.
For text filters, one can always use whilcards characters like in items search
form.
Patch adds an hint text after search results.

Test plan :
- Apply patch of Bug 16485 - Collection column in Item search is always empty
- Make sure you have collection codes 'Fiction' and 'Non-fiction'
- Do an item search
- Filter column 'Collection', select 'Fiction'
- Result: Column contains items of both collections (Fiction and Non-fiction)
- Choose a barcode from results, for example 123456
- Search on barcode with '3' of this barcode, you get no result
- Search on barcode with '%3%', you get the barcode in results

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to