newitems.cgi - simple CGI script for linking to a list of new items in an Evergreen...
authorGalen Charlton <gmc@esilibrary.com>
Wed, 17 Sep 2014 15:50:24 +0000 (11:50 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 17 Sep 2014 15:50:24 +0000 (11:50 -0400)
commitedf746eefdf1e6d9ab6f3ce7a73806396061934b
tree56199fce4e7d51f9be14df933dd18316a2b37d79
parent590348416757a294b93e53310252f8fba1fdd9b5
newitems.cgi - simple CGI script for linking to a list of new items in an Evergreen catalog.

It accepts a list of one or more Evergreen location IDs (passed via
the "loc") CGI parameter and an optional count.  It then fetches
the list of bib IDs of the $count newest items in those locations,
then generates an HTTP redirect to a TPAC search results page.

To use, place it on the Evergreen web server in a directory that's
configured to run CGI scripts.

An example of a URL using this script:

http://catalog.example.org/cgi-bin/newitems.cgi?count=30&loc=123&loc=124

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
new-items-redirect/newitems.cgi [new file with mode: 0755]