News Feed
Jobs Feed
Sections




News Archive
Dan Scott's Blog:
Creating a MARC record from scratch in PHP using File_MARC
March 04, 2011 @ 08:40:08

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.

0 comments voice your opinion now!
marc record create filemarc pear package tutorial


blog comments powered by Disqus

Similar Posts

Lorna Mitchell's Blog: Building A RESTful PHP Server: Output Handlers

Kevin van Zonneveld's Blog: Convert anything to Tree Structures in PHP

DZone.com: Sencha Touch 2 Models - Loading And Saving Model Data Using a Proxy, PHP Example

Community News: Sara Golemon & Christopher Jones - First Day Summaries of php|works

Community News: PEAR Version 1.5.0 Released


Community Events











Don't see your event here?
Let us know!


podcast testing database development language interview phpunit framework opinion series api code community application release composer example zendframework2 functional introduction

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework