Table of Contents

MARC Report: Edit Macros

MARC Report supports 36 different macro keys.

The interface in the options for setting up a macro looks like this:

Note that the unmodified 'F' keys (eg. F1, F2, etc.) are reserved for use by the program menus.

Define/Edit macros

There are two types of macros:

  1. macros that add a new tag to a record, and
  2. macros that add data at the cursor position.

To setup or edit a macro, go to the program options and select the page named 'Edit macros'. Next, click on the shortcut key for the macro. A caption will appear on the form to confirm your selection.

To define a macro that adds a new tag to a record, enter the tag, indicators and data that you want to be added. The indicators will be blank by default, so there's no need to enter anything in these boxes unless you want non-blank indicators. The data cannot be blank however.

To define a macro that adds data at the cursor position, set the tag to 000, set each indicator to #, then enter the field data that you want to add.

Press Save.

Note: Use '$' in the data field to represent a MARC subfield delimiter. To enter an actual dollar sign, enclose it in square brackets; for example: $c[$]19.95

Apply macros

To add a new tag to a record you are editing, click on the tag immediately below where you want to insert the new tag and press the corresponding ShortCut. For example, if you have defined a macro for an 092 field, and the record you are working on looks like this–

040     $aDLC$cDLC$dDLC$dNjBwBT
050 0 0 $aPS3606.L58$bE94 2006
082 0 0 $a813/.6$222
100 1   $aFlock, Elizabeth.

–click on the 100 tag, then press the Shortcut for your 092 macro.

To add a new tag to the end of a record, follow these steps:

  1. Click on the last tag in the record
  2. Press the <Down Arrow> key once
  3. Press <Enter>
  4. Press the Shortcut key combination that you defined for your macro.

IMPORTANT: Data added to a record via macros is not automatically saved; press the Save button to save any changes that result from macros and revalidate the record.

NOTE: If you have the option to 'Sort Tags' enabled (under the Record Display options), then regardless of where a new tag is inserted by a macro (or by any other means), that tag will appear in numerical order as soon as the Save button is pressed.

Using macros in Text view

Beginning with version 238, you may now also use any defined macro in Text view. This is fairly straightforward, although there are a couple of things to look out for:

We recommend using only macros that include the tag for fixed fields (Note: that the second type of macro isn't possible in the default view).

In Text view, macros that are global (ie., macros that do not include the tag in their definition) will be pasted wherever you put the cursor. The program will insert the macro data at the blinking cursor position, and then advance the cursor to the end of the data that was added.

Macros in Fixed Fields

Macros cannot be used in the leader; however, you can set up a macro to add a fixed field (like 006 or 007).