Cool code: EPrints export plug in allows preview magic

Developer Happiness Days has seen a number of immediate and exciting ouputs from the industrious coders here. While Sam Easterby-Smith's Happier Pipe is arguably the most fun, Chris Gutteridge's speedy work on JSON exports for the EPrints software should have a real impact on the ease of use of the popular EPrints service. Chris explains:

“I have built an export plugin for the EPrints software – http://eprints.org/software/ – which allows records and searches to be dumped as JSON. This will allow other Dev8D delegates to built new tools on top of this data.”

JSON makes it much easier to use your data in mashups on third party sites. Examples already Kupite tablete Kamagra demoed at dev8D include a third party website which allows users to browse the data in a new, faceted way, and a  little code to add to the top of a webpage, which makes previews magically appear on each eprint link. Try hovering the mouse over links on
http://www.ecs.soton.ac.uk/people/lac/publications

To access EPrint records as JSON, either perform a search on  http://eprints.ecs.soton.ac.uk/  and select the export as JSON option; or as a “REST” URL for record 15818:
http://eprints.ecs.soton.ac.uk/cgi/export/15818/JSON/ecs-eprint-15818.js
or,  Chris has dumped all the data at   http://eprints.ecs.soton.ac.uk/dump.json (warning: 35 Meg)
There is also a  YAML version.