Just for reference, there is a marcedit list (https://listserv.gmu.edu/cgi-bin/wa?A0=marcedit-l) hosted by George Mason that has a searchable archive.
However, to answer your question -- Can I assume that you are looking to add this to fields that have a 650 second indicator 7 since I'll assume [Our local subject heading] will change? Do you have records with a 650 second indicator 7 that would already have a $2 in them?
I'm going to make the following assumptions:
1. That we need to assess any 650 with a second indicator of 7
2. That we only want to process data on fields that don't already have a $2 in it
There are a couple different ways to do this -- I prefer to just use the replace function and a regular expression. It would look like this:
Example data:
=650 \7$aLocal Subfield$xData
=650 \7$aLocal Subfield
=650 \7$aNot local$2data
=650 \1$aShouldn't be changed.
After Replacement:
=650 \7$aLocal Subfield$xData$2local
=650 \7$aLocal Subfield$2local
=650 \7$aNot local$2data
=650 \1$aShouldn't be changed.
Process:
--tr
-----Original Message-----
From: Code for Libraries <[log in to unmask]> On Behalf Of Thomas San Filippo
Sent: Wednesday, January 27, 2021 2:19 PM
To: [log in to unmask]
Subject: [CODE4LIB] Add subfield in MARCEdit
Hi folks,
We have a question for someone with MARCEdit expertise.
If the following field is present:
*=650 \7 $aOur local subject heading*
we want to add to the end of the line:
*$2local*
The problem is, sometimes our local subject heading also has other subfields like $x or $z, and we want to add subfield $2 at the end of the line, so we can't just use find and replace (or can we with a regex maybe?). We think we're supposed to be using the edit subfield tool, but we don't want to add our subfield to every 650, just the ones containing our local subject heading.
Can someone point us in the right direction?
Thanks,
*Thomas San Filippo* (he/him/his)
*Systems and Educational Technology Liaison*
Madeleine Clark Wallace Library
< <https://wheatoncollege.edu/academics/library/> https://wheatoncollege.edu/academics/library/>, G34 Wheaton College < <https://wheatoncollege.edu> https://wheatoncollege.edu>
26 E. Main Street, Norton, MA 02766 < <https://goo.gl/maps/d5JvoKZUEXy> https://goo.gl/maps/d5JvoKZUEXy>
(508) 286-5601 <+15082865601>
Twitter: @WallaceLibrary < <https://twitter.com/WallaceLibrary> https://twitter.com/WallaceLibrary> | Instagram:
/wallacelibrary < <https://www.instagram.com/wallacelibrary/> https://www.instagram.com/wallacelibrary/>
|