Useful Scripts
Here are some of the scripts I have written for Web administration and other purposes.
These scripts are all covered by the GNU Software Licence. For your own peace of mind, please read the licence if you are going to use anything you find here.
"Voyager" Scripts
A number of scripts to add functionality to the Voyager Library system.
- edi-incoming.pl
- -- a Webadmin add-on to allow staff to download EDI invoice files from supplier sites.
- edi-outgoing.pl
- -- a Webadmin add-on to allow staff to upload EDI order files to supplier sites.
- login
- -- an external authentication script used to authenticate access to Voyager's MyOPAC.
- bookmark.pl
- -- add a link to WebVoyage to create a "bookmark" for the current page, providing either "canned" searches or links to specific titles.
Work Request Manager
A simple perl-based system for managing work requests.
[details]
MARC Processing Scripts
- marc.pl
- -- a generalised perl script to manage MARC data. Converts between
raw MARC and text formats. Allows selective copying/converting of records
by number or by keyword.
[Download]
Requires the module MARC::Base.pm. - MARC
- -- a Package of routines for managing MARC data. [Download]
Text Processing Scripts
These are the scripts I used to build most of the files in our Electronic Text Collection.
- etext2html.pl
- -- a perl script to convert a plain ASCII text file into a formatted HTML Electronic Text.
- etext-build.pl
- -- a perl script to add headers and split the HTML file created by etext2html.pl
Web Administration Scripts
- director
- -- a cgi script to redirect URL's for resources, based on a lookup table; currently in use here witharound 4000 electronic resources.
- docinfo.js
- -- a Javascript file to provide a consistent footer for all pages (e.g. this one)
- goto
- -- a cgi script to redirect the user to a specified URL; for use in popup menus.
- http_ck
- -- checks the links in an html file to see if they still work; returns the error message for busted links; optionally lists all links, including good ones. Requires the files http_request and split_url.
- http_request
- -- makes an http request to a remote site and returns whatever is returned.
- login.cgi
- -- a cgi script to automate login to a remote resource. Requires the files http_request
- webverify
- -- a shell script to run http_ck and weblint to verify your html files; results are mailed to the file's owner.
- webmap
- -- produces an html map of your web site (or part thereof).
- nsclean
- -- a trivial Perl script to clean up Netscape bookmark files for inclusion in HTML files.
Other Scripts
- palm
- -- Converts web pages into Palm doc files. Requires the files http_request cgi_receive and split_url.
- man.pl
- -- provides web access to Unix man pages; includes links to other man pages referenced in the page.
- quote.pl
- -- prints a random quote from a nominated file
- rand_quote
- -- as above, but as a CGI script, with output to HTML; see my Quotes page for a working example.