EPrints Technical Mailing List Archive
Message: #05590
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Replace an EPrints Function
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Replace an EPrints Function
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Fri, 22 Apr 2016 16:01:43 +0000
Hi All, I’m trying to programmatically amend the EPrints::Plugin::Screen::Items screen. We (one of my predecessors) have already replaced the render function with a local one using
undef &EPrints::Plugin::Screen::Items::render; ##Define new method and assign to exiting method *EPrints::Plugin::Screen::Items::render = \&local_render; So I could just amend the local_render to modify the doc_fragment as necessary whilst it gets built, but I’d like to do it in a more plugin-friendly way, so, intercept the call to render as above, but then actually be able to call the
original render function. Thus far I’ve managed to send the (dev) server into several infinite loops – any suggestions for how to achieve it, or other suggestions gratefully received! Cheers, Alan |
- Prev by Date: [EP-tech] Coverpage and revisions
- Next by Date: Re: [EP-tech] Replace an EPrints Function
- Previous by thread: [EP-tech] Coverpage and revisions
- Next by thread: Re: [EP-tech] Replace an EPrints Function
- Index(es):