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.

Back To Top

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

Back To Top

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.

Back To Top

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.

Back To Top

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

  • Use a macro that includes both the tag and the data
  • Do not set any indicators in the macro.
  • Carefully count out the number of characters for the Data portion of the macro. For the 006, the length of the macro data (excluding the Tag) must be 18 characters; for an 008, it must be 40 characters; for an 007, the length varies according to the value of the first byte–look it up if you do not know.
  • In Text view, place the cursor in the left margin below the line where you want to insert the new tag; eg., if you are adding an 007, put the cursor to the left of the first zero in the '008' before you press the macro key.

238/macros.txt · Last modified: 2013/05/14 12:12 (external edit)
Back to top
CC Attribution-Noncommercial-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed