MARCEDIT-L Archives

June 2016

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:
"Meehan, Thomas" <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Wed, 1 Jun 2016 10:07:22 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
I think this is possible using a negative lookahead (looks ahead for a string and doesn't match if it's there). I think the following should work, assuming that all your 300s have either "p." or "v." in the $a:

Find:
=300....\$a(?!1 online)(.*)(p|v)(\.?)(.*)
Replace:
300  \\$a1 online resource ($1$2$3)$4

The (?!whatever) is the lookahead part.

Cheers,

Tom

---

Thomas Meehan
Head of Cataloguing and Metadata
University College London


-----Original Message-----
From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of Miriam Nauenburg
Sent: 31 May 2016 17:08
To: [log in to unmask]
Subject: [MARCEDIT-L] Add "1 online resource" to 300$a, but not if the phrase is already present

I am trying to add "1 online resource" to the 300 $a of the records in an ebook marc file. The problem is that some records in the file already have "1 online resource" in the 300$a, so the regex I've been using adds the phrase again. For example:

300 $a 1 online resource (34 p.) $b ill.
300 $a 1 online resource (1 online resource (74 p.)) $b ill.

Is there a way to use the "Perform find/replace if..." function to exclude the records that already have "1 online resource" in the 300$a?

Thanks for any help with this,


Miriam C. Nauenburg
Serials and Electronic Resources Cataloger Ingram Library University of West Georgia Carrollton, GA 30118
Phone: (678) 839-5327
FAX: (678) 839-6511

________________________________________________________________________

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]

________________________________________________________________________

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