[EP-tech] Re: AJAX end point
mark.gregson at qut.edu.au
Mon Oct 15 01:36:05 BST 2012
The obvious question: what about an export plugin and the existing access point at http://example.com/cgi/export/<eprint-id>/<export-plugin-id>/quteprints-eprint-53856.txt?
If an export plugin is unsuitable I think the most appropriate way to do this is to use a CGI script that delegates to the ScreenProcessor and a view plugin.
Some added polish would be a function in your cfg.d that is registered for the URL rewrite trigger and allow you to have prettier URLs for your end point, perhaps even URLs that fit with EPrints' RESTful API.
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Robert Berry
Sent: Thursday, 11 October 2012 8:14 PM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] AJAX end point
Does anybody have an opinion as to what is the best way to make an AJAX
(JSON) end-point available? Should I be creating a view plug in for this or a new CGI script?
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
More information about the Eprints-tech