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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-4 / +9 lines)
Lines 206-216 Link Here
206
                                </div>
206
                                </div>
207
                                [% END %]
207
                                [% END %]
208
208
209
209
                                [% IF CAN_user_borrowers_edit_borrowers && pending_borrower_modifications %]
210
                                [% IF ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) %]
211
                                <div class="pending-info" id="patron_updates_pending">
210
                                <div class="pending-info" id="patron_updates_pending">
212
                                    <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
211
                                    Patrons requesting modifications:
213
                                    <span class="pending-number-link">[% pending_borrower_modifications | html %]</span>
212
                                    <a href="/cgi-bin/koha/members/members-update.pl">
213
                                        <span class="pending-number-link">[% Branches.GetLoggedInBranchname | html %]: [% pending_local_borrowermods | html %]</a>
214
                                    </a>
215
                                    /
216
                                    <a href="/cgi-bin/koha/members/members-update.pl">
217
                                        <span class="pending-number-link">All libraries: [% pending_borrower_modifications | html %]</a>
218
                                    </a>
214
                                </div>
219
                                </div>
215
                                [% END %]
220
                                [% END %]
216
221
(-)a/mainpage.pl (-1 / +3 lines)
Lines 93-98 if( C4::Context->only_my_library ){ Link Here
93
}
93
}
94
94
95
my $pending_borrower_modifications = Koha::Patron::Modifications->pending_count( $branch );
95
my $pending_borrower_modifications = Koha::Patron::Modifications->pending_count( $branch );
96
my $local_pendingmodifications_count = Koha::Patron::Modifications->pending_count( C4::Context->userenv()->{'branch'} );
97
96
my $pending_discharge_requests = Koha::Patron::Discharge::count({ pending => 1 });
98
my $pending_discharge_requests = Koha::Patron::Discharge::count({ pending => 1 });
97
my $pending_article_requests = Koha::ArticleRequests->search_limited(
99
my $pending_article_requests = Koha::ArticleRequests->search_limited(
98
    {
100
    {
Lines 112-117 $template->param( Link Here
112
    pendingcomments                => $pendingcomments,
114
    pendingcomments                => $pendingcomments,
113
    pendingtags                    => $pendingtags,
115
    pendingtags                    => $pendingtags,
114
    pending_borrower_modifications => $pending_borrower_modifications,
116
    pending_borrower_modifications => $pending_borrower_modifications,
117
    pending_local_borrowermods     => $local_pendingmodifications_count,
115
    pending_discharge_requests     => $pending_discharge_requests,
118
    pending_discharge_requests     => $pending_discharge_requests,
116
    pending_article_requests       => $pending_article_requests,
119
    pending_article_requests       => $pending_article_requests,
117
    pending_problem_reports        => $pending_problem_reports
120
    pending_problem_reports        => $pending_problem_reports
118
- 

Return to bug 30849