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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +7 lines)
Lines 181-187 Link Here
181
                <div class="row">
181
                <div class="row">
182
                    <div class="col-sm-12">
182
                    <div class="col-sm-12">
183
                        [%# Following statement must be in one line for translatability %]
183
                        [%# Following statement must be in one line for translatability %]
184
                        [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_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('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && pending_biblio_tickets && CAN_user_editcatalogue_edit_catalogue ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs || new_curbside_pickups.count %]
184
                        [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_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('OpacCatalogConcerns') || Koha.Preference('CatalogConcerns') ) && pending_biblio_tickets && CAN_user_editcatalogue_edit_catalogue ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs || new_curbside_pickups.count || ( holds_to_pull && CAN_user_circulate_circulate_remaining_permissions ) %]
185
                            <div id="area-pending" class="page-section">
185
                            <div id="area-pending" class="page-section">
186
                                [% IF pending_article_requests %]
186
                                [% IF pending_article_requests %]
187
                                <div class="pending-info" id="article_requests_pending">
187
                                <div class="pending-info" id="article_requests_pending">
Lines 270-275 Link Here
270
                                    </div>
270
                                    </div>
271
                                [% END %]
271
                                [% END %]
272
272
273
                                [% IF holds_to_pull && CAN_user_circulate_circulate_remaining_permissions %]
274
                                    <div class="pending-info" id="holds_to_pull">
275
                                        <a href="/cgi-bin/koha/circ/pendingreserves.pl">New holds to pull</a>:
276
                                        <span class="pending-number-link">[% holds_to_pull | html %]</span>
277
                                    </div>
278
                                [% END %]
273
                            </div>
279
                            </div>
274
280
275
                        [% END %]
281
                        [% END %]
(-)a/mainpage.pl (-2 / +5 lines)
Lines 38-43 use Koha::BackgroundJobs; Link Here
38
use Koha::CurbsidePickups;
38
use Koha::CurbsidePickups;
39
use Koha::Tickets;
39
use Koha::Tickets;
40
use Koha::Token;
40
use Koha::Token;
41
use Koha::Holds;
41
42
42
my $query = CGI->new;
43
my $query = CGI->new;
43
44
Lines 127-132 unless ( $logged_in_user->has_permission( { parameters => 'manage_background_job Link Here
127
    $template->param( already_ran_jobs => $already_ran_jobs );
128
    $template->param( already_ran_jobs => $already_ran_jobs );
128
}
129
}
129
130
131
my $holds_to_pull = Koha::Holds->search( found => undef )->count;
132
130
if ( C4::Context->preference('CurbsidePickup') ) {
133
if ( C4::Context->preference('CurbsidePickup') ) {
131
    $template->param(
134
    $template->param(
132
        new_curbside_pickups => Koha::CurbsidePickups->search(
135
        new_curbside_pickups => Koha::CurbsidePickups->search(
Lines 143-149 $template->param( Link Here
143
    pending_borrower_modifications => $pending_borrower_modifications,
146
    pending_borrower_modifications => $pending_borrower_modifications,
144
    pending_discharge_requests     => $pending_discharge_requests,
147
    pending_discharge_requests     => $pending_discharge_requests,
145
    pending_article_requests       => $pending_article_requests,
148
    pending_article_requests       => $pending_article_requests,
146
    pending_problem_reports        => $pending_problem_reports
149
    pending_problem_reports        => $pending_problem_reports,
150
    holds_to_pull                  => $holds_to_pull,
147
);
151
);
148
152
149
output_html_with_http_headers $query, $cookie, $template->output;
153
output_html_with_http_headers $query, $cookie, $template->output;
150
- 

Return to bug 36063