View | Details | Raw Unified | Return to bug 20988
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt (-6 / +7 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools &rsaquo; Plugins &rsaquo; Upload Plugin
3
<title>[% t('Koha › Tools › Plugins › Upload Plugin') %]
3
 </title>
4
 </title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'calendar.inc' %]
6
[% INCLUDE 'calendar.inc' %]
Lines 9-17 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'circ-search.inc' %]
11
[% INCLUDE 'circ-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
13
&rsaquo; <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a>
14
› <a href="/cgi-bin/koha/plugins/plugins-home.pl">[% t('Plugins') %]</a>
14
&rsaquo; Plugins disabled
15
[% t('› Plugins disabled') %]
15
</div>
16
</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
Lines 20-28 Link Here
20
    <div class="yui-b">
21
    <div class="yui-b">
21
        <div class="yui-g">
22
        <div class="yui-g">
22
            <div class="yui-u first">
23
            <div class="yui-u first">
23
                <h1>Plugins disabled!</h1>
24
                <h1>[% t('Plugins disabled!') %]</h1>
24
25
25
                <p>To enable Koha plugins, the system preference UseKohaPlugins must be enabled, and the flag enable_plugins must be set in the Koha configuration file</p>
26
                <p>[% t('To enable Koha plugins, the system preference UseKohaPlugins must be enabled, and the flag enable_plugins must be set in the Koha configuration file') %]</p>
26
            </div>
27
            </div>
27
        </div>
28
        </div>
28
    </div>
29
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-33 / +34 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; Plugins </title>
6
<title>[% t('Koha › Tools › Plugins') %] </title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
9
Lines 11-19 Link Here
11
[% INCLUDE 'prefs-admin-search.inc' %]
12
[% INCLUDE 'prefs-admin-search.inc' %]
12
13
13
<div id="breadcrumbs">
14
<div id="breadcrumbs">
14
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
15
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
15
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
16
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
16
    Plugins
17
    [% t('Plugins') %]
17
</div>
18
</div>
18
19
19
<div id="doc3" class="yui-t1">
20
<div id="doc3" class="yui-t1">
Lines 24-72 Link Here
24
25
25
                    [% IF ( CAN_user_plugins_manage ) %]
26
                    [% IF ( CAN_user_plugins_manage ) %]
26
                        <div class="btn-toolbar" id="toolbar">
27
                        <div class="btn-toolbar" id="toolbar">
27
                            <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>
28
                            <a href="/cgi-bin/koha/plugins/plugins-upload.pl" id="upload_plugin" class="btn btn-default btn-sm"><i class="fa fa-upload"></i> [% t('Upload plugin') %]</a>
28
                            <div class="btn-group">
29
                            <div class="btn-group">
29
                                <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>
30
                                <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-eye"></i> [% t('View plugins by class') %] <span class="caret"></span></button>
30
                                <ul class="dropdown-menu">
31
                                <ul class="dropdown-menu">
31
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">View all plugins</a></li>
32
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">[% t('View all plugins') %]</a></li>
32
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">View report plugins</a></li>
33
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">[% t('View report plugins') %]</a></li>
33
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">View tool plugins</a></li>
34
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">[% t('View tool plugins') %]</a></li>
34
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=to_marc">View MARC conversion plugins</a></li>
35
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=to_marc">[% t('View MARC conversion plugins') %]</a></li>
35
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=opac_online_payment">View online payment plugins</a></li>
36
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=opac_online_payment">[% t('View online payment plugins') %]</a></li>
36
                                </ul>
37
                                </ul>
37
                            </div>
38
                            </div>
38
                        </div>
39
                        </div>
39
                    [% END %]
40
                    [% END %]
40
                    <h1>Plugins</h1>
41
                    <h1>[% t('Plugins') %]</h1>
41
42
42
                    [% UNLESS ( plugins ) %]
43
                    [% UNLESS ( plugins ) %]
43
                        [% UNLESS ( method ) %]
44
                        [% UNLESS ( method ) %]
44
                            <div class="dialog message">No plugins installed</div>
45
                            <div class="dialog message">[% t('No plugins installed') %]</div>
45
                        [% ELSE %]
46
                        [% ELSE %]
46
                            [% IF method == 'tool' %]
47
                            [% IF method == 'tool' %]
47
                                <div class="dialog message">No plugins that can be used as a tool are installed</div>
48
                                <div class="dialog message">[% t('No plugins that can be used as a tool are installed') %]</div>
48
                            [% ELSIF method == 'report' %]
49
                            [% ELSIF method == 'report' %]
49
                                <div class="dialog message">No plugins that can create a report are installed</div>
50
                                <div class="dialog message">[% t('No plugins that can create a report are installed') %]</div>
50
                            [% ELSIF method == 'to_marc' %]
51
                            [% ELSIF method == 'to_marc' %]
51
                                <div class="dialog message">No plugins that can convert files to MARC records are installed</div>
52
                                <div class="dialog message">[% t('No plugins that can convert files to MARC records are installed') %]</div>
52
                            [% ELSIF method == 'opac_online_payment' %]
53
                            [% ELSIF method == 'opac_online_payment' %]
53
                                <div class="dialog message">No plugins that can process online payments via the public catalog are installed</div>
54
                                <div class="dialog message">[% t('No plugins that can process online payments via the public catalog are installed') %]</div>
54
                            [% ELSE %]
55
                            [% ELSE %]
55
                                <div class="dialog message">Unknown plugin type <i>[% method %]</i></div>
56
                                <div class="dialog message">[% t('Unknown plugin type') %] <i>[% method %]</i></div>
56
                            [% END %]
57
                            [% END %]
57
                        [% END %]
58
                        [% END %]
58
                    [% ELSE %]
59
                    [% ELSE %]
59
                        <table>
60
                        <table>
60
                            <tr>
61
                            <tr>
61
                                <th>Name</th>
62
                                <th>[% t('Name') %]</th>
62
                                <th>Description</th>
63
                                <th>[% t('Description') %]</th>
63
                                <th>Author</th>
64
                                <th>[% t('Author') %]</th>
64
                                <th>Plugin version</th>
65
                                <th>[% t('Plugin version') %]</th>
65
                                <th>Minimum Koha version</th>
66
                                <th>[% t('Minimum Koha version') %]</th>
66
                                <th>Maximum Koha version</th>
67
                                <th>[% t('Maximum Koha version') %]</th>
67
                                <th>Last updated</th>
68
                                <th>[% t('Last updated') %]</th>
68
                                [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
69
                                [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
69
                                    <th>Actions</th>
70
                                    <th>[% t('Actions') %]</th>
70
                                [% END %]
71
                                [% END %]
71
                            </tr>
72
                            </tr>
72
73
Lines 77-87 Link Here
77
                                        [% plugin.metadata.description %]
78
                                        [% plugin.metadata.description %]
78
79
79
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
80
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
80
                                            <div class="error">Warning: This report was written for a newer version of Koha. Run at your own risk.</div>
81
                                            <div class="error">[% t('Warning: This report was written for a newer version of Koha. Run at your own risk.') %]</div>
81
                                        [% END %]
82
                                        [% END %]
82
83
83
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
84
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
84
                                            <div class="error">Warning: This report was written for an older version of Koha. Run at your own risk.</div>
85
                                            <div class="error">[% t('Warning: This report was written for an older version of Koha. Run at your own risk.') %]</div>
85
                                        [% END %]
86
                                        [% END %]
86
                                    </td>
87
                                    </td>
87
                                    <td>[% plugin.metadata.author %]</td>
88
                                    <td>[% plugin.metadata.author %]</td>
Lines 93-120 Link Here
93
                                        <td class="actions">
94
                                        <td class="actions">
94
                                            <div class="dropdown">
95
                                            <div class="dropdown">
95
                                                <a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class %]" role="button" data-toggle="dropdown" href="#">
96
                                                <a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class %]" role="button" data-toggle="dropdown" href="#">
96
                                                   Actions <b class="caret"></b>
97
                                                   [% t('Actions') %] <b class="caret"></b>
97
                                                </a>
98
                                                </a>
98
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class %]">
99
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class %]">
99
                                                    [% IF ( CAN_user_plugins_report ) %]
100
                                                    [% IF ( CAN_user_plugins_report ) %]
100
                                                        [% IF plugin.can('report') %]
101
                                                        [% IF plugin.can('report') %]
101
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=report"><i class="fa fa-table"></i> Run report</a></li>
102
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=report"><i class="fa fa-table"></i> [% t('Run report') %]</a></li>
102
                                                        [% END %]
103
                                                        [% END %]
103
                                                    [% END %]
104
                                                    [% END %]
104
105
105
                                                    [% IF ( CAN_user_plugins_tool ) %]
106
                                                    [% IF ( CAN_user_plugins_tool ) %]
106
                                                        [% IF plugin.can('tool') %]
107
                                                        [% IF plugin.can('tool') %]
107
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=tool"><i class="fa fa-wrench"></i> Run tool</a></li>
108
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=tool"><i class="fa fa-wrench"></i> [% t('Run tool') %]</a></li>
108
                                                        [% END %]
109
                                                        [% END %]
109
                                                    [% END %]
110
                                                    [% END %]
110
111
111
                                                    [% IF ( CAN_user_plugins_configure ) %]
112
                                                    [% IF ( CAN_user_plugins_configure ) %]
112
                                                        [% IF plugin.can('configure') %]
113
                                                        [% IF plugin.can('configure') %]
113
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=configure"><i class="fa fa-cog"></i> Configure</a></li>
114
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=configure"><i class="fa fa-cog"></i> [% t('Configure') %]</a></li>
114
                                                        [% END %]
115
                                                        [% END %]
115
                                                    [% END %]
116
                                                    [% END %]
116
                                                    [% IF ( CAN_user_plugins_manage ) %]
117
                                                    [% IF ( CAN_user_plugins_manage ) %]
117
                                                            <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class %]"><i class="fa fa-trash"></i> Uninstall</a></li>
118
                                                            <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class %]"><i class="fa fa-trash"></i> [% t('Uninstall') %]</a></li>
118
                                                    [% END %]
119
                                                    [% END %]
119
                                                </ul>
120
                                                </ul>
120
                                            </div>
121
                                            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt (-14 / +14 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools &rsaquo; Plugins &rsaquo; Upload Plugin
3
<title>[% t('Koha › Tools › Plugins › Upload Plugin') %]
3
 </title>
4
 </title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'calendar.inc' %]
6
[% INCLUDE 'calendar.inc' %]
Lines 9-17 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'circ-search.inc' %]
11
[% INCLUDE 'circ-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
13
&rsaquo; <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a>
14
› <a href="/cgi-bin/koha/plugins/plugins-home.pl">[% t('Plugins') %]</a>
14
&rsaquo; Upload Plugins
15
[% t('› Upload Plugins') %]
15
</div>
16
</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
Lines 20-44 Link Here
20
    <div class="yui-b">
21
    <div class="yui-b">
21
        <div class="yui-g">
22
        <div class="yui-g">
22
            <div class="yui-u first">
23
            <div class="yui-u first">
23
                <h1>Upload Koha Plugin</h1>
24
                <h1>[% t('Upload Koha Plugin') %]</h1>
24
                [% IF ( ERRORS ) %]
25
                [% IF ( ERRORS ) %]
25
                <div class="dialog alert">
26
                <div class="dialog alert">
26
                    [% FOREACH ERROR IN ERRORS %]
27
                    [% FOREACH ERROR IN ERRORS %]
27
                        [% IF ( ERROR.NOTKPZ ) %]<li><b>The upload file does not appear to be a kpz file.  The extension is not '.kpz'.</b></li>
28
                        [% IF ( ERROR.NOTKPZ ) %]<li><b>[% t('The upload file does not appear to be a kpz file.') %]  [% t('The extension is not \'.kpz\'.') %]</b></li>
28
                        [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><b>This script is not able to create/write to the necessary temporary directory.</b></li>
29
                        [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><b>[% t('This script is not able to create/write to the necessary temporary directory.') %]</b></li>
29
                        [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><b>The upload file appears to be empty.</b></li>
30
                        [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><b>[% t('The upload file appears to be empty.') %]</b></li>
30
                        [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] failed to unpack.<br />Please verify the integrity of the zip file and retry.</b></li>
31
                        [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] [% t('failed to unpack.') %]<br />[% t('Please verify the integrity of the zip file and retry.') %]</b></li>
31
                        [% ELSIF ( ERROR.NOWRITEPLUGINS ) %]<li><b>Cannot unpack file to the plugins directory.<br />Please verify that the Apache user can write to the plugins directory.</b></li>
32
                        [% ELSIF ( ERROR.NOWRITEPLUGINS ) %]<li><b>[% t('Cannot unpack file to the plugins directory.') %]<br />[% t('Please verify that the Apache user can write to the plugins directory.') %]</b></li>
32
                        [% ELSE %]<li><b>[% ERROR.CORERR %] An unknown error has occurred.<br />Please review the error log for more details.</b></li>[% END %]
33
                        [% ELSE %]<li><b>[% ERROR.CORERR %] [% t('An unknown error has occurred.') %]<br />[% t('Please review the error log for more details.') %]</b></li>[% END %]
33
                    [% END %]
34
                    [% END %]
34
                </div>
35
                </div>
35
                [% END %]
36
                [% END %]
36
                <form method="post" action="/cgi-bin/koha/plugins/plugins-upload.pl" enctype="multipart/form-data">
37
                <form method="post" action="/cgi-bin/koha/plugins/plugins-upload.pl" enctype="multipart/form-data">
37
                    <fieldset class="brief">
38
                    <fieldset class="brief">
38
                         <div class="hint"><b>NOTE:</b> Only KPZ file format is supported.</div>
39
                         <div class="hint"><b>[% t('NOTE:') %]</b> [% t('Only KPZ file format is supported.') %]</div>
39
                        <ol>
40
                        <ol>
40
                            <li>
41
                            <li>
41
                                <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
42
                                <label for="uploadfile">[% t('Select the file to upload:') %] </label><input type="file" id="uploadfile" name="uploadfile" />
42
                            </li>
43
                            </li>
43
                        </ol>
44
                        </ol>
44
                    </fieldset>
45
                    </fieldset>
45
- 

Return to bug 20988