Skip Menu |

This queue is for tickets about the MARC-Record CPAN distribution.

Report information
The Basics
Id: 3230
Status: resolved
Priority: 0/
Queue: MARC-Record

People
Owner: Nobody in particular
Requestors: smcphillips [...] nla.gov.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From: Steven McPhillips <smcphillips [...] nla.gov.au>
To: "'bug-MARC-Record [...] rt.cpan.org'" <bug-MARC-Record [...] rt.cpan.org>
Subject: not a bug - more a feature request / troubleshoot
Date: Thu, 14 Aug 2003 09:55:34 +1000
Hiya, (duplicate of the feature request I submitted on sourceforge) I'm getting raw marc data from a database, not from a file. I was wondering how difficult it would be to create a MARC::Record from my scalar variable, as opposed to having to print it out to a file, and open the filehandle using MARC::Batch or similar... my sample code: Show quoted text
>>
$dbh = DBI- Show quoted text
>connect('dbi:Oracle:LIBR','train_treaddb','train_treaddb');
$sth = $dbh->prepare("select marc_record from bibblob_vw ". "where bib_id =".$p); $sth->execute(); @row = $sth->fetchrow_array(); $sth->finish; $dbh- Show quoted text
>disconnect;
#this is the marc scalar $line = @row[0]; << So, I'd like to be able to create a MARC::Record from my $line var. I've tested the validity of the data by writing another script that dumps $line to a file, then reads the file in - that part works great! Many thanks, Steve ---- Steven McPhillips Business Systems Support National Library of Australia phone: + 61 2 62621413 fax: + 61 2 62571703
From: Steven McPhillips <smcphillips [...] nla.gov.au>
To: "'bug-MARC-Record [...] rt.cpan.org'" <bug-MARC-Record [...] rt.cpan.org>
Subject: RE: [cpan #3230] AutoReply: not a bug - more a feature request / troubleshoot
Date: Thu, 14 Aug 2003 10:02:29 +1000
RT-Send-Cc:
Hi again, sorry, but I figured it out for myself: use MARC::File::USMARC->decode() instead :) Initial tests show negligible changes in performance - I'm only working on one record at a time. cheers, Steve Show quoted text
-----Original Message----- From: MARC-Record [mailto:bug-MARC-Record@rt.cpan.org] Sent: Thursday, 14 August 2003 9:56 AM To: smcphillips@nla.gov.au Subject: [cpan #3230] AutoReply: not a bug - more a feature request / troubleshoot Greetings, This message has been automatically generated in response to your bug report about MARC-Record, a summary of which appears below. There is no need to reply to this message right now. Your bug in MARC-Record has been assigned an ID of [cpan #3230]. Please include the string: [cpan #3230] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-MARC-Record@rt.cpan.org ------------------------------------------------------------------------- Hiya, (duplicate of the feature request I submitted on sourceforge) I'm getting raw marc data from a database, not from a file. I was wondering how difficult it would be to create a MARC::Record from my scalar variable, as opposed to having to print it out to a file, and open the filehandle using MARC::Batch or similar... my sample code:
>>
$dbh = DBI-
>connect('dbi:Oracle:LIBR','train_treaddb','train_treaddb');
$sth = $dbh->prepare("select marc_record from bibblob_vw ". "where bib_id =".$p); $sth->execute(); @row = $sth->fetchrow_array(); $sth->finish; $dbh-
>disconnect;
#this is the marc scalar $line = @row[0]; << So, I'd like to be able to create a MARC::Record from my $line var. I've tested the validity of the data by writing another script that dumps $line to a file, then reads the file in - that part works great! Many thanks, Steve ---- Steven McPhillips Business Systems Support National Library of Australia phone: + 61 2 62621413 fax: + 61 2 62571703