Bug 26338: Show tool plugins run in tools home
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 1 Sep 2020 13:43:19 +0000 (15:43 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 30 Sep 2020 15:30:13 +0000 (17:30 +0200)
commitfb59f3f0f046c7b08fa509e76c416b2c4db3fa5a
treedb1a9dcde80bfc1adfe41f6a1c2dc5b9caba8e1f
parentd7e9388e4d847ab95b560df98eb78a2ff7ab5f74
Bug 26338: Show tool plugins run in tools home

In tools home there is a link to the table showing tool plugins.
Would be great to be able to run a tool plugin directly from tools home.

Also adds the behavior than if there is no tool plugin, "Tool plugins"
section is not displayed in tools home.
No need of a link that goes to an empty table ;)

Test plan :
1) Enable plugins, dont install any
2) Go to "Tools" module : /cgi-bin/koha/tools/tools-home.pl
3) Check you dont see "Tool plugins"
4) Install a tool plugin like Carrousel https://inlibro.com/instructions-carrousel/
5) Refresh /cgi-bin/koha/tools/tools-home.pl
6) Check you see "Tool plugins" and a link to Carrousel
7) Click on link to Carrousel => You see plugin run
8) Disable Carrousel plugin
9) Refresh /cgi-bin/koha/tools/tools-home.pl
10) Check you dont see "Tool plugins"

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
tools/tools-home.pl