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