III XMLOPAC for PHP5

PHP5 class to interface with III’s XMLOPAC

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • blogmarks
  • co.mments
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • scuttle
  • Shadows
  • Simpy
  • TailRank
  • YahooMyWeb

I’m kind-of working on a proof-of-concept for some social software features with our catalog, but I needed a quick and easy way to grab rudimentary bibliographical record data from the catalog.

The upshot is that I threw together a PHP5 class that’ll take a bib number and return a simple array of data from the bib record. It seems pretty portable so I decided to make it available. Even though it’s pretty basic now, I can easily see the scope of this class growing.

Anyway, here’s how you might use it:

<?php
require_once('xmlopac.php');
$opac_server = "my.opac.org";
$bibnum = "123456";
 
$xmlopac = new xmlopac;
$xmlopac->opacserver = $opacserver;
$result = $xmlopac->get_opac_data($bibnum);
 
print_r($result);
?>

Hopefully, if all works well, you’ll get something like:

Array
(   
    [author] => Burns, John, 1968-
    [fulltitle] => The urban picnic / by John Burns
    [title] => The urban picnic
    [pubinfo] => Vancouver : Arsenal Pulp Press, 2004
    [desc] => 351 p. : ill. ; 23 cm.
    [isbn] => 1551521555
    [price] => $21.95
)
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • blogmarks
  • co.mments
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • scuttle
  • Shadows
  • Simpy
  • TailRank
  • YahooMyWeb

5 Comments so far
Leave a comment

[...] PHP5 class to interface with III’s XMLOPAC [...]

Nothing short of awesome. Thanks for this, it will most likely save many people time in creating simple apps and mock-ups. I thought about doing something similar but never got the time and I doubt it would be as usable.

We just migrated our regional system to III and they never mentioned the XMLOPAC. Is that one of their extra features, or can we just have it turned on?

Hi! Very nice site! Thanks you very much! 1s5GFUOxPt2fJ

health insurance company in…

classifier ruthless back …



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)