Bug 29284: Handle the case of an exclamation point in parentheses
authorNick Clemens <nick@bywatersolutions.com>
Wed, 20 Oct 2021 12:49:42 +0000 (12:49 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Oct 2021 12:08:06 +0000 (14:08 +0200)
commita8920e7b1bea0b879679b5353c28fb2849f51655
tree8ee4544601862dfa9571d7d7aa44301b56e4457b
parentf0bcbce7673919d3d5174dc44cdca9a33176bbe9
Bug 29284: Handle the case of an exclamation point in parentheses

This expands the regex to handle this specific case

To test:
1 - Load record created for last patch
2 - Note analytics error
3 - Apply patch
4 - Restart and reload
5 - No more errorm also no Analytics link
6 - Add a 773$t to a record with title used before:
    Digger does it all (not really!)
7 - reload the initial record
8 - See 'Show analytics' link
9 - Click the link
10 - You should end up on the record you added the 773 to

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm