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

(-)a/circ/pendingreserves.pl (-7 / +14 lines)
Lines 300-313 foreach my $bibnum ( @biblionumbers ){ Link Here
300
    push @holds_info, $hold_info;
300
    push @holds_info, $hold_info;
301
}
301
}
302
302
303
my $cancel_notify_templates = Koha::Notice::Templates->search({ module => 'reserves', code => 'HOLD_CANCELLATION' });
304
my $cancel_notice_branches;
305
while ( my $notice = $cancel_notify_templates->next ) {
306
    $cancel_notice_branches->{$notice->branchcode} = 1;
307
}
308
303
$template->param(
309
$template->param(
304
    todaysdate          => $today,
310
    cancel_notice_branches => $cancel_notice_branches,
305
    from                => $startdate,
311
    todaysdate             => $today,
306
    to                  => $enddate,
312
    from                   => $startdate,
307
    holds_info          => \@holds_info,
313
    to                     => $enddate,
308
    HoldsToPullStartDate => C4::Context->preference('HoldsToPullStartDate') || PULL_INTERVAL,
314
    holds_info             => \@holds_info,
309
    HoldsToPullEndDate  => C4::Context->preference('ConfirmFutureHolds') || 0,
315
    HoldsToPullStartDate   => C4::Context->preference('HoldsToPullStartDate') || PULL_INTERVAL,
310
    messages            => \@messages,
316
    messages               => \@messages,
317
    HoldsToPullEndDate     => C4::Context->preference('ConfirmFutureHolds') || 0,
311
);
318
);
312
319
313
output_html_with_http_headers $input, $cookie, $template->output;
320
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (-3 / +8 lines)
Lines 221-228 Link Here
221
                            [% END %]
221
                            [% END %]
222
                        </select>
222
                        </select>
223
223
224
                        <input type="checkbox" name="cancellation-notify-patron" id="cancellation-notify-patron" value="1" checked/>
224
                        [% IF cancel_notice_branches.size %]
225
                        <label for="cancellation-notify-patron">Notify patron</label>
225
                            [% SET bc = hold.patron.branchcode %]
226
                            [% SET all_bc = "" %]
227
                            [% IF cancel_notice_branches.$bc || cancel_notice_branches.$all_bc %]
228
                                <input type="checkbox" name="cancellation-notify-patron" id="cancellation-notify-patron" value="1" checked/>
229
                                <label for="cancellation-notify-patron">Notify patron</label>
230
                            [% END %]
231
                        [% END %]
226
                    </div>
232
                    </div>
227
                [% END %]
233
                [% END %]
228
234
229
- 

Return to bug 26282