View | Details | Raw Unified | Return to bug 11383
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/marc_modification_templates.tt (-1 / +63 lines)
Line 0 Link Here
0
- 
1
[% INCLUDE 'help-top.inc' %]
2
3
<h1>MARC Modification Templates</h1>
4
5
<p>The MARC Modification Templates system gives Koha users the power to make alterations to MARC records automatically while staging MARC records for import.</p>
6
7
<p>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.</p>
8
9
<p>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'.</p>
10
11
<p>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.</p>
12
13
<ul>
14
	<li>Choose 'Add/Update'</li>
15
	<li>Enter the field 942 and subfield c</li>
16
	<li>Enter the value of 'EBOOK' (or whatever your ebook item type code is)</li>
17
	<li>Provide a description so you can identify this action later</li>
18
	<li>Click 'Add action'</li>
19
</ul>
20
21
<p>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.</p>
22
23
<ul>
24
	<li>Choose 'Copy'</li>
25
	<li>Decide if you want to copy the first occurance or all occurances of the field</li>
26
	<li>Enter the field 090 (or other biblio call number field) and subfield a to copy</li>
27
	<li>Enter the 952 field and o subfield to copy to</li>
28
	<li>Choose 'if'</li>
29
	<li>Enter the 952 field and o subfield</li>
30
	<li>Choose "doesn't exist"</li>
31
	<li>Provide a description so you can identify this action later</li>
32
	<li>Click 'Add action'</li>
33
</ul>
34
35
<p>The Copy &amp; 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.</p>
36
37
<ul>
38
	<li>Choose 'Copy'</li>
39
	<li>Decide if you want to copy the first occurance or all occurances of the field</li>
40
	<li>Enter the field 020 and subfield c to copy</li>
41
	<li>Enter the 020 field and c subfield to copy to</li>
42
	<li>Check the 'RegEx' box and enter your regular expression ( in this case s/\$// )</li>
43
	<li>Choose 'if'</li>
44
	<li>Enter the 020 field and c subfield</li>
45
	<li>Choose "matches"</li>
46
	<li>Check the 'RegEx' box and enter your regular expression ( in this case m/^\$/ )</li>
47
	<li>Provide a description so you can identify this action later</li>
48
	<li>Click 'Add action'</li>
49
</ul>
50
51
<p><strong>Tip:</strong> 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 ).</p>
52
53
<p>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.</p>
54
55
<p>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.</p>
56
57
<p>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.</p>
58
59
<p>Once your template is saved you will be able to pick it when using the Stage MARC Records for Import tool.</p>
60
61
<p><strong>See the full documentation for MARC Modification Templates in the <a href="http://manual.koha-community.org/[% helpVersion %]/en/catalogtools.html#marcmodtemplates">manual</a> (online).</strong></p>
62
63
[% INCLUDE 'help-bottom.inc' %]

Return to bug 11383