Issued items as HTML snippet
Tags: moodle
, interface
, open
, intermediate
, perl
, html
, elympics
Last Updated: Jan 10, 2010 21:53
- Description
Using the same criteria as we use for someone to log into MyAccount, I have created a CGI script which will display someone's issued items as an HTML snippet.
- Author: Tom Pasley
- Institution: UCOL Library
- 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
Either 'Stable' or 'In Development', depending on what voters think!
Programming language
Perl
Software requirements
Most of the required modules should be present on a Voyager server.
Screen captures
N.B. The screenshot here shows the ISBNs as links - these are not provided by the script! (but could be...)

Download
Working example
http://libcat.ucol.ac.nz/vwebv/issued_items_html.cgi?patronbarcode=31232&lastname=Pasley
Using the following Ex Libris open interfaces
Voyager AuthenticatePatronService to obtain the patron_id.
Changes
Release notes
Original release.
Uses lots of code borrowed from Michael Doran's New Books scripts.
Hopefully this is also an "open" interface which can be used by benign 'bots, and included in products such as Moodle (using an AJAX script?, after accessing the $USER object to derive the HTML url).
URL is server location/issued_items_html.cgi?patronbarcode=libraryid&lastname=lastname
Installation instructions
Edit the script using something like Notepad++
Place this script in a valid cgi-enabled directory on a server, using FTP or whatever works!
Using a telnet terminal, use this as the voyager user to make the cgi script executable:
If your Voyager installation is running Michael Doran's New Books list, then put this cgi script in the same directory as "newBooks.cgi" once configured.
TO DO list
Possibly add a parameter to allow the client to specify the image size used?
No support for internationalisation - though could be edited manually.
Known issues
A bit slooow on our server, but your mileage might vary!
Comments
Text...

