I've developed a yaz php client, more to entertain myself than to put into production. It supports search and browse, uses XSL to format results pages, has expandable/contractible record entries, and demonstrates simple mashups to external sources.
Requires PHP5 and IndexData's PHP/YAZ extension, plus a bit of knowledge of configuring z39.50 clients. Tested on Fedora Core 5 only.
This application is released to the public domain -- go nuts. The only outstanding issue (i.e., where I gave up) is support for diacritics. Expect to see some mangled characters outside of English.
I'd be interested in hearing from anyone who finds it useful.
Some screen caps:



| Attachment | Size |
|---|---|
| opac.zip | 10.18 KB |
Comments
Quick Question
Hi, I am trying to use your sample opac files you have on a debian etch 4.0 server.
I have installed the php/yaz components and the xslt support files but i am still getting the following error message.
Fatal error: Class 'XSLTProcessor' not found in /var/www/opac/opac.php on line 477
Could you please tell me what i am missing and any other configs i need to put in the server?
Regards,
Peter
Error: Connect failed
I tried the code on FC6. But got the following error message:
Error: Connect failed
My system is behind a proxy server.
Sanjai
--
Quick Answer
Some problem here with Ubuntu.
Install the php5-xsl package to solve the problem. :)
Well done
If you don't mind. I am gonna use part of this for a Opac Widget. Your code helped me a lot to understand how to receive opac records - after yaz_syntax("opac") didn't work. Many thanks!
Go for it
Hi John,
It's good to hear that someone is finding this app helpful, since I wrote it to teach myself how to use YAZ. No worries about using some of it in your app, I actually provide this code to the public domain (i.e., no licensing to worry about). That said, if you can get some of the outstanding character encoding issues worked out (which may have had more to do with the targets I was querying against than the app itself), it would be great to incorporate them back into this app so it's more or less "complete".
I'd be interested in seeing what you do with it, keep in touch,
Mark
jOPAC release
Hi again,
I just wanted to stay in touch and announce, that I released my OPAC widget today. More information can be found here. The data model is based on this library - although you won't recognize it anymore. However, it saved me a great deal of time - thanks again.
On a side note: I plan on modularising this widget, so other libraries can also use it. In fact, III - based OPAC's are already fully compatible. Just drop me an email if you are interested.
take care,
John
Very nice
Hi John-Paul,
jOPAC is very slick. Thanks for keeping in touch, I'm really glad you could use some of ideas ifrom the PHP OPAC to produce such as cool interface.
Mark
Post new comment