]> git.koha-community.org Git - koha.git/commit
Bug 20181: Allow plugins to add css and javascript to OPAC
authorKyle M Hall <kyle@bywatetsolutions.com>
Mon, 12 Feb 2018 14:09:20 +0000 (09:09 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 19 Oct 2018 07:35:05 +0000 (09:35 +0200)
commit300ea0d68f6aaaad913211b15a10d1391dc40542
tree6a6a975ab85f153ba2079a6265ee79755a917690
parent4a7ec67faeeae3b3f8a5a38c49ac7ec74135e072
Bug 20181: Allow plugins to add css and javascript to OPAC

A number of Koha plugins have been written that enhance Koha's public catalog. These plugins often make due to adding css and javascript to the various opac system preferences. It would be nice if the plugin system had hooks so plugin developers could add code the the head block and the area where we include javascript in the opac template.

Test Plan:
1) Apply this patch
2) Download and install the Kitchen Sink plugin ( v2.1.12 or later )
   https://github.com/bywatersolutions/koha-plugin-kitchen-sink/releases/download/v2.1.12/koha-plugin-kitchen-sink-v2.1.12.kpz
3) Install the plugin
4) Restart all the things if you can ( restart_all if you are using kohadevbox )
   This will ensure the plugin takes effect right away, it should be
   necessary but it won't hurt anything!
5) Load the opac, notice you get an alert message and the background
   for your opac is now orange ( assuming you've not customized the
   opac in any way )

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e8fbe51ff33760b0446339b44047229be9e9f1a8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Template/Plugin/KohaPlugins.pm [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc