PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » File_MARC

Parse, modify, and create MARC records

Download latest release 1.4.1 (there might be newer Composer installable version)

License: GNU Lesser General Public License

Description

The standard for machine-readable cataloging (MARC) records is documented at http://loc.gov/marc/. This package enables you to read existing MARC records from a file, string, or (using the YAZ extension), from a Z39.50 source. You can also use this package to create new MARC records.

This package is based on the PHP MARC package, originally called "php-marc", that is part of the Emilda Project (http://www.emilda.org). Christoffer Landtman generously agreed to make the "php-marc" code available under the GNU LGPL so it could be used as the basis of this PEAR package.

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#11252BogusDoc2007-06-08User note that is a documentation problem
#14923ClosedReqCVS2008-10-30Improve PHPCS results
#15898BogusBug2009-02-13MARC_Record toRaw()
#16169BogusBug0.3.02009-05-02memory leak in File/MARC/List.php
#16642ClosedBug0.4.12009-09-24Warnings when processing a marcxml record
#16783ClosedReq0.4.22009-11-12Better validation when creating a field
#17264ClosedBug0.4.42010-03-24$marc_record->getField('xxx') must get value on first record
#17704ClosedBugSVN2010-08-15Unit tests fail (dir layout?)
#18251ClosedReq0.6.12011-02-08A fix for checking the record length
#19003ClosedBugSVN2011-11-14adjust error_reporting (for PEAR QA team)
#19845ClosedBug0.7.12013-03-07Record::toXml returns nothing
#19846Wont fixBug0.7.12013-03-07File_MARC::_decode throws exception
#21167ClosedBug1.1.32017-01-21insertField method does not work properly
#21219OpenBug1.1.52017-06-15toXML method modifies the MARC leader
#21235OpenBug1.1.52017-08-18toXML arguments dont make sense
#21246AnalyzedBug1.1.52017-10-08File_MARC_Data_Field::deleteSubfield does not work as expected