Lines 186-192
sub AddReserve {
Link Here
|
186 |
my $biblionumber = $params->{biblionumber}; |
186 |
my $biblionumber = $params->{biblionumber}; |
187 |
my $priority = $params->{priority}; |
187 |
my $priority = $params->{priority}; |
188 |
my $resdate = $params->{reservation_date}; |
188 |
my $resdate = $params->{reservation_date}; |
189 |
my $patron_expiration_date = C4::Context->preference('ReserveExpiration') ? $params->{expiration_date} : undef; |
189 |
my $patron_expiration_date = $params->{expiration_date}; |
190 |
my $notes = $params->{notes}; |
190 |
my $notes = $params->{notes}; |
191 |
my $title = $params->{title}; |
191 |
my $title = $params->{title}; |
192 |
my $checkitem = $params->{itemnumber}; |
192 |
my $checkitem = $params->{itemnumber}; |
Lines 195-200
sub AddReserve {
Link Here
|
195 |
my $non_priority = $params->{non_priority}; |
195 |
my $non_priority = $params->{non_priority}; |
196 |
my $item_group_id = $params->{item_group_id}; |
196 |
my $item_group_id = $params->{item_group_id}; |
197 |
|
197 |
|
|
|
198 |
if ( !C4::Context->preference('ReserveExpiration') and $params->{expiration_date} ) { |
199 |
Koha::Exceptions::Hold::ExpirationDateDisabled->throw; |
200 |
} |
201 |
|
198 |
$resdate ||= dt_from_string; |
202 |
$resdate ||= dt_from_string; |
199 |
|
203 |
|
200 |
# if we have an item selectionned, and the pickup branch is the same as the holdingbranch |
204 |
# if we have an item selectionned, and the pickup branch is the same as the holdingbranch |