]> git.koha-community.org Git - koha.git/commit
Bug 14098: Implement the copy_and_replace action for MTT
authorJonathan Druart <jonathan.druart@koha-community.org>
Wed, 27 May 2015 12:02:25 +0000 (14:02 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Sep 2015 14:17:13 +0000 (11:17 -0300)
commitf189696bb7bfeeb82e977d3b9a8eff6f24555b55
tree0f793af8f2cdf19df7fde1d365edb54a9ed21e68
parent0f74321977c50ef45daa4897933ee0fac378dcb6
Bug 14098: Implement the copy_and_replace action for MTT

This patch implements the copy and replace action for the marc
modification templates.
Instead of copying a field/subfield, it will erase the destination
fields/subfields.

Test plan:
Find it yourself.
Compare the differences between the copy and the copy_and_replace
actions.
The easier way to test is to 1/ create a complete record, 2/create some
modification templates and 3/ use the batch record modification with the
"preview" function.

QA note: I kept the same tests as "copy" and, if no change were
expected, I noted them "(same as copy)", to be sure this new action won't
introduce regression on these tests.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/MarcModificationTemplates.pm
Koha/SimpleMARC.pm
t/SimpleMARC.t