The Koha ILL backends directory can be configured in koha-conf.xml, however, this directory is not included in @INC To test: 1 - Define backends_directory in koha-conf.xml as /var/lib/koha/instance/Koha/Illbackends 2 - Install a backend there 3 - Restart things, enable ILLModule syspref 4 - Check the about page, it should not have a warning about 'No backends installed' 5 - Try to place a new request - internal server error 6 - Check the plack logs, the module cannot be required
Currently, you need to define in koha-conf.xml the path: <backend_directory>__PERL_MODULE_DIR__/Koha/Illbackends</backend_directory> on this hybrid plugin/ILL backend: https://gitlab.com/thekesolutions/plugins/koha-plugin-innreach my approach has been to generate directories for both: Koha/Illbackends Koha/Plugin/Com/Theke/INNReach* they are packaged together. And then on koha-conf.xml I only need to put: <backend_directory>/var/lib/koha/plugins/Koha/Illbackends</backend_directory> We should try it with more than one backend.
(In reply to Tomás Cohen Arazi from comment #1) > > <backend_directory>/var/lib/koha/plugins/Koha/Illbackends</backend_directory> I meant this: <backend_directory>/var/lib/koha/<instance>/plugins/Koha/Illbackends</backend_directory>
Does this still require a fix?
We have discussed moving the backends to be traditional Koha plugins, then Tomas' solution works well. We have been using a version of the Koha-2-koha plugin that functions this way and that has been a good workaround. If we want to support the plugins as-is then this should be addressed
I am adding 19605 as a dependency.
Adding my suggestion at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19605#c9 to this discussion. After 19605 is pushed, we support both ways of loading ILL backends (old backend_dir way and this new plugin way) for a while (1 year? 2 years?) and after that period we deprecate the old backend_dir way of doing things.