Koha/C4/SIP/ILS/Transaction/Hold.pm
Ryan Higgins 7b9b36bd2e adding openncip / opensip SIP2 service
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-06 06:32:53 -06:00

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;