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

(-)a/C4/Auth.pm (-1 / +2 lines)
Lines 523-529 sub get_template_and_user { Link Here
523
        $template->param(
523
        $template->param(
524
            AmazonCoverImages                                                          => C4::Context->preference("AmazonCoverImages"),
524
            AmazonCoverImages                                                          => C4::Context->preference("AmazonCoverImages"),
525
            AutoLocation                                                               => C4::Context->preference("AutoLocation"),
525
            AutoLocation                                                               => C4::Context->preference("AutoLocation"),
526
            PatronAutoComplete                                                       => C4::Context->preference("PatronAutoComplete"),
526
            PatronAutoComplete                                                         => C4::Context->preference("PatronAutoComplete"),
527
            FRBRizeEditions                                                            => C4::Context->preference("FRBRizeEditions"),
527
            FRBRizeEditions                                                            => C4::Context->preference("FRBRizeEditions"),
528
            IndependentBranches                                                        => C4::Context->preference("IndependentBranches"),
528
            IndependentBranches                                                        => C4::Context->preference("IndependentBranches"),
529
            IntranetNav                                                                => C4::Context->preference("IntranetNav"),
529
            IntranetNav                                                                => C4::Context->preference("IntranetNav"),
Lines 548-553 sub get_template_and_user { Link Here
548
            UseCourseReserves                                                          => C4::Context->preference("UseCourseReserves"),
548
            UseCourseReserves                                                          => C4::Context->preference("UseCourseReserves"),
549
            useDischarge                                                               => C4::Context->preference('useDischarge'),
549
            useDischarge                                                               => C4::Context->preference('useDischarge'),
550
            pending_checkout_notes                                                     => Koha::Checkouts->search({ noteseen => 0 }),
550
            pending_checkout_notes                                                     => Koha::Checkouts->search({ noteseen => 0 }),
551
            plugins_enabled                                                            => C4::Context->config("enable_plugins"),
551
        );
552
        );
552
    }
553
    }
553
    else {
554
    else {
(-)a/admin/admin-home.pl (-2 lines)
Lines 24-30 use Koha::Plugins; Link Here
24
24
25
my $query = CGI->new;
25
my $query = CGI->new;
26
26
27
my $plugins_enabled = C4::Context->config("enable_plugins");
28
my $mana_url        = C4::Context->config('mana_config');
27
my $mana_url        = C4::Context->config('mana_config');
29
28
30
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
29
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Lines 36-42 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
36
    }
35
    }
37
);
36
);
38
37
39
$template->param( plugins_enabled => $plugins_enabled, );
40
$template->param( mana_url        => $mana_url, );
38
$template->param( mana_url        => $mana_url, );
41
39
42
output_html_with_http_headers $query, $cookie, $template->output;
40
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc (-14 / +12 lines)
Lines 71-76 Link Here
71
        </ul>
71
        </ul>
72
    [% END %]
72
    [% END %]
73
73
74
    [% IF CAN_user_plugins && plugins_enabled %]
75
      <h5>Plugins</h5>
76
        <ul>
77
            <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a></li>
78
        </ul>
79
    [% END %]
80
74
    [% IF CAN_user_parameters_manage_background_jobs %]
81
    [% IF CAN_user_parameters_manage_background_jobs %]
75
        <h5>Background jobs</h5>
82
        <h5>Background jobs</h5>
76
        <ul>
83
        <ul>
Lines 78-84 Link Here
78
        </ul>
85
        </ul>
79
    [% END %]
86
    [% END %]
80
87
81
    [% IF ( CAN_user_parameters_manage_marc_frameworks || CAN_user_parameters_manage_classifications || CAN_user_parameters_manage_matching_rules || CAN_user_parameters_manage_oai_sets || CAN_user_parameters_manage_item_search_fields || CAN_user_parameters_manage_search_engine_config || CAN_user_parameters_manage_marc_overlay_rules ) %]
88
    [% IF ( CAN_user_parameters_manage_marc_frameworks || CAN_user_parameters_manage_classifications || CAN_user_parameters_manage_matching_rules || CAN_user_parameters_manage_oai_sets || CAN_user_parameters_manage_item_search_fields || CAN_user_parameters_manage_search_engine_config || CAN_user_parameters_manage_marc_overlay_rules || CAN_user_parameters_manage_marc_overlay_rules ) %]
82
        <h5>Catalog</h5>
89
        <h5>Catalog</h5>
83
        <ul>
90
        <ul>
84
            [% IF ( CAN_user_parameters_manage_marc_frameworks ) %]
91
            [% IF ( CAN_user_parameters_manage_marc_frameworks ) %]
Lines 90-100 Link Here
90
                <li><a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a></li>
97
                <li><a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a></li>
91
            [% END %]
98
            [% END %]
92
            [% IF ( CAN_user_parameters_manage_classifications ) %]
99
            [% IF ( CAN_user_parameters_manage_classifications ) %]
93
                <li><a href="/cgi-bin/koha/admin/classsources.pl">Classification sources</a></li>
100
                <li><a href="/cgi-bin/koha/admin/classsources.pl">Classification configuration</a></li>
94
            [% END %]
101
            [% END %]
95
            [% IF ( CAN_user_parameters_manage_matching_rules ) %]
102
            [% IF ( CAN_user_parameters_manage_matching_rules ) %]
96
                <li><a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a></li>
103
                <li><a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a></li>
97
            [% END %]
104
            [% END %]
105
            [% IF ( CAN_user_parameters_manage_marc_overlay_rules ) %]
106
                <li><a href="/cgi-bin/koha/admin/marc-overlay-rules.pl">Record overlay rules</a></li>
107
            [% END %]
98
            [% IF ( CAN_user_parameters_manage_oai_sets ) %]
108
            [% IF ( CAN_user_parameters_manage_oai_sets ) %]
99
                <li><a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a></li>
109
                <li><a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a></li>
100
            [% END %]
110
            [% END %]
Lines 104-118 Link Here
104
            [% IF ( CAN_user_parameters_manage_search_engine_config ) %]
114
            [% IF ( CAN_user_parameters_manage_search_engine_config ) %]
105
                <li><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl">Search engine configuration (Elasticsearch)</a></li>
115
                <li><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl">Search engine configuration (Elasticsearch)</a></li>
106
            [% END %]
116
            [% END %]
107
            [% IF ( CAN_user_parameters_manage_marc_overlay_rules ) %]
108
                <li><a href="/cgi-bin/koha/admin/marc-overlay-rules.pl">MARC overlay rules</a></li>
109
            [% END %]
110
        </ul>
117
        </ul>
111
    [% END %]
118
    [% END %]
112
119
113
    [% IF ( CAN_user_acquisition_currencies_manage || CAN_user_acquisition_period_manage || CAN_user_acquisition_budget_manage || ( Koha.Preference('EDIFACT') && CAN_user_acquisition_edi_manage ) ) %]
120
    [% IF ( CAN_user_acquisition_currencies_manage || CAN_user_acquisition_period_manage || CAN_user_acquisition_budget_manage || ( Koha.Preference('EDIFACT') && CAN_user_acquisition_edi_manage ) ) %]
114
        <h5>Acquisition parameters</h5>
121
        <h5>Acquisition parameters</h5>
115
116
        <ul>
122
        <ul>
117
            [% IF ( CAN_user_acquisition_currencies_manage ) %]
123
            [% IF ( CAN_user_acquisition_currencies_manage ) %]
118
                <li><a href="/cgi-bin/koha/admin/currency.pl">Currencies and exchange rates</a></li>
124
                <li><a href="/cgi-bin/koha/admin/currency.pl">Currencies and exchange rates</a></li>
Lines 130-142 Link Here
130
        </ul>
136
        </ul>
131
    [% END %]
137
    [% END %]
132
138
133
    [% IF CAN_user_plugins && plugins_enabled %]
134
        <h5>Plugins</h5>
135
        <ul>
136
            <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">Manage plugins</a></li>
137
        </ul>
138
    [% END %]
139
140
    [% IF ( CAN_user_parameters_manage_smtp_servers || CAN_user_parameters_manage_search_targets || CAN_user_parameters_manage_didyoumean || CAN_user_parameters_manage_column_config || CAN_user_parameters_manage_audio_alerts || ( CAN_user_parameters_manage_sms_providers && Koha.Preference('SMSSendDriver') == 'Email' ) || CAN_user_parameters_manage_usage_stats || CAN_user_parameters_manage_additional_fields || ( Koha.Preference('EnableAdvancedCatalogingEditor') && CAN_user_parameters_manage_keyboard_shortcuts ) ) %]
139
    [% IF ( CAN_user_parameters_manage_smtp_servers || CAN_user_parameters_manage_search_targets || CAN_user_parameters_manage_didyoumean || CAN_user_parameters_manage_column_config || CAN_user_parameters_manage_audio_alerts || ( CAN_user_parameters_manage_sms_providers && Koha.Preference('SMSSendDriver') == 'Email' ) || CAN_user_parameters_manage_usage_stats || CAN_user_parameters_manage_additional_fields || ( Koha.Preference('EnableAdvancedCatalogingEditor') && CAN_user_parameters_manage_keyboard_shortcuts ) ) %]
141
        <h5>Additional parameters</h5>
140
        <h5>Additional parameters</h5>
142
        <ul>
141
        <ul>
143
- 

Return to bug 31401