Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 1 rates
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

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:




Page Attachments

File NameCommentSizeNumber of Downloads
worldcatinfo.jsworldcatinfo.js - copy to Voyager server4 kB56
apacitation.phpPHP script that handles the webservice call - to be placed on a server that has PHP enabled.4 kB86
displayFacets.xsl*Sample only* displayFacets.xsl to show how it's implemented7 kB81
local_worldCatInfo.xsllocal_worldCatInfo.xsl - copy to Voyager server4 kB72

Added by Tom Pasley on Oct 27, 2009 23:18, last edited by Conf Admin on Oct 30, 2009 02:08

  1. Nov 04, 2009

    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

Adaptavist Theme Builder Powered by Atlassian Confluence