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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc (+3 lines)
Lines 150-155 Link Here
150
            [% IF ( Koha.Preference('EnableAdvancedCatalogingEditor') && CAN_user_parameters_manage_keyboard_shortcuts ) %]
150
            [% IF ( Koha.Preference('EnableAdvancedCatalogingEditor') && CAN_user_parameters_manage_keyboard_shortcuts ) %]
151
                <li><a href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Keyboard shortcuts</a></li>
151
                <li><a href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Keyboard shortcuts</a></li>
152
            [% END %]
152
            [% END %]
153
            [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports ) %]
154
                <li><a href="/cgi-bin/koha/admin/problem-reports.pl">OPAC problem reports</a></li>
155
            [% END %]
153
        </ul>
156
        </ul>
154
    [% END %]
157
    [% END %]
155
</div>
158
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt (+4 lines)
Lines 236-241 Link Here
236
                        <dt><a href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Keyboard shortcuts</a></dt>
236
                        <dt><a href="/cgi-bin/koha/admin/adveditorshortcuts.pl">Keyboard shortcuts</a></dt>
237
                        <dd>Define which keys trigger actions in the advanced cataloging editor</dd>
237
                        <dd>Define which keys trigger actions in the advanced cataloging editor</dd>
238
                    [% END %]
238
                    [% END %]
239
                    [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports ) %]
240
                        <dt><a href="/cgi-bin/koha/admin/problem-reports.pl">OPAC problem reports</a></dt>
241
                        <dd>Manage OPAC problem reports submitted by patrons</dd>
242
                    [% END %]
239
                </dl>
243
                </dl>
240
            [% END %]
244
            [% END %]
241
            </div>
245
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +8 lines)
Lines 134-140 Link Here
134
                <div class="row">
134
                <div class="row">
135
                    <div class="col-sm-12">
135
                    <div class="col-sm-12">
136
                        [%# Following statement must be in one line for translatability %]
136
                        [%# Following statement must be in one line for translatability %]
137
                        [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_acquisition && pendingsuggestions ) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests) || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) %]
137
                        [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_acquisition && pendingsuggestions ) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports ) %]
138
                            <div id="area-pending">
138
                            <div id="area-pending">
139
                                [% IF pending_article_requests %]
139
                                [% IF pending_article_requests %]
140
                                <div class="pending-info" id="article_requests_pending">
140
                                <div class="pending-info" id="article_requests_pending">
Lines 188-193 Link Here
188
                                    </div>
188
                                    </div>
189
                                [% END %]
189
                                [% END %]
190
190
191
                                [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports ) %]
192
                                    <div class="pending-info" id="problem_reports_pending">
193
                                        <a href="/cgi-bin/koha/admin/problem-reports.pl">OPAC problem reports pending</a>:
194
                                        <span class="pending-number-link">[% pending_problem_reports.count | html %]</span>
195
                                    </div>
196
                                [% END %]
197
191
                            </div>
198
                            </div>
192
199
193
                        [% END %]
200
                        [% END %]
(-)a/mainpage.pl (-1 / +3 lines)
Lines 31-36 use Koha::Patron::Modifications; Link Here
31
use Koha::Patron::Discharge;
31
use Koha::Patron::Discharge;
32
use Koha::Reviews;
32
use Koha::Reviews;
33
use Koha::ArticleRequests;
33
use Koha::ArticleRequests;
34
use Koha::ProblemReports;
34
35
35
my $query = new CGI;
36
my $query = new CGI;
36
37
Lines 74-79 my $pending_article_requests = Koha::ArticleRequests->search_limited( Link Here
74
        $branch ? ( 'me.branchcode' => $branch ) : (),
75
        $branch ? ( 'me.branchcode' => $branch ) : (),
75
    }
76
    }
76
)->count;
77
)->count;
78
my $pending_problem_reports = Koha::ProblemReports->search({ status => 'N' });
77
79
78
$template->param(
80
$template->param(
79
    pendingcomments                => $pendingcomments,
81
    pendingcomments                => $pendingcomments,
Lines 82-87 $template->param( Link Here
82
    pending_borrower_modifications => $pending_borrower_modifications,
84
    pending_borrower_modifications => $pending_borrower_modifications,
83
    pending_discharge_requests     => $pending_discharge_requests,
85
    pending_discharge_requests     => $pending_discharge_requests,
84
    pending_article_requests       => $pending_article_requests,
86
    pending_article_requests       => $pending_article_requests,
87
    pending_problem_reports        => $pending_problem_reports
85
);
88
);
86
89
87
output_html_with_http_headers $query, $cookie, $template->output;
90
output_html_with_http_headers $query, $cookie, $template->output;
88
- 

Return to bug 4461