Subject: | |
From: | |
Reply To: | |
Date: | Sat, 3 Dec 2011 18:24:06 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Helpful MARCEdit folks,
I'm trying to string together a MARCEdit Task that reduces the data contained
in a III bibliographic dump to contain only the fields needed for our Boopsie bib
upload.
FYI, I'm currently using MARCEdit 5.6.4292.29788 on a Windows XP machine.
The first step of the Task is to eliminate all non-relevant MARC tags with the
REPLACE ^=
(?!LDR|001|020|022|028|100|100|110|110|111|111|130|210|211|212|214|24
0|245|246|247|400|410|411|440|505|700|700|710|710|711|711|730|740|80
0|800|810|810|811|811|830|840|907|946|998)[^\n]+?$
[and replacing the matched irrelevant lines with nothing]
This makes the .mrk file have a lot of concatenated empty lines. If I then
compile the displayed file to mrc, MARCEdit appears to break up records with
new LDR tags.
e.g.
=LDR 00771nam 2200229 4500
=001 ocm00127533
=020 \\$a091201203X
=100 10$aRamsey, Richard David.
=245 00$aEdmund Wilson; a bibliography.
=440 \0$aFugitive bibliographies.
=907 \\$a.b10044541$b01-02-09$c03-30-94
=998 \\$amn$arefer$b04-01-94$cm$da$e-$feng$gnyu$h0$i1
becomes
=LDR 00050nam 2200037 4500
=001 ocm00127533
=LDR 00053nam 2200037 45e0
=020 \\$a091201203X
=LDR 00112nam 2200049 45e0
=100 10$aRamsey, Richard David.
=245 00$aEdmund Wilson; a bibliography.
=LDR 00175nam 2200061 45e0
=440 \0$aFugitive bibliographies.
=907 \\$a.b10044541$b01-02-09$c03-30-94
=998 \\$amn$arefer$b04-01-94$cm$da$e-$feng$gnyu$h0$i1
After fiddling with various combinations of \r and \n and /m I can’t figure out
how to delete the empty lines. Halp! (Or, alternatively, feel free to suggest a
totally different way to get the extract Boopsie needs…)
James Staub
Emerging Technologies Librarian
Nashville Public Library
615 Church St
Nashville, TN 37219
615-862-5726
[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]
|
|
|