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 $expdate = C4::Context->preference('ReserveExpiration') ? $params->{expiration_date} : undef; |
188 |
my $expdate = $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 = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' }) |
200 |
$resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' }) |
197 |
or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' }); |
201 |
or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' }); |
198 |
|
202 |
|