how to use unapi for bibtex files

23 views
Skip to first unread message

Michael Jermyn

unread,
Jun 25, 2009, 9:53:36 AM6/25/09
to gcs-pcs-list
I have a website with bibtex files (that get converted to html via
php). I would like to use unAPI so that a program like zotero can get
the info from my site. Is there an easy way to do this that doesn't
involve reprogramming my php parser? Like a way to get the unAPI info
straight from the bibtex files?

Richard Karnesky

unread,
Jun 25, 2009, 11:06:55 AM6/25/09
to gcs-pcs-list
You and I have talked in the Zotero forums on this issue.

> Is there an easy way to do this that doesn't
> involve reprogramming my php parser? Like a way to get the unAPI info
> straight from the bibtex files?

Some programming will be needed, as you will have to:
* attach identifiers to your records (depending on your input, you
might get by with the BibTeX keys)
* use an auto-discovery link to your unAPI service
* make an unAPI service that actually handles the request.
Your unAPI service could return BibTeX & this can be th same BibTeX
that you use as the basis for your site. The only real parsing that
you'd need to do would be to extract a single BibTeX record based on
the identifier.

If you programmed the PHP parser, you most likely have the skills
needed to implement this. You could also borrow liberally from
another free/open-source unAPI implementation. Here are two PHP ones:
http://wiki.refbase.net/index.php/UnAPI_service
http://lackoftalent.org/michael/blog/unapi-wordpress-plug-in/
(I am a developer of refbase & Peter and Michael (who are responsible
for the WordPress plugin) are here).

--Rick
Reply all
Reply to author
Forward
0 new messages