From 4247d8971d47eade7659fdd12a9bd03ad0869b0f Mon Sep 17 00:00:00 2001 From: Nicole C. Engard Date: Sat, 14 Dec 2013 12:34:00 -0600 Subject: [PATCH] Bug 11383: Add help file for Marc modification templates This patch adds the missing help files to the Marc modification templates tool. To test: * Visit Tools > Marc modification templates * Click 'Help' in the top right * Confirm that help is there and right Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../help/tools/marc_modification_templates.tt | 63 ++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/marc_modification_templates.tt diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/marc_modification_templates.tt new file mode 100644 index 0000000..30ba280 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/marc_modification_templates.tt @@ -0,0 +1,63 @@ +[% INCLUDE 'help-top.inc' %] + +

MARC Modification 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/sources 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.

+ +

Start by adding a new template (a template can be made up of one or more actions) by entering a name and clicking 'Create template'.

+ +

Next you can add actions to the template by filling in the Action box. For example if you're loading in a batch of files from your EBook vendor you might want to add the biblio item type of EBOOK to the 942$c.

+ +
    +
  • Choose 'Add/Update'
  • +
  • Enter the field 942 and subfield c
  • +
  • Enter the value of 'EBOOK' (or whatever your ebook item type code is)
  • +
  • Provide a description so you can identify this action later
  • +
  • Click 'Add action'
  • +
+ +

Each action can also have an optional condition to check the value or existance of another field. For example you might want to add the call number to the item record if it's not already there.

+ +
    +
  • Choose 'Copy'
  • +
  • Decide if you want to copy the first occurance or all occurances of the field
  • +
  • Enter the field 090 (or other biblio call number field) and subfield a to copy
  • +
  • Enter the 952 field and o subfield to copy to
  • +
  • Choose 'if'
  • +
  • Enter the 952 field and o subfield
  • +
  • Choose "doesn't exist"
  • +
  • Provide a description so you can identify this action later
  • +
  • Click 'Add action'
  • +
+ +

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.

+ +
    +
  • Choose 'Copy'
  • +
  • Decide if you want to copy the first occurance or all occurances of the field
  • +
  • Enter the field 020 and subfield c to copy
  • +
  • Enter the 020 field and c subfield to copy to
  • +
  • Check the 'RegEx' box and enter your regular expression ( in this case s/\$// )
  • +
  • Choose 'if'
  • +
  • Enter the 020 field and c subfield
  • +
  • Choose "matches"
  • +
  • Check the 'RegEx' box and enter your regular expression ( in this case m/^\$/ )
  • +
  • Provide a description so you can identify this action later
  • +
  • Click 'Add action'
  • +
+ +

Tip: 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 ).

+ +

Once your actions are saved you can view them at the top of the screen. Actions can be moved around using the arrows to the left of them.

+ +

Depending on your actions the order may be very important. For example you don't want to delete a field before you copy it to another field.

+ +

To add another template you can either start fresh or click the 'Duplicate current template' checkbox to create a copy of an existing template to start with.

+ +

Once your template is saved you will be able to pick it when using the Stage MARC Records for Import tool.

+ +

See the full documentation for MARC Modification Templates in the manual (online).

+ +[% INCLUDE 'help-bottom.inc' %] \ No newline at end of file -- 1.7.2.5