EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03244
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: EP_TRIGGER_URL_REWRITE and redirecting to a screen
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: EP_TRIGGER_URL_REWRITE and redirecting to a screen
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- Date: Fri, 11 Jul 2014 11:36:36 +0100
Hi John,I don't think that case (1) redirects - see eprints3/cgi/users/home. It just passes on the request to the ScreenProcessor. You could achieve the same with a trigger in fact.
Since your screen already has a url (http://repo/cgi/users/home?screen=MyScreen), I guess what you want to do is a rewrite as in mod_rewrite.
Seb. On 11/07/14 11:16, John Salter wrote:
Hi, What's the *best/intended* way to go from an EP_TRIGGER_URL_REWRITE trigger to a screen? >From searching the Bazaar, is seems like most things like this either: (1) use a cgi/... script that does the screen selection/processing, or (2) register a handler that does the work (e.g. $request->set_handlers(PerlResponseHandler => [ 'EPrints::Plugin::MePrints::MePrintsHandler' ] ); ) Both seem not-quite-right: (1) requires the trigger to do a redirect (another HTTP call), (2) would duplicate a lot of stuff that EPrints does 'normally' (the screen I want to use is a normal EPrints screen). Should the trigger should be able to do the work? Have I missed some magic way of doing this? Cheers, John *** 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/ *** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] EP_TRIGGER_URL_REWRITE and redirecting to a screen
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] EP_TRIGGER_URL_REWRITE and redirecting to a screen
- Prev by Date: [EP-tech] EP_TRIGGER_URL_REWRITE and redirecting to a screen
- Next by Date: [EP-tech] Proposal: EPrints Developers Powwow
- Previous by thread: [EP-tech] EP_TRIGGER_URL_REWRITE and redirecting to a screen
- Next by thread: [EP-tech] Re: EP_TRIGGER_URL_REWRITE and redirecting to a screen
- Index(es):