From: Liam Whalen Date: Wed, 13 May 2015 17:03:48 +0000 (-0700) Subject: LP#1189989 Reworked conflicts from LP patch X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=92a106afe8d056356aeed1322eea18d2901902fe;p=working%2FEvergreen.git LP#1189989 Reworked conflicts from LP patch A patch is available for this bug on LP, but it has conflicts. This commit fixes those conflicts. Signed-off-by: Liam Whalen --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index 97364ed746..70cb76fadf 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -1219,6 +1219,11 @@ sub attempt_hold_placement { 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. @@ -1237,7 +1242,9 @@ sub attempt_hold_placement { 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 ); diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 467e02b6e6..00ece105ba 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -167,6 +167,14 @@ [% END %] +
+ [% l('Suspend This Hold?') %] +
+
+ [% l('If suspended, activate on') %] + + [% l('Enter date in MM/DD/YYYY format') %] +