MARCEDIT-L Archives

October 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:
Diane Kinney <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Tue, 12 Oct 2021 16:14:54 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (71 lines)
Hi, Terry!  I was wondering if you have any more information on this.  If you can point me towards somewhere that explains it and I might be able to figure some of it out on my own, that'd be appreciated too.

It did just occur to me, is the fact that some of my "or" conditions are phrases, rather than single words, related at all to the issue?  If that would fix it, this might be more straightforward than it seems.

Thanks in advance!



Diane Kinney [she/her/hers]
Metadata Technician
Metadata & Processing Services

Drexel University Libraries 
Drexel University
3300 Market Street
W.W. Hagerty Library, Rm 112D
Philadelphia, PA 19104
Tel: 215.895.6845 |  Fax: 215.895.2070
library.drexel.edu






On Wed, 29 Sep 2021 12:45:21 -0400, Terry Reese <[log in to unmask]> wrote:

>I see -- you can do it this way -- the | are not true or statements in the REGEX.  In the IF statement, you can actually use the keyword (OR) to create multiple lookups that are atomic in nature.  Let me write up an example for you.
>
>--tr
>
>-----Original Message-----
>From: MarcEdit support in technical and instructional matters <[log in to unmask]> On Behalf Of Diane Kinney
>Sent: Wednesday, September 29, 2021 11:54 AM
>To: [log in to unmask]
>Subject: Re: [MARCEDIT-L] Conditional find/replace stumper
>
>Thank you, Terry!  Unfortunately, while that worked for that one record, changing all the find/replace statements hasn't fixed the overall problem.
>
>In this record, I'm including the 650 instead of the 245, because "Chemistry" in the 650 is what's causing the problem this time.  The 650 is causing this problem in some other records too.
>
>=650  \0$aChemistry--Computer simulation.
>=710  2\$aDrexel University.$bSchool.$tThesis.$f2019,$edegree granting institution.
>=999  00$aChemical Engineering
>
>My f/r statements are:
>
>Find: (=710.*)(\$b)(School)(.*)
>
>If: (=999.*Biological Sciences|Chemistry|Communication|Environmental Science|Mathematics|Physics|Psychology*)
>Replace: $1$2College of Arts and Sciences$4
>
>If: (=999.*Architectural|Chemical|Civil|Computer Engineering|Electrical|Environmental Engineering|Materials|Mechanical|Peace*)
>Replace: $1$2College of Engineering$4
>
>If I put the "College of Arts and Sciences" replace statement before "College of Engineering," it uses that statement.  If I put "College of Engineering" first, that's the one it uses.  But it seems like the order of the commands shouldn't make a difference, unless something in the find/replace statements is faulty.
>
>I also noticed in one record there wasn't a 999 field, but it still got the correct find/replace in the 710 field.  So it's getting the info from somewhere else, I just can't figure out why.
>
>________________________________________________________________________
>
>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]

________________________________________________________________________

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