MARCXML COM Stream Example

Dim objMM Dim xmarc dim path path = “C:\Users\Terry\OneDrive\MarcEdit Downloads\xmltest\” path2 = “C:\Users\Terry\Desktop\” Set objMM=CreateObject(“MARCEngine5.MARC21”) dim fso dim f1 Set fso = CreateObject(“Scripting.filesystemobject”) Set f1 = fso.opentextfile(path + “enc_1.txt”, 1) xmarc = f1.ReadAll f1.close Dim output output = objMM.ReadMARC21XMLStream(xmarc,”C:\Program Files\MarcEdit 6\xslt\MARC21slim2Mnemonic.xsl”,0,2) tmp = output do if len(tmp) > 500 then msgbox(mid(tmp,1,500)) tmp = mid(tmp, 500) …

Continue reading ‘MARCXML COM Stream Example’ »

Export_Tabbed_Streaming COM Example

Dim obj_MB Set obj_MB=CreateObject(“MARCEngine5.MARC21”) dim rec dim streamreader set streamreader = obj_MB.OpenReadStream(“C:\Users\Terry\Desktop\z3950.mrc”, 1252) rec = obj_MB.ReadAll(streamreader) obj_MB.CloseReadStream(streamreader) lret=obj_MB.Export_Tabbed_MARC_Stream_2(rec, “020$a,245$a,245$b,100$a,100$b,260$a,260$b,260$c,020$z,960$s,960$u,960$w,001″, 1) msgbox (lret + ” finished”)

Replacement Unicode Fonts

Since MarcEdit 4.x, MarcEdit has targeted the Arial Unicode MS font as the primary rendering font used for the application.  This was done primarily because it was easy to get due to MS Office, readily available, and provided some of the best coverage for multi-byte language.   However, as of Office 2016, Microsoft is no …

Continue reading ‘Replacement Unicode Fonts’ »

Set Subfield Insert Position

Conditional Subfield Insert: Special Subfield characters: []^ Description: When inserting certain subfield data, like the GMD, AACR2 has a number of rules regarding the placement of the subfield data. In the current version of MarcEdit, users could append a new subfield to the end of an existing one — but for data like the GMD, …

Continue reading ‘Set Subfield Insert Position’ »

Batch MARC Record Retrieval using Z39.50

Benjamin Abrahamse from MIT gave this presentation at NETSL in 2010 on using the MarcEdit Z39.50 Client’s batch processing mode to retrieve MARC records.  If you are interesting in this topic, this presentation: https://netsl.files.wordpress.com/2013/01/abrahamsegofishnetsl2010.pdf is a great place to start.

Using the MarcEdit Terminal

Please see: http://marcedit.reeset.net/learning_marcedit/book-v-features-for-developers/chapter-4-working-with-marcedits-command-line-tools/ for the most current information on the command line program options. ************************************************************************************************************************ MarcEdit includes a separate command-line tool that encapsulates a wide range of functionality.  The tool provides a GUIless interface that can be used within shell scripts or other automation tools. The command-line tool is available in all versions of MarcEdit.  On …

Continue reading ‘Using the MarcEdit Terminal’ »