Bug 25840 - MARC modification templates still do not handle control fields in conditional
Summary: MARC modification templates still do not handle control fields in conditional
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: 20.05
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 22571
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-22 10:57 UTC by Michael Kuhn
Modified: 2021-06-14 21:29 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kuhn 2020-06-22 10:57:02 UTC
Referring to bug 22571:

I just tested the original case in Koha 20.05.00, but wasn't successful:

After creating a MARC modification template in Koha menu "Tools > Batch record modification" with the following action:

Add new field 041$a with value ger if 008 matches RegEx m/^...................................ger..$/

I also tried the following action (omitting ^ and $):

Add new field 041$a with value ger if 008 matches RegEx m/...................................ger../

The action is run over a given record and Koha says that the bibliographic record has successfully been modified - but in fact nothing has changed, thus no new MARC 041$a with content "ger" is created.
Comment 1 Jonathan Druart 2020-06-24 09:32:16 UTC
It works for me on master using: https://snipboard.io/PHw2sz.jpg
Comment 2 Michael Kuhn 2020-06-24 09:43:10 UTC
It seems I was doing something wrong. I tried once again and the bibliographic record has successfully been modified. Thanks, Jonathan!

So this bug is obsolete and can be closed.