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

Emmi Takkinen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121435|0                           |1
        is obsolete|                            |
                 CC|                            |[email protected]

--- Comment #7 from Emmi Takkinen <[email protected]> ---
Created attachment 121443
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121443&action=edit
Bug 28316: screen square and curly brackets in the search query

This patch screens all square and curly brackets which have no special
language meaning, while keeping ranges as they are, allowing ES to
search for biblios with titles that contain square and curly brackets
and at the same time allows the use of range searches ([1990 TO 2000]).
Previously, there was old time fix for curly brackets that replaced them
with quotes which made curly brackets range functionality not working,
that code was also removed with this patch Also this patch adds tests
for this behavior.

To reproduce:
1) with ES enabled, search for a book with tittle like "test [test]",
which will result in error.
2) apply the patch.
3) search for that book again, which should work now.
4) run test QueryBuilder.t to make sure that it runs successfully.

Signed-off-by: Emmi Takkinen <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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