Lines 54-69
if ( $reserve_id && $borrowernumber ) {
Link Here
|
54 |
exit; |
54 |
exit; |
55 |
} |
55 |
} |
56 |
|
56 |
|
57 |
if ($cancellation_request) { |
57 |
if ( $cancellation_request ) { |
58 |
$hold->add_cancellation_request |
58 |
$hold->add_cancellation_request |
59 |
if $hold->cancellation_requestable_from_opac; |
59 |
if $hold->cancellation_requestable_from_opac; |
60 |
} |
60 |
} |
61 |
else { |
61 |
elsif ( $new_pickup_location ) { |
62 |
$hold->cancel |
|
|
63 |
if $hold->is_cancelable_from_opac; |
64 |
} |
65 |
|
66 |
if ( $new_pickup_location ) { |
67 |
|
62 |
|
68 |
if ( C4::Context->preference('OPACInTransitHoldPickupLocationChange') ) { |
63 |
if ( C4::Context->preference('OPACInTransitHoldPickupLocationChange') ) { |
69 |
$hold->set_pickup_location({ library_id => $new_pickup_location }); |
64 |
$hold->set_pickup_location({ library_id => $new_pickup_location }); |
Lines 74-79
if ( $reserve_id && $borrowernumber ) {
Link Here
|
74 |
exit; |
69 |
exit; |
75 |
} |
70 |
} |
76 |
} |
71 |
} |
|
|
72 |
elsif ( $hold->is_cancelable_from_opac ) { |
73 |
$hold->cancel; |
74 |
} |
77 |
} |
75 |
} |
78 |
|
76 |
|
79 |
print $query->redirect("/cgi-bin/koha/opac-user.pl#opac-user-holds"); |
77 |
print $query->redirect("/cgi-bin/koha/opac-user.pl#opac-user-holds"); |
80 |
- |
|
|