MARCEDIT-L Archives

March 2021

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:
Eugene Espinoza <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Sat, 13 Mar 2021 10:01:56 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
Hi all! I have the following:

=LDR  00000nam a2200000Ia 45e0
=008  210313s9999\\\\xx\\\\\\\\\\\\000\0\und\d
=245  \0$aEncyclopaedia Britannica.
=250  \\$a-
=264  \\$bEncyclopaedia Britannica, Inc.$c1963.
=952  \\$p0137$h1$z1032
=952  \\$p0138$h2$z1077
=952  \\$p0139$h3$z1044

=LDR  00000nam a2200000Ia 45e0
=008  210313s9999\\\\xx\\\\\\\\\\\\000\0\und\d
=020  \\-
=100  \\$aSolmerano, Ernesto Thaddeus M.
=245  \0$aAdventures in Contemporary Philippine Arts$cSolmerano, Ernesto Thaddeus M.
=250  \\$a1st
=264  \\$bFastbooks Educational Supply, Inc.$c2020.
=952  \\$p2936$ePurchased$g493$h-$z266

I want to add in the 952s via any method (maybe find replace?) subfields if there are more than one occurrence of the 952 field in the record, so the following:
=952  \\$p0137$h1$z1032
=952  \\$p0138$h2$z1077
=952  \\$p0139$h3$z1044

will become:
=952  \\$aOSJMS$bOSJMS$cREF$p0137$h1$z1032
=952  \\$aOSJMS$bOSJMS$cREF$p0138$h2$z1077
=952  \\$aOSJMS$bOSJMS$cREF$p0139$h3$z1044

I'm trying find - replace parameters below:
Find: =952  \\$
Replace: =952  \\$aOSJMS$bOSJMS$cREF
Perform Find/Replace if..: checked
If: =952.*?\n=952.*?\n=952.*?\n
REGEX
Search Options:
- Use regular expressions
 - Multiline Evaluation (checked)

Thanks in advance!

________________________________________________________________________

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