[Koha-bugs] [Bug 28316] Cannot search with square brackets []

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 21 13:16:52 CEST 2021


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

Andrew Nugged <nugged at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nugged at gmail.com

--- Comment #4 from Andrew Nugged <nugged at gmail.com> ---
(In reply to Nick Clemens from comment #2)
> This is a decision we need to make. Do we want to automatically escape these
> characters, and then we cannot use range searches in Koha, or do we want to
> allow for more advanced searching, but ask the user to escape things?


What if we introduce config variable (so Koha can behave in the old way for
those who don't use this or not changed, because of proper default value we
will set), and even we can have that variable more advanced state "extra
checkbox" under the search field, so:


"useAdvancedSearchSyntax" config var with three states:
  1. always (current Koha style)
  2. never (i.e. all special characters auto escaped)
  3. show checkbox "on/off advanced search syntax" just under the search field

third option I mean: 

[___________________] [Submit]
[x] disable advanced syntax (syntax help link)


so we sill have some URL like this:
/cgi-bin/koha/catalogue/search.pl?q=test+book&disable_adv_syntax=1
and adding this +1 parameter to search form this also allows to generate
externals search links if we need

?

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


More information about the Koha-bugs mailing list