Koha::Template::Plugin::KohaPlugins - A module for adding hooks into Koha for plugins
This plugin contains functions related to adding plugin hooks into various parts of Koha.
To use, include the line '[% USE KohaPlugins %]' at the top of the template to enable the plugin
[% KohaPlugins.get_plugins_opac_head %]
This method collects the output of all plugins with an opac_head method to output to the head section of opac pages.
[% KohaPlugins.get_plugins_opac_js %]
This method collects the output of all plugins with an opac_js method to output to the javascript section of at the bottom of opac pages.
[% KohaPlugins.get_plugins_intranet_head %]
This method collects the output of all plugins with an intranet_head method to output to the head section of intranet pages.
[% KohaPlugins.get_plugins_intranet_js %]
This method collects the output of all plugins with an intranet_js method to output to the javascript section of at the bottom of intranet pages.
[% SET plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab %] [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] <li><a href="#[% plugins_intranet_catalog_biblio_tab.id | uri %]">[% plugins_intranet_catalog_biblio_tab.title | html %]</a></li> [% END %]
This method collects the output of all plugins with a intranet_catalog_biblio_tab method to output to the list of extra cataloguing tabs on intranet pages.
[% KohaPlugins. get_plugins_intranet_cover_images %]
This method collects the output of all plugins for injecting cover images into the intranet template and appends it to the javascript at the bottom of the page.
[% KohaPlugins. get_plugins_opac_cover_images %]
This method collects the output of all plugins for injecting cover images into the opac template and appends it to the javascript at the bottom of the page.
[% KohaPlugins.feature_enabled('method_name') %]
This method returns true if the passed plugin hook method name is found to be installed and enabled as part of a plugin.