Re: Using MARC::Record to delete fields

2007-07-16 Thread Ed Summers
I can see where Bryan was going with this--but unfortunately delete_field() does not operate on a list of fields!! I just checked in delete_fields() and a test for it...but that's not going to help Michael right now. Here's how I'd delete all but the first 035: # get a list of all 035 fields i

MARC::File::XML

2007-07-16 Thread Shieh, Jackie
I was wondering why MARC::File::XML did not work with #2 file?! 1: a single record: http://www.loc.gov/standards/marcxml/Sandburg/sandburg.xml 2: a collection set: http://www.loc.gov/standards/marcxml/xml/collection.xml The differences I noticed of the two are the prefix (marc:collection

RE: Using MARC::Record to delete fields

2007-07-16 Thread Bryan Baldus
On Monday, July 16, 2007 8:41 AM, Michael Bowden wrote: >Our MARC records have several 035 fields. I want to delete all of the 035s >except for the 1st one. I've modified your code below, removing the foreach field loop. The modified code remains unfinished, as I'll leave it to you to determine

Using MARC::Record to delete fields

2007-07-16 Thread Michael Bowden
Hi: I have used MARC::Record for several years now. I finally have hit a snag in processing MARC records. Our MARC records have several 035 fields. I want to delete all of the 035s except for the 1st one. I have tried several things to accomplish this task without any luck. I have tried t