7 This function is used to batch edit MARC records either adding a field, removing a field or changing the contents of a field.
9 .What MARC Batch Edit Can and Can't Do
10 **************************************
11 MARC Batch Edit is a powerful tool, but it also has some limitations.
12 This tool can do the following tasks to a group of MARC records:
14 * Remove all instances of a specific tag (e.g. remove all 992 tags)
15 * Remove all instances of a specific tag _if_ a particular subfield
16 has a particular value (e.g. remove all 650 fields in which the $2
18 * Remove all instances of a specific subfield (e.g. remove all 245$h)
19 * Remove all instances of a specific set of subfields
21 * Add a subfield to an existing field
22 * Replace data in a specific field or subfield
24 It cannot do more advanced tasks, such as:
26 * Swapping data from one field to another
27 * Deduplicating MARC records
28 * Complex logic based on existing data
30 For more advanced projects, you may wish to export your records and
31 use a free tool such as http://marcedit.reeset.net/[MARCEdit] or
32 https://github.com/edsu/pymarc[PyMarc].
34 **************************************
36 Setting Up a Batch Edit Session
37 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 This includes options to batch edit identifying MARC records in a record bucket, CSV file or by record id.
43 This button runs the action defined by the rule template(s).
48 Replaces the value in a MARC field for a batch of records.
50 Removes a MARC field and its contents from the batch of records.
52 Use this to add a field and its contents to a batch of records.
57 This is used to identify the field for adding, replacing, or deleting.
59 Indicates which subfield is being edited.
61 Use this to indicate the data to add or used in replacing the existing data.
63 Advanced Matching Restrictions (Optional)
64 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 Using PERL syntax for a regular expression to identify the data to be removed or replaced.
69 .Running a Template to Add, Delete, or Replace MARC data
70 . Click Cataloging->MARC Batch Edit
71 . Select *Record source*
72 . Select the appropriate bucket, load the CSV file or enter record id depending on *Record source* selected
73 . Select the *Action Rule*
74 . Enter the *MARC Tag* with no indicators (eg. 245)
75 . Enter the *subfields* with no spaces. Subfields are optional. Multiple subfield can be entered such as _auz_.
76 . Enter the *MARC Data* which is the value in the fields
77 . Enter optional *Advanced Matching Restrictions*
79 .. Regular Expression (using PERL syntax)
81 . Results page will display indicating the number of records successfully edited
86 Adding a new field to all records
87 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89 . In the _action_ menu, choose _Add_.
90 . In _MARC Tag_, type the MARC tag number.
91 . Leave the _Subfields_ field blank.
92 . In _MARC Data_, type the field you would like to add.
94 Delete a field if it contains a particular string
95 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 . In the _action_ menu, choose _Delete_.
98 . In _MARC Tag_, type the MARC tag number.
99 . Leave the _Subfields_ field blank.
100 . In _MARC Data_, type the field you would like to add.
101 . In the _subfield_ field under _Advanced Matching Restriction_, type the subfield code where you expect to see the string.
102 . In _Regular Expression_, type the string you expect to see.