I haven't much technical knowledge on this point, but someone gave me a
nice little piece of code which always sets my records straight. So I'll
pass it along
#!/usr/bin/perl -w
$/ = "\x1d\x0a";
while ( my $rec = <> ) {
chomp $rec;
print "$rec\x1d";
}
If it works for you, great! And thanks to the original source, who I
would acknowledge, if I knew who it was.
JJ
-----Original Message-----
From: Reese, Terry [mailto:[email protected]]
Sent: Thursday, January 12, 2012 12:03 PM
To: [email protected]
Subject: MARC::Record / MARC::File::XML bug when fields contain
newlines?
I wanted to follow up on this message (saw it through the digest). New
lines actually are invalid characters in a USMARC record. There are a
number of characters that are not allowed, and these happen to be two of
them. Essentially, MARC fields cannot be multi-line. This is why
MarcEdit's MARCengine automatically will sanitize this data away during
the breaking process and why records in the mnemonic format cannot be
multi-lined.
--TR
-----Original Message-----
From: [email protected]
[mailto:[email protected]]
Sent: Thursday, January 12, 2012 8:31 AM
To: [email protected]
Subject: perl4lib Digest 12 Jan 2012 16:31:25 -0000 Issue 479
perl4lib Digest 12 Jan 2012 16:31:25 -0000 Issue 479
Topics (messages 2952 through 2953):
MARC::Record / MARC::File::XML bug when fields contain newlines?
2952 by: arvinporthog.lycos.com
2953 by: Jon Gorman
Administrivia:
To subscribe to the digest, e-mail:
<[email protected]>
To unsubscribe from the digest, e-mail:
<[email protected]>
To post to the list, e-mail:
<[email protected]>
----------------------------------------------------------------------
Connect with Queens Library:
* QueensLibrary.org
http://www.queenslibrary.org/
* Facebook
http://www.facebook.com/queenslibrarynyc
* Twitter
http://www.twitter.com/queenslibrary
* LinkedIn
http://www.linkedin.com/company/queens-library
* Google+
https://plus.google.com/u/0/116278397527253207785
* Foursquare
https://foursquare.com/queenslibrary
* YouTube
http://www.youtube.com/queenslibrary
* Flickr
http://www.flickr.com/photos/qbpllid/
* Goodreads
http://www.goodreads.com/group/show/58240.Queens_Library
* Tumblr
http://queenslibrary.tumblr.com/
The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.