MARCEDIT-L Archives

July 2014

MARCEDIT-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nora Blake <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Thu, 31 Jul 2014 15:39:52 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
Greetings,

I'm looking for some advice on how I can tackle some files that I have that have mixed length item barcode numbers in them.  There are three types of barcodes:

T 8232
T 19936
30590000090534

What I need to be able to do is prepend 3059 and a sufficient amount of zeroes to the first two types of barcodes to make them look like a 14 character string.  So the result for the first two types would become:

30590000T 8232

3059000T 19936

The barcodes are all contained in field 952, subfield p.

Does anyone have ideas on how I can accomplish this with some process -- maybe a regex or a macro?

Thanks,

Nora
________________________

Nora Blake
MassCat Manager
Massachusetts Library System
P.O. Box 609
South Deerfield, MA 01373-0241
508-357-2121 x123
866-627-7228
Email: [log in to unmask]
AIM: noraatmls 

________________________________________________________________________

This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit.  If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]

ATOM RSS1 RSS2