From 0bd96b0ade4b6a21c05be355d0886287f90db4b8 Mon Sep 17 00:00:00 2001 From: djfiander Date: Sat, 15 Apr 2006 21:10:37 +0000 Subject: [PATCH] Stub code to handle status returned by a "hold" transaction. --- ILS/Transaction/Hold.pm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ILS/Transaction/Hold.pm 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; -- 2.11.0