Merge Text Data into MARC records

In general, to merge data from text to MARC with MARC Global, the following items are needed:

  1. A tab-delimited textfile consisting of two columns, where column 1 contains a match key, and column 2 contains the data to be merged.
  2. A MARC file containing a tag that the match key from the textfile will match.

Once these requirements are met, text data can be merged to MARC records using MARC Global.


MARC File notes

Textfile notes

 $c$20.00 

–it must be enclosed in square brackets–

 $c[$]20.00 

–or the program will think that it is a delimiter.

General notes


In addition to the above, if you plan on saving this review for future use/re-use, make sure that the textfile is located in a folder that is not likely to be changed or moved. The reason for this is that, in a saved review, MARC Global saves the name of the file (not the items themselves), and if the file were to be moved, the saved review would become invalid.


Processing outline

MARC Global will read each MARC record from the file normally. It will then search the record for the pattern containing the match key. If found, it will then search the list of match keys from the textfile for a match. If found, it will then add the second column from the matching textfile row to the Tag specified on the 'Add New Tag' form.

Step by step Example

In this example, we want to merge the text from column 2 in the textfile into a 856 tag in the matching MARC records. We will use an 001 tag to link the MARC records and the text data. In the example below, the first column contains an 001, and the second column contains the data that will become the 856 field.

ccn00217011    Contents$uhttp://www.resource.com/toc/ID24154657
ccn00217059    Contents$uhttp://www.resource.com/toc/ID24354683
...

Start MARC Report, select the MARC file that you want to merge the text data to, and start MARC Global.

On the PATTERN form, enter '001' into the TAG box, press TAB, then right-click on the DATA box. The following menu will display:

Select 'Merge list' from the menu, then navigate to the textfile containing the data to be merged and select it. The program will load the textfile into memory and, if all went well, produce a pop-up like the following:

Press OK, press NEXT, then on the 'Types of Global Change' form, select the 'Add a New Tag' option, and press NEXT.

On the 'Add Tag' form, enter '856' in the TAG box, '3' in the SUBF box (because the textfile data lacks an opening subfield), press TAB, then right-click on the DATA box. This message should pop-up:

Note: if column 2 in the textfile was formatted with a leading subfield

   ccn00217011    $3Contents$uhttp://www.resource.com/toc/ID24154657

you will need to clear the SUBF box on the Add New Tag form.

Click YES, then select the appropriate option form the 'Additional options' box below:

Once the 'Add Tag' form is complete, press NEXT, setup the output options, then run the task; the results summary should look something like this;

Source file: D:\MARC\imports\sent2vendor.mrc
210 record(s) in source file.
210 record(s) matched the pre-processing pattern: 
  AND 001 [Data from List] [Case=Y] 
210 record(s) matched the Global Change options.
210 tag(s) had the Global Change applied: 
  Add Tag 856$a [Data from List] [Case=Y]  

Limitations

1)
Deal with normalization issues either by using MARC Global to adjust the match key in the MARC records, or a text editor to adjust the first column of the textfile.
2)
our trusty Textpad, in fact, does exactly this
3)
Hint: the MARC file can be deduped by running the Sort utility