5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Tools › Plugins </title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="plugins_plugins_home" class="plugins">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'prefs-admin-search.inc' %]
14 <div id="breadcrumbs">
15 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
16 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
20 <div class="main container-fluid">
22 <div class="col-sm-10 col-sm-push-2">
27 [% IF ( CAN_user_plugins_manage ) %]
28 <div class="btn-toolbar" id="toolbar">
29 <a href="/cgi-bin/koha/plugins/plugins-upload.pl" id="upload_plugin" class="btn btn-default btn-sm"><i class="fa fa-upload"></i> Upload plugin</a>
30 <div class="btn-group">
31 <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-eye"></i> View plugins by class <span class="caret"></span></button>
32 <ul class="dropdown-menu">
33 <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">View all plugins</a></li>
34 <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">View report plugins</a></li>
35 <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">View tool plugins</a></li>
36 <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=to_marc">View MARC conversion plugins</a></li>
37 <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=opac_online_payment">View online payment plugins</a></li>
38 <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=intranet_catalog_biblio_enhancements">View intranet catalog biblio enhancement plugins</a></li>
45 [% UNLESS ( plugins ) %]
46 [% UNLESS ( method ) %]
47 <div class="dialog message">No plugins installed</div>
49 [% IF method == 'tool' %]
50 <div class="dialog message">No plugins that can be used as a tool are installed</div>
51 [% ELSIF method == 'report' %]
52 <div class="dialog message">No plugins that can create a report are installed</div>
53 [% ELSIF method == 'to_marc' %]
54 <div class="dialog message">No plugins that can convert files to MARC records are installed</div>
55 [% ELSIF method == 'opac_online_payment' %]
56 <div class="dialog message">No plugins that can process online payments via the public catalog are installed</div>
57 [% ELSIF method == 'intranet_catalog_biblio_enhancements' %]
58 <div class="dialog message">No plugins that can enhance the intranet catalog biblio records are installed</div>
60 <div class="dialog message">Unknown plugin type <i>[% method | html %]</i></div>
69 <th>Plugin version</th>
70 <th>Minimum Koha version</th>
71 <th>Maximum Koha version</th>
73 [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
78 [% FOREACH plugin IN plugins %]
80 <td><strong>[% plugin.metadata.name | html %]</strong></td>
82 [% plugin.metadata.description | html %]
84 [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
85 <div class="dialog alert">
86 Warning: This report was written for a newer version of Koha. Run at your own risk.
90 [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
91 <div class="dialog alert">
92 Warning: This plugin was written for an older version of Koha. Run at your own risk.
96 <td>[% plugin.metadata.author | html %]</td>
97 <td>[% plugin.metadata.version | html %]</td>
98 <td>[% plugin.metadata.minimum_version | html %]</td>
99 <td>[% plugin.metadata.maximum_version | html %]</td>
100 <td>[% plugin.metadata.date_updated | $KohaDates %]</td>
101 [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
103 <div class="dropdown">
104 <a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#">
105 Actions <b class="caret"></b>
107 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
108 [% IF ( CAN_user_plugins_report ) %]
109 [% IF plugin.can('report') %]
110 <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=report"><i class="fa fa-table"></i> Run report</a></li>
114 [% IF ( CAN_user_plugins_tool ) %]
115 [% IF plugin.can('tool') %]
116 <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool"><i class="fa fa-wrench"></i> Run tool</a></li>
120 [% IF ( CAN_user_plugins_configure ) %]
121 [% IF plugin.can('configure') %]
122 <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=configure"><i class="fa fa-cog"></i> Configure</a></li>
125 [% IF ( CAN_user_plugins_manage ) %]
126 <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash"></i> Uninstall</a></li>
138 </div> <!-- /.col-sm-10.col-sm-push-2 -->
140 <div class="col-sm-2 col-sm-pull-10">
142 [% INCLUDE 'tools-menu.inc' %]
144 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
145 </div> <!-- /.row -->
147 [% MACRO jsinclude BLOCK %]
148 [% Asset.js("js/tools-menu.js") | $raw %]
149 [% INCLUDE 'calendar.inc' %]
151 $(document).ready(function(){
152 $(".uninstall_plugin").on("click", function(){
153 $(".dropdown").removeClass("open");
154 var plugin_name = $(this).data("plugin-name");
155 return confirmDelete( _("Are you sure you want to uninstall the plugin %s?").format( plugin_name ) );
161 [% INCLUDE 'intranet-bottom.inc' %]