PHPDeveloper.orghttp://www.phpdeveloper.org
Up-to-the Minute PHP News, views and communityen-usTue, 31 Mar 2015 15:47:38 -050030http://www.phpdeveloper.org/news/15996http://www.phpdeveloper.org/news/15996
Dan Scott has posted an example of how to create a MARC record (machine-readable cataloging, more details here) from scratch with the help of the File_MARC PEAR package.

In the past couple of days, two people have written me email essentially saying: "Dan, this File_MARC library sounds great - but I can't figure out how to create a record from scratch with it! Can you please help me? Yes, when you're dealing with MARC, you'll quickly get all weepy and get help from anyone you can.

His example code is pretty simple - load the PEAR package into the script, create the record object and start adding fields to it. He shows various output methods ("pretty print", writing the raw data to a file, etc.) and the output to various other data structures like JSON and XML.

]]>Fri, 04 Mar 2011 08:40:08 -0600http://www.phpdeveloper.org/news/6705http://www.phpdeveloper.org/news/6705
Dan Scott has an announcement today about the official release of his File_MARC PEAR package, version 0.1.0 alpha.

What does this mean? Well, assuming you have PHP 5.1+ and PEAR installed, you can now download and install File_MARC and its prerequisite with a simple command. I've also imported the File_MARC source into the PEAR CVS repository, so you can poke and prod and provide patches.

He notes some of the changes he wants to make before things hit version 1.0, including MARCXML support.