[Koha-bugs] [Bug 8015] Add MARC Modifications Templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 9 16:18:43 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8015

Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #21024|0                           |1
        is obsolete|                            |

--- Comment #148 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 21901
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21901&action=edit
Bug 8015 - Add MARC Modifications Templates

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: Leila <koha.aixmarseille at gmail.com>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>

Works as described. No koha-qa errors

One comment to rule them all
(please squash this patchset!)

I think I tested all possible cases: add, copy, delete, move,
regex find and replace (text and also changing branch in 952ab
using __BRANCHNAME__)

Unit test run fine.

No help file yet but not a functional requirement.
Think is a good adition.

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


More information about the Koha-bugs mailing list