MARC::Record is a Perl extension for handling MARC records.
CONSTRUCTORS
new()
Base constructor for the class. It just returns a completely empty record. To get real data, you'll need to populate it with fields, or use one of the MARC::File::* modules to read from a file.
new_from_usmarc( $marcblob [, &filter_func($tagno,$tagdata)] )
This is a wrapper around MARC::File::USMARC::decode() for compatibility with older versions of MARC::Record.
The wanted_func() is optional. See MARC::File::USMARC::decode for details.
COMMON FIELD RETRIEVAL METHODS
Following are a number of convenience methods for commonly-retrieved data fields. Please note that they each return strings, not MARC::Field objects. They return empty strings if the appropriate field or subfield is not found. This is as opposed to the field()/subfield() methods which return undef if something's not found. My assumption is that these methods are used for quick & dirty reports and you don't want to mess around with noting if something is undef.
Also note that no punctuation cleanup is done. If the 245a is "Programming Perl / ", then that's what you'll get back, rather than "Programming Perl".
title()
Returns the title from the 245 tag.
title_proper()
Returns the title proper from the 245 tag, subfields a, n and p.
author()
Returns the author from the 100, 110 or 111 tag.
edition()
Returns the edition from the 250 tag, subfield a.
publication_date()
Returns the publication date from the 260 tag, subfield c.
Product's homepage
Requirements:
· Perl