MARCEDIT-L Archives

December 2011

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:
"Reese, Terry" <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Sun, 4 Dec 2011 05:21:01 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (80 lines)
Since you could create this as a task, have you considered just using the Add/Delete fields and delete the fields in groups.  You could use regular expressions with your delete criteria, so you could match a whole group block, like 7** but setup the deletion so that it only deletes when the field isn't a 700, 710, 711, 730 or 740.  

It means you have to create separate delete arguments for each group -- but it will be cleaner.

--TR
________________________________________
From: MarcEdit support in technical and instructional matters [[log in to unmask]] On Behalf Of Staub, James (Library) [[log in to unmask]]
Sent: Saturday, December 03, 2011 3:20 PM
To: [log in to unmask]
Subject: [MARCEDIT-L] How do I eliminate concatenated empty lines?

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|240|245|246|247|400|410|411|440|505|700|700|710|710|711|711|730|740|800|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<file:///\\$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]<mailto:[log in to unmask]>

[cid:image001.jpg@01CCB1DE.45F9DA00]

________________________________________________________________________

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