Subject: | |
From: | |
Reply To: | |
Date: | Thu, 17 Jul 2014 19:24:55 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
There is an even simpler solution to this puzzle than the one I gave earlier. Use the Edit Field Data tool and limit the regex to the specific field:
Field: 952
Find: (\$[gv]) +
Replace: $1
Use Regular Expressions
This finds a subfield $g or $v followed by one or more spaces, and replaces it with the subfield found. The Tool replaces all occurrences in each field at once, so there's no need to repeat the regex to get every occurrence.
*****************************************
Walter F. Nickeson, Catalog &
Metadata Management Librarian
Rush Rhees Library
University of Rochester
Rochester, NY 14627-0055
[log in to unmask]
(585) 273-2326 fax: (585) 273-1032
*****************************************
> -----Original Message-----
> From: MarcEdit support in technical and instructional matters
> [mailto:[log in to unmask]] On Behalf Of Nora Blake
> Sent: Wednesday, July 16, 2014 4:07 PM
> To: [log in to unmask]
> Subject: [MARCEDIT-L] Removing Leading Spaces from Subfield
>
> Greetings all,
>
> I have a situation where I have price information to include in the holdings
> field of a group of MARC records. Some of these prices have a leading space
> in them that I would like to eliminate. The prices are contained in $g and $v
> of the holdings field like this:
>
> =952 \\$h840.9 CON$p10052$g 15.00$v
> 15.00$aCWESTBOYL$bCWESTBOYL$yBOOK
>
> I tried fiddling with regular expressions but am unable to build one that will
> work.
>
> Can anyone give me advice on how to strip out the leading space that
> appears in some of these subfields?
>
> 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]
|
|
|