[EP-tech] Adding Buttons to Admin Screen

James Kerwin via Eprints-tech <[email protected]>
Newsgroups gmane.comp.web.eprints.devel
Message-ID <EMEW3|cb2a11d79c754cd02aa0742ead047b3dv5DFlN14eprints-tech-bounces|ecs.soton.ac.uk|CAKkNZ9DunJiqHR7q9CK1QCAwBVW_bzNh3jy5fMZfmFgGfgw+sg@mail.gmail.com>
Hi All,

I have a script that I run every two weeks for AAM updates. I'm away when
the next update is due so I've decided to create a new button on the Admin
screen that runs the script (inspired by the MintDOI button in the DataCite
plugin):

[image: image.png]
(I know it should say "an AAM").

I'm using RegenAbstracts.pm
(EPrints::Plugin::Screen::Admin::RegenAbstracts;) as a rough guide.

I had assumed that this would call "generate_abstracts" but it appears to
look at "config/regen_abstracts":

sub allow_regen_abstracts

{

my( $self ) = @_;


return $self->allow( "config/regen_abstracts" );

}

Does anybody know how I can get it to point at my script? I must admit that
I'm not sure where "config/regen_abstracts" is pointing and I've done so
many greps to find it. If I could find how looking to that causes the
abstracts to be generated I could copy that approach.

Thanks,
James

*** 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/
image.png (image/png, 6.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.