Adding non standard MARC subfields with MARC::Record

2004-04-02 Thread Michael Bowden
 
Sirsi uses some non standard subfields to create links between records.
 Typically these subfields are '?' and '='.  How can I add these non
standard subfields to records that I am creating/editing with
MARC::Record?
 
Michael
 
Michael L. Bowden
Coordinator of Automation and Access Services
Assistant Professor, Information Science
Harrisburg Area Community College
One HACC Drive
Harrisburg, PA 17110-2999
 
E: [EMAIL PROTECTED]
T: 717.780.1936
F: 717.780.2462


Re: Adding non standard MARC subfields with MARC::Record

2004-04-02 Thread Ed Summers
On Fri, Apr 02, 2004 at 11:35:40AM -0500, Michael Bowden wrote:
> Sirsi uses some non standard subfields to create links between records.
> Typically these subfields are '?' and '='.  How can I add these non
> standard subfields to records that I am creating/editing with
> MARC::Record?

MARC::Record is actually quite lenient about what you can use as a subfield. 

$record->append_fields( 
MARC::Field->new( 245, 0, 0, '?' => 'foo', '=' => 'bar' )
);

Just make sure you quote '?' and '=' or else weirdness will ensue. :)

//Ed


Re: Adding non standard MARC subfields with MARC::Record

2004-04-05 Thread Ashley Sanders
> > Sirsi uses some non standard subfields to create links between records.
> > Typically these subfields are '?' and '='.  How can I add these non
> > standard subfields to records that I am creating/editing with
> > MARC::Record?
> 
> MARC::Record is actually quite lenient about what you can use as a subfield. 
> 
> $record->append_fields( 
> MARC::Field->new( 245, 0, 0, '?' => 'foo', '=' => 'bar' )
> );
> 
> Just make sure you quote '?' and '=' or else weirdness will ensue. :)

Just to point out that '?' and '=' are (amongst many other non alpha-
numeric characters) explicitly allowed by MARC21 for use in local
data elements. So they are standard conforming really.

Ashley.

-- 
Ashley Sanders[EMAIL PROTECTED]
COPAC: A public bibliographic database from MIMAS, funded by JISC
 http://copac.ac.uk/ - [EMAIL PROTECTED]