[Koha-bugs] [Bug 26163] Add plugin directories to PERL5LIB

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 27 04:14:46 CEST 2020


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

Galen Charlton <gmcharlt at gmail.com> changed:

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

--- Comment #17 from Galen Charlton <gmcharlt at gmail.com> ---
Created attachment 109216
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109216&action=edit
Bug 26163: Add plugin directories to PERL5LIB

It would be nice if we could create Koha objects and schema files to be
used in plugins. The problem is that by the time the Plugin directories
are added to @INC only at the point that Koha::Plugins is evaluated.
This is too late for loading additional Schema files that may be part of
a plugin.

In addition, it makes sense to allow plugins to have a 'lib' directory
so that any additional object and schema files can be stored inside the
plugin assets directory and not pollute the root plugins directory.
Without such a 'lib' directory, we would need to place them in the
plugins directory such as
'/var/lib/koha/instancename/plugins/Koha/MyObject.pm'.
This file would not be removed when the plugin is uninstalled.

Test Plan:
1) Apply this patch
2) Start koha-testing-docker or Update your plack.psgi file with the changes
from the patch ( e.g. /etc/koha/sites/kohadevbox/plack.psgi )
3) Install the curbside pickup plugin, 1.0.9:
  
https://github.com/bywatersolutions/koha-plugin-curbside-pickup/releases/tag/v1.0.9
4) Restart all the things!
5) Verify that the curbside pickup plugin's config and tools interfaces appear.

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

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


More information about the Koha-bugs mailing list