Thank you, Doug! I ran these expressions and they appeared to work.
Margaret Wilson
Electronic Resources Cataloger
University of Kansas Libraries
-----Original Message-----
From: MarcEdit support in technical and instructional matters on behalf of Doug Rippey
Sent: Fri 7/2/2010 3:32 PM
To: [log in to unmask]
Subject: Re: [MARCEDIT-L] deleting commas at end of $a in 1XX, 6XX and 7XX fields
With the caution that some records in your file could have lost titles or life dates that may be needed to distinguish the names, here are the two replacements I would use for deleting unwanted punctuation:
Find: (=[167]00 ..\$.+),$
Replace with: $1
[x] Use Regular Expressions
Translated into relatively plain English:
Find: every MARC field tag that is either a 100, 600 or 700, and is
followed by two blank spaces,
followed by two indicators of any value
followed by a literal dollar sign subfield delimiter
followed by any subfield tag(s) and content
followed by a comma at the very end of the field
Replace with: all the original data EXCEPT the final comma.
Find: (=600 ..\$a.+),(\$[^c^d].+)$
Replace with: $1$2
[x] Use Regular Expressions
This translates to:
Find: every MARC 600 field tag that is
followed by two blank spaces,
followed by two indicators of any value
followed by a literal dollar sign subfield delimiter
followed by a subfield "a" tag and content
followed by a comma at the very end of this subfield
followed by one or more additional subfields that are NOT 600 $c or 600 $d name additions
Replace with: all the original data EXCEPT the comma at the end of the 600 $a.
DougR
------------------------------------
Doug Rippey
Cataloging Technician IV
Penrose Library Serials Dept.
303.668.7669 (mobile)
library.du.edu
University of Denver
-----Original Message-----
From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of Wilson, Margaret
Sent: Friday, July 02, 2010 1:52 PM
To: [log in to unmask]
Subject: [MARCEDIT-L] deleting commas at end of $a in 1XX, 6XX and 7XX fields
Hello,
Can anyone tell me the easiest way to go about deleting commas that occur at the end the $a of various fields? In the 1XX and 7XX, the comma is at the end of the field, that is, there is no $d. In the 6XX fields, the comma comes before subject subdivisions.
For example
=100 1\$aDorn, Robert C.,
=600 10$aDorn, Robert C.,$vTrials, litigation, etc.
I am working with a file of 9,400 records, and I would estimate that there are several hundreds of such occurrences.
Thanks!
Margaret
________________________________________________________________________
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]
|