WebVoyage 7 (Tomcat) OCLC Citation in ActionBox
(AJAX-like implementation of citations from WorldCat webservice)
Tags: voyager, webvoyage, worldcat, actionbox, citation, oclc webservice, oclc
Last Updated: 28th October 2009
- Description
Embed the WorldCat "Cite This item." citation in your Action Box. Works using OCLC number for both monographs and serials.
- Author: Tom Pasley
- Institution: UCOL - Universal College of Learning
- Year: 2009
- License: BSD style
- Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
- Link to terms: [Detailed license terms]
- Skill required for using this code: Intermediate
State
Stable
Programming language
PHP - though you're welcome to port this to Perl!
Software requirements
Server with PHP
Screen captures
![]()
Download
See attachments at the top-right menu.
Release notes
Initial release.
Installation instructions
You need to register for the WorldCat webservice before you can use this code!
Save and edit the attached apacitation.php, especially line 48 which is where you need to insert the webservice key from OCLC. Feel free to rename this file, but edit worldcatinfo.js on line 92 regardless!
Save the attached worldcatinfo.js and edit it, especially lines 76, 79 and 92 (I use Notepad++ which displays the line numbers down the side, and is OpenSource).
You specify the server address in the javascript, so you can place the PHP script on any server that has php and curl enabled as an extension - check using phpinfo();.
In skin\xsl\ place the attached local_worldCatInfo.xslIn skin\jscripts\ place the edited worldcatinfo.js
In skin\xsl\pageFacets\displayFacets.xsl you need to add this where there should be some includes of a similar format:
(see attached as an example only- I've split up the actionBox in our OPAC).
And this where you want it to display:


1 Comment
comments.show.hideNov 04, 2009
Tom Pasley
I'm hoping someone can port this sort of feature to Perl, as it could then reside on the same server as Voyager, without the requirement for PHP to be installed, or for another server.
Any offers?
Tom
t.pasley@ucol.ac.nz