EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #01176


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: AJAX end point


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.

Cheers
Mark


-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Robert Berry
Sent: Thursday, 11 October 2012 8:14 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] AJAX end point

Hi everyone,

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?

Best wishes,
Rob
*** 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/