edsapi-koha-plugin icon indicating copy to clipboard operation
edsapi-koha-plugin copied to clipboard

Use Koha's REST API instead of relying on altered Apache configuration

Open minusdavid opened this issue 4 years ago • 5 comments

As of at least eds_plugin_19.05010.kpz, it looks like the EDS plugin requires Apache to have an Alias directive pointing to the plugin directory.

Modern Koha plugins like https://github.com/bywatersolutions/koha-plugin-coverflow inject routes into Koha's REST API so that no special configuration changes need to be made server side.

minusdavid avatar Apr 26 '21 06:04 minusdavid

This sounds fantastic! Anything to make it easier to install. I couldn't spot where the linked repo is doing the route injection. Could you point me to the section where this happens? Appreciate it!

mmabrahamson avatar Apr 26 '21 15:04 mmabrahamson

Here is the specific commit, there were some followups too https://github.com/bywatersolutions/koha-plugin-coverflow/commit/68caf99981c5f35d4696e63306105ecd050581b7

For more details on adding routs to a plugin: https://koha-community.gitlab.io/KohaAdvent/

kidclamp avatar Apr 26 '21 16:04 kidclamp

This would still be nice to have. I tried to find documentation for the altered Apache configuration but I couldn't find any. Fortunately, I was able to find some old existing examples on my own systems.

I can't get the EDS plugin to work on 21.11, but I'm having the librarian follow up with EBSCO, as I imagine it's just plugin configuration and nothing Koha specific...

minusdavid avatar Dec 16 '22 02:12 minusdavid

It is pretty frustrating trying to get this plugin to work.

Found the alias at https://koha.katipo.co.narkive.com/GnvGDdb2/eds-plugin-not-loading

Alias /plugin/ "/var/lib/koha/instance/plugins/"

minusdavid avatar Jul 31 '23 05:07 minusdavid

Needed the Location directive as well since Apache didn't want to run those scripts as CGI.

minusdavid avatar Jul 31 '23 05:07 minusdavid