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

(-)a/circ/pendingreserves.pl (-7 / +14 lines)
Lines 302-315 foreach my $bibnum ( @biblionumbers ){ Link Here
302
    push @holds_info, $hold_info;
302
    push @holds_info, $hold_info;
303
}
303
}
304
304
305
my $cancel_notify_templates = Koha::Notice::Templates->search({ module => 'reserves', code => 'HOLD_CANCELLATION' });
306
my $cancel_notice_branches;
307
while ( my $notice = $cancel_notify_templates->next ) {
308
    $cancel_notice_branches->{$notice->branchcode} = 1;
309
}
310
305
$template->param(
311
$template->param(
306
    todaysdate          => $today,
312
    cancel_notice_branches => $cancel_notice_branches,
307
    from                => $startdate,
313
    todaysdate             => $today,
308
    to                  => $enddate,
314
    from                   => $startdate,
309
    holds_info          => \@holds_info,
315
    to                     => $enddate,
310
    HoldsToPullStartDate => C4::Context->preference('HoldsToPullStartDate') || PULL_INTERVAL,
316
    holds_info             => \@holds_info,
311
    HoldsToPullEndDate  => C4::Context->preference('ConfirmFutureHolds') || 0,
317
    HoldsToPullStartDate   => C4::Context->preference('HoldsToPullStartDate') || PULL_INTERVAL,
312
    messages            => \@messages,
318
    messages               => \@messages,
319
    HoldsToPullEndDate     => C4::Context->preference('ConfirmFutureHolds') || 0,
313
);
320
);
314
321
315
output_html_with_http_headers $input, $cookie, $template->output;
322
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (-3 / +8 lines)
Lines 199-206 Link Here
199
                            [% END %]
199
                            [% END %]
200
                        </select>
200
                        </select>
201
201
202
                        <input type="checkbox" name="cancellation-notify-patron" id="cancellation-notify-patron" value="1" checked/>
202
                        [% IF cancel_notice_branches.size %]
203
                        <label for="cancellation-notify-patron">Notify patron</label>
203
                            [% SET bc = hold.patron.branchcode %]
204
                            [% SET all_bc = "" %]
205
                            [% IF cancel_notice_branches.$bc || cancel_notice_branches.$all_bc %]
206
                                <input type="checkbox" name="cancellation-notify-patron" id="cancellation-notify-patron" value="1" checked/>
207
                                <label for="cancellation-notify-patron">Notify patron</label>
208
                            [% END %]
209
                        [% END %]
204
                    </div>
210
                    </div>
205
                [% END %]
211
                [% END %]
206
212
207
- 

Return to bug 26282