[Koha-bugs] [Bug 20913] New: allow multiple if/unless statements in MARC modification template actions by adding AND/OR qualifiers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 12 07:37:13 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20913

            Bug ID: 20913
           Summary: allow multiple if/unless statements in MARC
                    modification template actions by adding AND/OR
                    qualifiers
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Tools
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: hughr at brimbank.vic.gov.au
        QA Contact: testopia at bugs.koha-community.org

Actions in MARC Modification templates have the following syntax:

[action] all/first [field] (plus optionally... if/unless [field] [conditional])

But there is only the option for one if/unless. This is usually enough, but
sometimes it would be useful to be able to add another qualifier linked with
and/or.

For example, libraries importing embedded items might want to apply a different
shelf location or call number depending on the home location. In this case,
they would want to do something like:

Add/Update field '952c' with value 'Animals' 
IF field '984c' matches /^(57+[0-9]+.?.*)/
AND 
IF field '952a' matches 'Main'

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list