A patch is available for this bug on LP, but it has conflicts. This
commit fixes those conflicts.
Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
my @create_targets = map {$_->{target_id}} (grep { !$_->{hold_failed} } @hold_data);
+ my $thaw_date;
+ if ($cgi->param('hold_suspend') && $cgi->param('thaw_date') =~ m:^(\d{2})/(\d{2})/(\d{4})$:){
+ $thaw_date = "$3-$1-$2";
+ }
+
if(@create_targets) {
# holdable formats may be different for each MR hold.
patronid => $usr,
pickup_lib => $pickup_lib,
hold_type => $hold_type,
- holdable_formats_map => $holdable_formats
+ holdable_formats_map => $holdable_formats,
+ frozen => $cgi->param('hold_suspend'),
+ thaw_date => $thaw_date
}),
\@create_targets
);
</blockquote>
[% END %]
</blockquote>
+ <blockquote>
+ <input type="checkbox" name="hold_suspend" value="t"/>[% l('Suspend This Hold?') %]
+ </blockquote>
+ <blockquote>
+ [% l('If suspended, activate on') %]
+ <input type="text" name="thaw_date" value="[% thaw_date | html %]" />
+ <em>[% l('Enter date in MM/DD/YYYY format') %]</em>
+ </blockquote>
</p>
<input id="place_hold_submit" type="submit" name="submit"
value="[% l('Submit') %]" title="[% l('Submit') %]"