Authors

Copyright

This plugin is released under the terms of the GNU General Public License v3. Details of this license can be found here.

Installation

Installation should be relatively simple and similar to the installation of other plugins from the EdShare family.

Extract Package

The package should be extracted in the appropriate archive directory of your EPrints installation. Run the following commands replacing ARCHIVEID with the name of the archive you want the collections on, and replace VERSION with the appropriate version number based on the package you have downloaded;

cd /opt/eprints3/archives/ARCHIVEID
tar -xzf toolbox-VERSION.tar.gz

These commands assume that you installed EPrints to /opt/eprints3 substitute this for something else if you installed it elsewhere. Users of the Ubuntu version of EPrints will find that it is installed by default at /usr/share/eprints3.

Install CGI Scripts

Modify Plugins

Having your plugin register an action on the toolbox is very simple. All you need to do is add a render_toolbox_item function to your plugin. This function is expected to return a DOM node that will be appended to a list element in the toolbox. You then just need to add the name of the plugin to the archives/ARCHIVEID/cfg/cfg.d/edsharetoolbox.pl file.

Here is an example for EPrints::Plugin::Foo.

First in EPrints::Plugin::Foo we add the following render_toolbox_item function;

In this function we have an example of a link which has both a default static function and an AJAX function call when you click on it in the event of $dynamic being true. Note that in the ep_foo_action() that a call to ep_refresh_edshare_toolbox should be made at the end of the function. This is needed to update the list as a result of your action being executed.

Finally you need to add the name of the plugin, EPrints::Plugin::Foo, to both the toolbox_static_plugins and toolbox_dynamic_plugins array. If you don't add it to toolbox_dynamic_plugins then it will not be re-rendered at the page load falling back to just the static render case.

Now you just need to run;

bin/generate_abstracts *archiveid*

If this is the first install of the plugin then you will also need to run;

bin/generate_static *archiveid*

Finally restart your web server and you should have the toolbox on your abstract pages.