Re: Deleting a subfield using MARC::Record

2006-04-28 Thread Mark Jordan
Edward Summers wrote: 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. Yeah, I can see what you're saying, but doesn't that also apply to repeatable fields? If a particular subfield

Re: Deleting a subfield using MARC::Record

2006-04-28 Thread Edward Summers
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 b

Re: Deleting a subfield using MARC::Record

2006-04-28 Thread Michael Kreyche
Mark Jordan wrote: Hi everybody, Any advice on how I'd go about using MARC::Record to delete just a specific subfield? The old MARC.pm had deletemarc(), which would "delete entire records, specific fields, as well as specific subfields depending on what parameters are passed to it." Or shou

Deleting a subfield using MARC::Record

2006-04-28 Thread Mark Jordan
Hi everybody, Any advice on how I'd go about using MARC::Record to delete just a specific subfield? The old MARC.pm had deletemarc(), which would "delete entire records, specific fields, as well as specific subfields depending on what parameters are passed to it." Or should I just reconstruc