Bug 16586: Koha Plugins: Limit results of GetPlugins by metadata
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 25 May 2016 11:37:49 +0000 (13:37 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 12:13:39 +0000 (12:13 +0000)
commita3a1ec57aaa3b008cc21a0150f08ab1a4248c179
treecd282f2993ac6e52b35ab47ddfa50d5099dda689
parentb118074fe480ac2028d474d322713303648eb7d0
Bug 16586: Koha Plugins: Limit results of GetPlugins by metadata

It would be helpful if we could find a plugin based on some metadata
tag as returned by the plugin. This extends the use of GetPlugins that
already supports searching on method.

GetPlugins is used in: admin/edi_accounts.pl, plugins/plugins-home.pl and
tools/stage-marc-import.pl. The changes in these three scripts are
minimal and just related to parameter passing.

Test t/db_dependent/Plugins.t includes another test for GetPlugins. In this
regard a metadata tag has been added to t/Koha/Plugins/Test.pm.

NOTE: This adjustment will also be used in a redesign for bug 15545.

Test plan:
Run t/db_dependent/Plugins.t.
Enable pref UseKohaPlugins and config var enable_plugins.
Go to plugins-home.pl. Verify that it still lists your plugins.
Bonus: Check edi_accounts or stage-marc-import.pl if you have a working
plugin for that.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Plugins.pm
admin/edi_accounts.pl
plugins/plugins-home.pl
t/Koha/Plugin/Test.pm
t/db_dependent/Plugins.t
tools/stage-marc-import.pl