Koha/t/Koha
Nick Clemens 6ce56f1134 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 <severine.queune@bulac.fr>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Bug 24567: (follow-up) Use dollar sign to refer to captures

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-11-04 14:49:11 +01:00
..
Authority Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
I18N/po/xx_XX/LC_MESSAGES
Middleware Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Object Bug 26555: (QA follow-up) Add a 'payload' attribute for carrying useful things 2020-10-15 14:50:06 +02:00
Plugins Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
REST/Plugin Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
SearchEngine Bug 24567: Don't strip spaces along with dangling colons 2020-11-04 14:49:11 +01:00
Util Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Config.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Email.t Bug 22343: Add exec flag on .t files 2020-10-05 11:14:32 +02:00
Exceptions.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
I18N.t
ItemType.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
RDF.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Script.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Script_cron.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
sleep.pl Bug 25109: Add ->new and ->lock_exec to Koha::Script 2020-04-14 16:56:57 +01:00
wait.pl Bug 25109: Add 'wait' tests 2020-04-14 16:57:01 +01:00
Z3950responder.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00