7b9b36bd2e
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
39 lines
631 B
Perl
39 lines
631 B
Perl
#
|
|
# status of a Hold transaction
|
|
|
|
package ILS::Transaction::Hold;
|
|
|
|
use warnings;
|
|
use strict;
|
|
|
|
use ILS;
|
|
use ILS::Transaction;
|
|
|
|
our @ISA = qw(ILS::Transaction);
|
|
|
|
my %fields = (
|
|
expiration_date => 0,
|
|
pickup_location => undef,
|
|
);
|
|
|
|
sub new {
|
|
my $class = shift;;
|
|
my $self = $class->SUPER::new();
|
|
my $element;
|
|
|
|
foreach $element (keys %fields) {
|
|
$self->{_permitted}->{$element} = $fields{$element};
|
|
}
|
|
|
|
@{$self}{keys %fields} = values %fields;
|
|
|
|
return bless $self, $class;
|
|
}
|
|
|
|
sub queue_position {
|
|
my $self = shift;
|
|
|
|
return $self->item->hold_queue_position($self->patron->id);
|
|
}
|
|
|
|
1;
|