About this macro
Activation: <Alt><Up Arrow> Menu option "d"
Application: Aleph (Cataloging module)
Launch From: Bib record with cursor in the field above the intended location for the new 752 field
What this macro does
This macro adds a 752 field to a bibliographic record using information from the 008 field and a text file containing country codes and names and common city names
How to use this macro
- Place cursor within the field preceding the desired location of the 752
- If a 752 field is already present in the record, enter the 3-letter MARC country code for a second 752 field when prompted
- Select appropriate geographic text string from menu
- If the added 752 field ends with a blank subfield d ("$$d "), type the city name after the "$$d"
- Press <F3> to check heading against Aleph's "Hierarchical Place Name" index
- Press <Enter>
Troubleshooting
If you receive an error message that the country code is not found in the file, email Houghton's MEXpert to add the country code to the CountryCodes.txt file.
If you would like a city name added to the menu choices for a country, email Houghton's MEXpert.to add the city to the CountryCodes.txt file; until the city is added use the menu choice with the blank subfield d.
If the geographic location bytes in the 008 are blank, the macro will not run.
If you notice typos or incorrect headings in any of the text strings, report them to Houghton's MEXpert.
Technical information
Name
Add 752 (Former ME Nickname: cat_cat_Add752_hou)
Purpose
This macro adds a 752 field to a bibliographic record using information from the 008 field and a text file containing country codes and names and common city names.
Activation
Houghton Macro Suite menu–<Alt><Up Arrow> Menu option "d"
Starting point
Start this macro in the Aleph Cataloging module with the cursor within the field preceding the desired location of the 752.
Ending point
This macro ends after typing the 752 text string; user must press <Enter> to complete the action in Aleph.
Assumptions
This macro assumes that:
A bibliographic record is open in Aleph.
The cursor is already positioned where the 752 should be added.
Actions
This macro: <description of the steps taken by the macro; should be concise but detailed enough for user to identify where a problem may be occurring>
Clears clipboard and all macro variables
Overlays MacroClip.txt with blank text file
Copies Aleph bib record to WorkingRecord.txt
Pulls country code from 008 field
- Checks for existing 752 field
If no 752 in record, matches 008 country code to countries in file CountryCodes.txt
If 752 is already present, prompts user to enter country code in dialog box to add a second 752
Presents possible geographic text strings in a multiple choice menu
First line in MacroClip.txt file is the default menu choice
Adds 752 using selected string
Submacros
none
Required shortcuts or key commands
none
Files accessed
This macro uses the following files:
- H:\HOUGHTON\Technical Services\Shared\Macros\Helper_Files\CountryCodes.txt
Files created
This macro creates the following files:
C:\Program Files\Macro Express3\Houghton\WorkingRecord.txt
C:\Program Files\Macro Express3\Houghton\MacroClip.txt
Variables Used
This macro uses the following text variables:
T1: Copied Aleph bib record
T2: Line in WorkingRecord.txt file (temporary)
T3: 008 bytes 15-17 (place of publication)
T4: Line in CountryCodes.txt file (temporary)
T5: Country code in CountryCodes.txt
T6: Dynamic menu options for 752
T7: Selected geographic string for 752 field
T8: MARC field (temporary)
And the following integer variables:
- N1: Integer flagging presence of 752 field
Known issues/troubleshooting
Not all country codes and 752 strings are in the CountryCodes.txt file
An error message will display if a country code is not found in the file
Users should e-mail requests for country code and 752 string additions
Macro does not pull location information from 260 but does present commonly referenced cities based on 008 country code
Macro will not work if geographic location bytes in 008 are blank
Only commonly referenced cities are listed in the macro's precomposed 752 strings
A precomposed string with a blank subfield d (without ending punctuation) is always presented as an option
Typos/errors may be present in the CountryCodes.txt file and should be reported to Houghton's MEXpert
Additional information
none
Development history
Created: <date unknown> by Vernica Downey
Created in and for Macro Express <version number unknown>
Created for Aleph <version number unknown>
Last revised: <last revised date unknown>
Revision history
<YYYY-MM-DD> / <reviser's initials> / <description of changes made to macro>