Lines 801-817
sub old_holds {
Link Here
|
801 |
|
801 |
|
802 |
=head3 current_holds |
802 |
=head3 current_holds |
803 |
|
803 |
|
804 |
my $holds = $biblio->current_holds |
804 |
my $holds = $biblio->current_holds |
805 |
|
805 |
|
806 |
Return the holds placed on this bibliographic record. |
806 |
Return the holds placed on this bibliographic record. |
807 |
It does not include future holds. |
807 |
Respects the lookahead days in ConfirmFutureHolds pref. |
808 |
|
808 |
|
809 |
=cut |
809 |
=cut |
810 |
|
810 |
|
811 |
sub current_holds { |
811 |
sub current_holds { |
812 |
my ($self) = @_; |
812 |
my ($self) = @_; |
813 |
my $dtf = Koha::Database->new->schema->storage->datetime_parser; |
813 |
my $dtf = Koha::Database->new->schema->storage->datetime_parser; |
814 |
return $self->holds( { reservedate => { '<=' => $dtf->format_date(dt_from_string) } } ); |
814 |
my $dt = dt_from_string()->add( days => C4::Context->preference('ConfirmFutureHolds') || 0 ); |
|
|
815 |
return $self->holds( { reservedate => { '<=' => $dtf->format_date($dt) } } ); |
815 |
} |
816 |
} |
816 |
|
817 |
|
817 |
=head3 biblioitem |
818 |
=head3 biblioitem |
818 |
- |
|
|