Skip to content
  • Kyle M Hall's avatar
    Bug 8015: Add MARC Modifications Templates · 622430cf
    Kyle M Hall authored
    
    
    The MARC Modification Templates system gives Koha users
    the power to make alterations to MARC records automatically
    while staging MARC records for import.
    
    This tool is useful for altering MARC records from
    various venders work with your MARC framework.
    
    The system essentially allows one to create a basic script
    using actions to Copy, Move, Add, Update and Delete fields.
    
    Each action can also have an optional condition to check
    the value or existance of another field.
    
    The Copy & Move actions also support Regular Expressions,
    which can be used to automatically modify field values during the
    copy/move. An example would be to strip out the '$' character
    in field 020$c.
    
    Furthermore, the value for an update can include variables
    that change each time the template is used. Currently,
    the system supports two variables, __BRANCHCODE__ which
    is replaced with the branchcode of the library currently
    using the template, and __CURRENTDATE__ which is replaced
    with the current date in ISO format ( YYYY-MM-DD ).
    
    At its simplist, it can perform functions such as:
    Copy field 092$a to 952$c
    At its most complex it can run actions like:
    Copy field 020$c to 020$c using RegEx s/\$// if 020$c equals RegEx m/^\$/
    
    Signed-off-by: default avatarLeila <koha.aixmarseille@gmail.com>
    Signed-off-by: default avatarGalen Charlton <gmc@esilibrary.com>
    622430cf