[Koha-bugs] [Bug 23873] Allow marc modification templates to use capturing groups in substitutions
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 3 20:10:06 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23873
--- Comment #8 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Adding some details to the test plan, to spare others having to think about it
:)
1 - have a record with 245a "the best book ever"
2 - create a modification template to copy and replace the 245a to the 245a,
using regex
3 - in your regex, match "(.+\b)best(.+)" and replace with "$1worst$2"
4 - perform a batch mod on your record, end up with "$1worst$2" as your literal
title
5) Apply the patch and try again, this time the capture group should
yield the expected results.
6) Run t/SimpleMARC.t and confirm the tests still pass.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list