[Koha-bugs] [Bug 35603] Add plugin feature to allow plugins to warn if any external library modules needed are missing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 19 17:30:25 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35603

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #160008|0                           |1
        is obsolete|                            |

--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 160036
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160036&action=edit
Bug 35603: Add plugin feature to allow plugins to warn if any external library
modules needed are missing

Some plugins require extra modules not included with Koha, but there is no
simple way to let a user know when installing a plugin.

This patch allows a new metadata to be added that is a list of hashes
with the key module. The hash is used for future expansion to allow new
critera to be added such as minimum and maximum module version.

Test Plan:
1) Install any plugin
2) In the plugin metadata, add the following key:
libs => [ { module => 'Business::Barcode::EAN13' } ],
3) Apply this patch
4) Restart all the things!
5) Browse to plugins-home.pl, note the error listing the missing module
6) Install Business::Barcode::EAN13 from cpan
7) Reload the page
8) Note the error is gone!

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list