[Koha-bugs] [Bug 20888] Allow use of boolean operator 'not' in item search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 3 09:54:39 CEST 2019


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

--- Comment #19 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
(In reply to Matthias Meusburger from comment #18)
> I think we should rename "is" to "is like" then. This way it will be
> consistent, with the following options:
> 
>  - is like
>  - is not
> 
> An "is" and/or "is not like" option may be added in the future, and it will
> still be consistent.
> 
> What do you think?

One problem we see with item search is that people expect it to work like the
bibliographic search. For example, when searching for "Title is some words",
they expect results to come up, but often forget to put the truncation. If the
title actually is "these some words" the search will only find it if you use:
Title is %some words".
I think that's the reason, why we should not change the wording, we do use the
SQL operator "like" and unless you use truncation, it works like an exact
search. But it gives you the option to use the truncation.

And I think we want the same behavior for adding the 'not' operator: If the
libraries don't add truncation characters it will actually behave like !=, but
they have the option to add them to make search a bit broader.

Also: The hint below the search options will then be accurate, otherwise it
would be misleading:

You can use the following wildcard characters: % _
% matches any number of characters
_ matches only a single character

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list