From: djfiander Date: Sat, 15 Apr 2006 21:10:37 +0000 (+0000) Subject: Stub code to handle status returned by a "hold" transaction. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0bd96b0ade4b6a21c05be355d0886287f90db4b8;p=working%2FSIPServer.git Stub code to handle status returned by a "hold" transaction. --- diff --git a/ILS/Transaction/Hold.pm b/ILS/Transaction/Hold.pm new file mode 100644 index 0000000..2f8291c --- /dev/null +++ b/ILS/Transaction/Hold.pm @@ -0,0 +1,33 @@ +# +# status of a Hold transaction + +package ILS::Transaction::Hold; + +use warnings; +use strict; + +use ILS; +use ILS::Transaction; + +our @ISA = qw(ILS::Transaction); + +# Most fields are handled by the Transaction superclass + +sub expiration_date { + my $self = shift; + + return $self->{expiration_date} || 0; +} + +sub queue_position { + my $self = shift; + + return $self->item->hold_queue_position($self->patron->id); +} + +sub pickup_location { + my $self = shift; + + return $self->{pickup_location}; +} +1;