Re: Seekign help with MARC.pm ->as_string

2008-04-15 Thread Saiful Amin
Hi Migell, As per your script '$phys_format' is a subfield (line 146), which is nothing but text. The function 'as_string()' can be used only for field objects, not subfields. So, your line 153 should read: if($phys_format =~ /Paperback/i ){ # Ignore the case sensitivity using 'i' switch

Re: Seekign help with MARC.pm ->as_string

2008-04-14 Thread Bryan Baldus
(By MARC.pm, I believe you mean the MARC::Record distribution of modules). At 6:09 PM -0700 4/14/08, Migell Acosta wrote: So, I need to do pattern matching, I think from the docs I'm supposed to do it like this: if($phys_format->as_string() =~ /Paperback/ ). I think I need the "as_string" in or

Seekign help with MARC.pm ->as_string

2008-04-14 Thread Migell Acosta
Hello all, I am working on a script that will take a MARC record from Baker and Taylor's Title Source and pre-process it so that I can use it in SirsiDynix Symphony 9XX loader - which takes MARC records and converts them into bib records (of course) and Purchase Order records. Mostly my script ta