]> git.koha-community.org Git - koha.git/commit
Bug 7804 - Add Koha Plugin System
authorKyle M Hall <kyle.m.hall@gmail.com>
Fri, 22 Jan 2010 16:34:52 +0000 (16:34 +0000)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 20 Mar 2013 18:49:47 +0000 (14:49 -0400)
commit5eabc672fd818b312b3dbc8e2c19defcca97ed13
tree991d3b282e4d1e753c7a9131290fd086765cb0ad
parent9e8bf67a3162dae3d6f0ff265ccc688346b113e2
Bug 7804 - Add Koha Plugin System

Adds support for custom plugins. At the moment the Plugins
feature supports two types of plugins, reports and tools.

Plugins are installed by uploading KPZ ( Koha Plugin Zip )
packages. A KPZ file is just a zip file containing the
perl files, template files, and any other files neccessary
to make the plugin work.

Test plan:
1) Apply patch
2) Run updatedatabase.pl
3) Create the directory /var/lib/koha/plugins
4) Add the lines
      <pluginsdir>/var/lib/koha/plugins</pluginsdir>
      <enable_plugins>1</enable_plugins>"
   to your koha-conf.xml file
5) Add the line
       Alias /plugin/ "/var/lib/koha/plugins/"
   to your koha-httpd.conf file
6) Restart your webserver
7) Access the plugins system from the "More" pulldown
8) Upload the example plugin file provided here
9) Try it out!

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
25 files changed:
C4/Auth.pm
C4/Installer/PerlDependencies.pm
C4/Templates.pm
Koha/Plugins.pm [new file with mode: 0644]
Koha/Plugins/Base.pm [new file with mode: 0644]
Koha/Plugins/Handler.pm [new file with mode: 0644]
Makefile.PL
debian/templates/koha-conf-site.xml.in
etc/koha-conf.xml
etc/koha-httpd.conf
installer/data/mysql/kohastructure.sql
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref
koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
plugins/plugins-home.pl [new file with mode: 0755]
plugins/plugins-uninstall.pl [new file with mode: 0755]
plugins/plugins-upload.pl [new file with mode: 0755]
plugins/run.pl [new file with mode: 0755]
rewrite-config.PL
skel/var/lib/koha/plugins/README [new file with mode: 0644]