Macro-Enhancing Connexion Learn how to improve your cataloging productivity using macros in the Connexion client February 8, 2005.

Slides:



Advertisements
Similar presentations
PART IV - EMBED VIDEO, AUDIO, AND DOCUMENTS. Find a video on Youtube.com: Search for a video, then look for the Embed code. Copy this code into the HTML/JavaScript.
Advertisements

Batches, Buckets and Bookbags Elizabeth B. Thomsen NOBLE: North of Boston Library Exchange EGILS2014.
Creative Create Lists Elizabeth B. Thomsen Member Services Manager North of Boston Library Exchange
Getting Started with MarcEdit
1 Developing Custom GAIN Reports with ReportToExcel David Smith, B.G.S., Michael Vacca, B.Sc. and Dionna Christian Chestnut Health Systems, Bloomington,
XHTML Basics.
Object Oriented Programming A programming concept which views programs as objects with properties and ways to manipulate the object and the properties.
July 2010 D2.1 Upgrading strategy Javier Soto Catalog Release 3. Communities.
Microsoft Office Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Student Manager Catalog Builder An ACEware Webinar.
1 ADVANCED MICROSOFT POWERPOINT Lesson 5 – Using Advanced Text Features Microsoft Office 2003: Advanced.
Basic Copy Cataloging (Books) Prepared by Lynnette Fields, Lori Murphy, Kathy Nystrom, Shelley Stone as an LSTA grant “Funding for this grant was awarded.
Cataloging: Millennium Silver and Beyond Claudia Conrad Product Manager, Cataloging ALA Annual 2004.
Millennium Cataloging in Release 2005 Georgia Fujikawa Manager, Training Programs.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
Text Strings, Keymaps, and Macros, Oh My: Tips and Customizations for Efficient Cataloging in Connexion By Mary Aycock Workshop training, MU Libraries.
Catalog: Batch delete old Patron Records How to conduct global/batch updates to records – patron Adding Faculty and Patron/Student Records Manually Standardizing.
Adding Automated Functionality to Office Applications.
Microsoft ® Office Word 2007 Training Mail Merge II: Use the Ribbon and perform a complex mail merge [Your company name] presents:
Basic Elements of C++ Chapter 2.
M AKING E - RESOURCE ACCESSIBLE FROM ONLINE CATALOG *e-books *serials Yan Wang Senior Librarian Head of Cataloging & Database Maintenance Central Piedmont.
Batch-conversion of Non-standard Multiscript Records by XSLT Lucas Mak Metadata and Catalog Librarian Michigan State University Catalog Management Interest.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 1 1 Integrating Microsoft Office XP Tutorial 1 – Integrating Word and Excel.
Christopher Guertin VAMC – West Palm Beach, FL 1.
Sage Library Consortium Cataloging-in-Publication MARC record conversion.
Text Strings, Keymaps, and Macros, Oh My: Tips and Customizations for Efficient Cataloging in Connexion By Mary Aycock University of Missouri--Columbia.
Global Update with Confidence Mary M. Strouse Innovative Users Group May 19, 2009.
OCLC Online Computer Library Center MFHD Local Holdings Project Status (a.k.a. UL Migration) Myrtle Myers Product Manager, Holdings and Local Data.
HTML (HyperText Markup Language)
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
OCLC Online Computer Library Center Kathy Kie December 2007 OCLC Cataloging & Metadata Services an introduction.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
Writing macros and programs for Voyager cataloging Kathryn Lybarger ELUNA 2013 May 3, #ELUNA2013.
Productivity Programs Common Features and Commands.
Shell Scripting AFNOG IX Rabat, Morocco May 2008.
OCLC Online Computer Library Center Annual Report: New Enterprises & Development News Marty Withrow, Director Product Development Division oclc.org.
Key Applications Module Lesson 21 — Access Essentials
Variables and Functions. Open your Encoder program Let’s begin by opening the “Labyrinth Auto Straight” code. Save this file as Labyrinth with variables.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 1 1 Integrating Microsoft Office XP Tutorial 1 – Integrating Word and Excel.
Web Z: A Non-Programmers Perspective Sandy Card State University of New York at Binghamton March 23, 1999.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
Chapter Three The UNIX Editors.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
A& M Libraries Voyager Training Basic Cataloging February 21, 2007 Janet H. Ahrberg Oklahoma State University Library.
Language of Cataloging. What’s wrong with this picture?
© 2015 Ex Libris | Confidential & Proprietary Yoel Kortick Senior Librarian Cataloging introductory flow.
Accomplish more with macros! Presenter: Joyce Bell Princeton University
Creative Create Lists Elizabeth B. Thomsen Member Services Manager
VBA - Excel VBA is Visual Basic for Applications
MARCEdit TNUIG 2016.
Yoel Kortick Senior Librarian
Metadata Editor Introduction
Cataloging introductory flow
Working the A to Z List enhance journal access in the OPAC
ALEPH Version 22 Beginning Cataloging
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
How to save time and sanity
SharePoint Foundation 2010
File Handling Programming Guides.
Designing and Using Normalization Rules
Review Test 3 CS 101 Spring 2019.
Review Test 3 CS 101 Spring 2019.
Alternate graphic representation 880 field
Assigning a Shortcut Key to an existing Macro
Presentation transcript:

Macro-Enhancing Connexion Learn how to improve your cataloging productivity using macros in the Connexion client February 8, 2005

Who we are  Harvey Hahn  Arlington Heights Memorial Library, Arlington Heights, IL  Joel Hahn  Niles Public Library District, Niles, IL

Special thanks to…  OML “pioneers”  Eric Celeste (MIT)  Jim Ferguson (TPOT-UCSD)  Walt Nickeson (Univ. Rochester)  Tim Shearer (UNC-Chapel Hill)  Will Caine (SOLINET)  Carl Ratz (Phoenix Pub. Lib.)  Kyle Banerjee (Oregon State Lib.)  Jon Higgins (formerly WILS)  Rhoda Bilansky (Boston Univ.)  and many other macro writers over the years

And special thanks to…  OCLC  for providing a full-blown programming language as an integrated part of their software products.  “If I have seen further than other men, it is because I stood on the shoulders of giants.” –Isaac Newton

Similarities between CatME and Connexion macros  OML Standard BASIC commands are identical.  Variables operate exactly the same.  Adding a field as line 99 (or better yet, 999) makes it the last line in the record.  Many OCLC-specific commands are identical (though Connexion has more).

Some commands are identical  CS.CursorRow  CS.CursorColumn  CS.DeleteHoldings  CS.DeleteRecord  CS.Export  CS.FindText  CS.Print  CS.QueryRecordStatus  CS.Reformat  CS.RunMacro  CS.SetMyStatus  CS.UpdateHoldings

Commands that are similar*  CatME  CS.Insert  CS.GetFixedField  CS.SetFixedField  CS.GetFirstRecord  CS.GetNextRecord  CS.Replace  Connexion  CS.InsertMode  CS.GetFixedField  CS.SetFixedField  CS.GetFirstItem  CS.GetNextItem  CS.ReplaceRecord * Similar does not mean identical!

Commands that are different*  CatME  Dim CS As Object Set CS = CreateObject (“CatME.Application”)  CS.ResaveOnlineFile  CS.SaveLocal  CS.Validate  Connexion  Dim CS As Object Set CS = CreateObject (“Connex.Client”)  CS.SaveOnline  CS.SaveToLocalFile (FALSE,FALSE)  nNumErrs = CS.Validate(sErrList) * Different can mean better!

More differing commands  CatME  CS.ItemType  CS.Scan  CS.Search(search string)  CS.SearchLocalFile (search string, file type)  Connexion  CS.ItemType (Uses different values)  CS.Browse  CS.Search(database, search string) }

Some are similar and different  CatME  CS.GetFieldData  CS.SetFieldData  CS.AddField  Connexion  CS.GetFieldLine  CS.GetField  CS.SetFieldLine  CS.SetField  CS.AddFieldLine  CS.AddField { { {

One major programming difference between CatME and Connexion  CatME  Retrieved field data has spaces surrounding the indicators. 245_14_Some title  Connexion  Retrieved field data does not have spaces surrounding the indicators Some title This difference affects how you write macros!

Obsolete CatME commands  CS.GetActiveRecord  CS.GetActiveTruncatedList

Difficult CatME tasks that are simple commands in Connexion  CS.GetField(“650”, 1, SubjectData)  Grab the contents of the first 650 field  CS.EndCell : CS.PrevSubfield  Jump the cursor to the start of the last subfield in the current field  CS.DeleteToEndOfCell  Delete from the cursor to the end of the field

Things to watch out for  Connexion always handles the  character internally.  If you see ö in a record, what's really there and what macros will report is o¨ (not ¨o)  Note that the order of letter and diacritic may differ from what local systems expect (and from what is in exported records). Connexion’s editor and macros follow the Unicode standard.

More things to watch out for  Connexion has no spaces between a MARC tag & indicators and none between indicators & field contents.  However, CS.CursorPosition acts as if there were spaces there and also as if there were a space between the indicators.  OCLC recommends using CS.CursorColumn instead The adventures of Tom Sawyer

Impossible in CatME but simple in Connexion  Recording macros  Can be a good way to learn OML.  Recorded macros may still need to be edited.  They tend to be inefficient and use many more commands than are necessary.  They may not work with all records.  Some tasks cannot be recorded.

Converting CatME macros to Connexion  When to simply translate?  Does the old macro use only commands that are similar in Connexion?  When to record a new version?  Does the macro never depend upon the content or status of the record?  Does the macro only navigate to fields that are always present, then insert new data?  Do you want a template on which to build the macro from scratch?

Converting CatME macros to Connexion  When to start from scratch?  Does the macro react to the content or status of the record?  Is the macro complex?  When not to convert at all?  Is the macro still necessary, or could this task be done instead…  By an existing command?  With constant data?  With text strings?

Connexion macro tips & tricks  Option Explicit  CS.IsOnline  CS.ItemType  When deleting several fields, work backwards

Connexion macro tips & tricks  Iterate through all 6XX fields in a record:  bool = TRUE  nTagNum = 0  Do Until bool = FALSE  nTagNum = nTagNum + 1  bool = CS.GetFieldLine( nTagNum, sField )  If Mid(sField, 2, 3) Like "6##" Then  'Put code that alters the record here.  'Use nTagNum for the field number in CS.* commands  ElseIf Mid(sField, 2, 3)) > 699 Then  Exit Do  End If  Loop

Connexion macro tips & tricks  Iterate through all records in a list:  bool = CS.GetFirstItem  bNextRec = TRUE  Do While bNextRec <> FALSE  'Put code that looks at or alters each item here  bool = CS.SaveOnline  'OR: bool = CS.SaveToLocalFile(FALSE,FALSE)  bNextRec = CS.GetNextItem  If bNextRec = FALSE Then Exit Do  Loop  bool = CS.CloseRecord(TRUE)

Connexion macro tips & tricks  Copy data directly into MS Office programs:  Dim CS As Object  Set CS = CreateObject("Connex.Client")  bool = CS.GetField("092", 1, sCall)  bool = CS.GetField("245", 1, sTitle)  Dim XL as Object  Set XL = CreateObject("Excel.Application")  XL.Sheets("Sheet1").Select  XL.Range("A1").Value = "Call #"  XL.Range("A2").Value = sCall  XL.Range("B1").Value = "Title"  XL.Range("B2").Value = sTitle (Check the VBA help file in your version of Excel for the proper commands to use.)

Further resources  OCLC-CAT mailing list  Archives are now available  OCLC’s Connexion macros web page   OML for the Complete Beginner   Joel’s OML web page   Harvey’s OML web page 

Questions, comments, etc. To contact us after the live presentation: Harvey Hahn Joel Hahn