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