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

Joonas Kylmälä <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #112564|0                           |1
        is obsolete|                            |
 Attachment #112832|0                           |1
        is obsolete|                            |

--- Comment #7 from Joonas Kylmälä <[email protected]> ---
Created attachment 112903
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112903&action=edit
Bug 24567: Don't strip spaces along with dangling colons

This updates the regex used for removing colons to capture those with space on
either side, and remove the colon
while preserving the space

To test:
 1 - Have Koha using ES
 2 - Search for:
    ti:chess AND chess
 3 - You should get a result in sample data, otherwise replace 'chess' with a
title in your catalogue
 4 - Search for:
    ti:chess AND kw:chess
 5 - No result
 6 - Enable  DumpTemplateVarsIntranet  and  DumpSearchQueryTemplate
 7 - Repeate search and check page source
 8 - search_query has:
    title:chess ANDchess
 9 - Apply patch
10 - Repeat
11 - Seaerch works!
12 - query is now:
     title:chess AND chess

Signed-off-by: Séverine QUEUNE <[email protected]>
Signed-off-by: Joonas Kylmälä <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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