Use Macros Last Updated: May 2021
Total Page:16
File Type:pdf, Size:1020Kb
OCLC Connexion Client Guides Basics: Use Macros Last updated: May 2021 OCLC Online Computer Library Center, Inc. 6565 Kilgour Place Dublin, OH 43017-3395 Review History Date Section title Description of changes September 2011 1 Introduction • New OCLC-supplied macro Add33x added to OCLC.mbk • Legacy Help files (*.hlp) on Standard BASIC and Macro Editor and Debugger are unavailable in Connexion client under Windows Vista and higher versions. 4 List of macro New macro command, InsertFromCitedRecord, added to lists. commands 7 Commands: Detailed description and an example for Edit records InsertFromCitedRecord added. March 2012 1 Introduction Added descriptions of two new OCLC-supplied macros: • ClearELvl3Workform • GenerateERecord (this macro replaces two OCLC macros – GenerateESerial and GenerateESerialCONSER) 4 List of macro Added a new macro – GetClassNumber. commands 7 Commands: • Added 800, 810, 811, or 830 to the list of fields that Edit records can be used for the command InsertFromCitedRecord • Added a detailed description of the new macro command, InsertFromCitedRecord September 2012 All Removed references to pathfinder. April 2013 All Removed references to Heritage Printed Book and Chinese Name Authority. June 2016 All Removed references to institution records. May 2021 1 Introduction Added note pointing to Connexion client version 3.0 documentation. 7 Commands: Updated description for ChangeRecordType. Edit records © 2016 OCLC Online Computer Library Center, Inc. 6565 Kilgour Place Dublin, OH 43017-3395 USA The following OCLC product, service and business names are trademarks or service marks of OCLC, Inc.: CatExpress, Connexion, DDC, Dewey, Dewey Decimal Classification, OCLC, WorldCat, WorldCat Resource Sharing and "The world's libraries. Connected." In addition, the WorldCat symbol and OCLC symbol are service marks of OCLC. Third-party product and service names are trade- marks or service marks of their respective owners. OCLC grants permission to photocopy this publication as needed. Contents 1. Introduction to OCLC Macro Language for Connexion client ....................................................................... 8 Why use macros? ........................................................................................................................................ 8 Client macro editor/debugger and general BASIC OCLC macro language Help ........................................... 8 OCLC-supplied object class and variables ................................................................................................... 9 Why use an object? ...................................................................................................................................... 9 How to use a client object ............................................................................................................................. 9 Syntax for client macro commands............................................................................................................... 9 Return values from client macro commands ............................................................................................... 10 OCLC-supplied macros .............................................................................................................................. 11 2. Use Connexion client macros .................................................................................................................... 15 Client macro tools ...................................................................................................................................... 15 How to create macros ................................................................................................................................ 16 Write macros .............................................................................................................................................. 16 Tips for using the Macro Editor ................................................................................................................... 17 View or edit macros .................................................................................................................................... 18 Check macro syntax ................................................................................................................................... 18 Macro example .......................................................................................................................................... 19 Include macros in another macro ............................................................................................................... 19 Run macros................................................................................................................................................ 20 Stop macros ............................................................................................................................................... 20 Delete macros ............................................................................................................................................ 21 Organize macros and macro books ............................................................................................................ 21 Caution: OCLC-supplied macro books may be overwritten at upgrade ....................................................... 22 Actions not available for macros ................................................................................................................. 22 3. Record macros (create automatically) ........................................................................................................ 24 Record a macro.......................................................................................................................................... 24 Tips for using the macro recorder ............................................................................................................... 25 4. List of Connexion client macro commands ................................................................................................. 26 List of client macro commands by function ................................................................................................. 26 Alphabetical list of macro commands ......................................................................................................... 32 5. Connexion client macro commands: Log on and off .................................................................................. 34 Log on ........................................................................................................................................................ 34 Log off ........................................................................................................................................................ 34 IsOnline ...................................................................................................................................................... 35 6. Connexion client macro commands: Search .............................................................................................. 36 Search ....................................................................................................................................................... 36 Search guidelines, indexes, examples ....................................................................................................... 37 Browse ....................................................................................................................................................... 45 Browse Authority Expanded ....................................................................................................................... 46 7. Connexion client macro commands: Edit records ...................................................................................... 48 AddField ..................................................................................................................................................... 48 AddFieldLine .............................................................................................................................................. 49 ControlHeadingsAll .................................................................................................................................... 50 UncontrolHeading ...................................................................................................................................... 51 UncontrolAll................................................................................................................................................ 52 IsHeadingControlled ................................................................................................................................... 52 Copy .......................................................................................................................................................... 53 Cut ............................................................................................................................................................. 54 Paste.......................................................................................................................................................... 54 CopySelected ............................................................................................................................................