]> git.koha-community.org Git - koha.git/commit
Bug 19069: Fix 'does not match' behaviour in MARC modification template
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 2 Oct 2017 19:42:46 +0000 (16:42 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Oct 2017 17:09:01 +0000 (14:09 -0300)
commitbdf85f5e39edeb1e2e85629044f1df25f56484f5
tree3f9cef9a52f9a30ecc1ee7a78e25ad82cd911f69
parenta70c38f38001ec34749c9f4cc38a4eef9d2ed04a
Bug 19069: Fix 'does not match' behaviour in MARC modification template

The "does not match" condition does not behave as expected.
We want it to process the action if the subfield exists and that the
value does not match a given pattern.

Test plan:
Be creative and write different template actions using the "does not
match" condition.
Using the "Batch record modification" and the "Show MARC" popup, confirm
that the processed record is the one you are expecting.

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/MarcModificationTemplates.pm
Koha/MoreUtils.pm [new file with mode: 0644]
t/db_dependent/MarcModificationTemplates.t