|
Lines 70-75
if ( $op eq 'cud-placerequest' && $patron ) {
Link Here
|
| 70 |
my %failed_holds; |
70 |
my %failed_holds; |
| 71 |
my @successful_hold_ids; |
71 |
my @successful_hold_ids; |
| 72 |
|
72 |
|
|
|
73 |
my @successful_biblionumbers; |
| 73 |
foreach my $biblionumber ( keys %bibinfos ) { |
74 |
foreach my $biblionumber ( keys %bibinfos ) { |
| 74 |
|
75 |
|
| 75 |
my $can_override = C4::Context->preference('AllowHoldPolicyOverride'); |
76 |
my $can_override = C4::Context->preference('AllowHoldPolicyOverride'); |
|
Lines 108-113
if ( $op eq 'cud-placerequest' && $patron ) {
Link Here
|
| 108 |
non_priority => $non_priority, |
109 |
non_priority => $non_priority, |
| 109 |
} |
110 |
} |
| 110 |
); |
111 |
); |
|
|
112 |
push @successful_biblionumbers, $biblionumber; |
| 111 |
|
113 |
|
| 112 |
push @successful_hold_ids, $reserve_id; |
114 |
push @successful_hold_ids, $reserve_id; |
| 113 |
$hold_priority++; |
115 |
$hold_priority++; |
|
Lines 138-143
if ( $op eq 'cud-placerequest' && $patron ) {
Link Here
|
| 138 |
} |
140 |
} |
| 139 |
); |
141 |
); |
| 140 |
push @successful_hold_ids, $reserve_id; |
142 |
push @successful_hold_ids, $reserve_id; |
|
|
143 |
push @successful_biblionumbers, $biblionumber; |
| 141 |
} |
144 |
} |
| 142 |
} else { |
145 |
} else { |
| 143 |
|
146 |
|
|
Lines 162-167
if ( $op eq 'cud-placerequest' && $patron ) {
Link Here
|
| 162 |
} |
165 |
} |
| 163 |
); |
166 |
); |
| 164 |
push @successful_hold_ids, $reserve_id; |
167 |
push @successful_hold_ids, $reserve_id; |
|
|
168 |
push @successful_biblionumbers, $biblionumber; |
| 165 |
} |
169 |
} |
| 166 |
} |
170 |
} |
| 167 |
} |
171 |
} |
|
Lines 177-182
if ( $op eq 'cud-placerequest' && $patron ) {
Link Here
|
| 177 |
push( @failed_hold_msgs, $msg ); |
181 |
push( @failed_hold_msgs, $msg ); |
| 178 |
} |
182 |
} |
| 179 |
$redirect_url->query_form( biblionumber => [@biblionumbers], failed_holds => \@failed_hold_msgs ); |
183 |
$redirect_url->query_form( biblionumber => [@biblionumbers], failed_holds => \@failed_hold_msgs ); |
|
|
184 |
$redirect_url .= "&successful_holds=" . join( '|', @successful_biblionumbers ); |
| 180 |
print $input->redirect($redirect_url); |
185 |
print $input->redirect($redirect_url); |
| 181 |
} elsif ( $borrowernumber eq '' ) { |
186 |
} elsif ( $borrowernumber eq '' ) { |
| 182 |
print $input->header(); |
187 |
print $input->header(); |