Re: Deleting a subfield using MARC::Record

[email protected] (Edward Summers)
Newsgroups perl.perl4lib
Message-ID <[email protected]>
On Apr 28, 2006, at 8:20 PM, Michael Kreyche wrote:
> my $new856f = MARC::Field->new('856',$i1,$i2,@new856s);
> $field->replace_with($new856f);
>
> If there's an easier way, I'd like to know!

Creating a new field and replacing the old one with the new one is  
the way to go. Deleting subfields is a bit tricky since subfields may  
repeat, and sometimes people just want to delete one of them. An  
unfortunate state of affairs perhaps. If someone can suggest an  
easier API for doing this I'm open to suggestions :-)

//Ed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.