]> git.koha-community.org Git - koha.git/commit
Bug 22571: Handle control fields in MMT for conditionals
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 5 May 2019 17:41:46 +0000 (12:41 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 16 Jul 2019 06:39:39 +0000 (08:39 +0200)
commite9455e8d55ca1233db40349999b422944bb7d7d8
treefc4d58bca8ec47182d246593689ceda52f16aa45
parent371389605fdd75169d78ea2a9637ecab85b07bc4
Bug 22571: Handle control fields in MMT for conditionals

Control fields are not handled correctly by Koha::SimpleMARC when
comparaison (with or without regex) is done.

Which means we did not support something like:
Do something if control field 008 equals or matches "a string"

Test plan:
Create a new MARC modification template and a new action, like:
Add new field 100$a with value "foo bar" if 008 (or any other control
fields) matches (or equals) a regex
Then use the record mofication tool and confirm that the new field is
create if the regex matches 008 of the bib record

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit c59586aebe1d8eab56d3cd32b5156fc1a61f11ec)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SimpleMARC.pm