Supressing Errors in MARC::Record

2006-06-07 Thread Aaron Huber
I have a script that fetches MARC records from my library's holdings via Z39.50. Every once in a while a record doesn't have a MARC Record attached to it and I get the following error: Can't call method "rawdata" on an undefined value at zrss.pl line 47, line 1. Here's what I have on and aro

Code For Web Based MARC Creation

2006-02-28 Thread Aaron Huber
Hi All, I would like to make a CGI form that will create MARC records using MARC::Record. Does anyone know of a project already doing somehting like this or know of somewhere where I can see code? Thanks, Aaron

Problem cleaning up MARC for MySQL

2006-01-01 Thread Aaron Huber
Hi All, I am trying to clean up a raw MARC record for insertion in a MySQL database. Here is my code: $rec = $rec->rawdata(); $rec = $dbh->quote($rec); I get the following error back: DBD::mysql::st execute failed: You have an error in your SQL syntax. Check the manual that corresponds to you

MARC.pm unblessed reference

2005-11-21 Thread Aaron Huber
Hi All, I am a complete newbie to this and have been testing out MARC.pm. I'm trying to return just the ISBN values from a group of MARC records. It works fine when I specify the record number, but when I put it through the loop it returns the above error. Can't call method "getvalue" on unbles