Bug 3697 Return due date (SIP Field AH) in item info
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 9 Oct 2009 14:32:46 +0000 (15:32 +0100)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 8 Feb 2010 15:13:43 +0000 (10:13 -0500)
Although the due date of an on loan item was being retrieved
the appropriate field in the Item object was not set
causing the due date not to be returned in the item
information response

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/SIP/ILS/Item.pm

index 4ddb344..ac4d50a 100644 (file)
@@ -112,6 +112,7 @@ sub new {
        $item->{hold_queue} = [ sort priority_sort @$arrayref ];
        $item->{hold_shelf}    = [( grep {   defined $_->{found}  and $_->{found} eq 'W' } @{$item->{hold_queue}} )];
        $item->{pending_queue} = [( grep {(! defined $_->{found}) or  $_->{found} ne 'W' } @{$item->{hold_queue}} )];
+    $item->{due_date} = $issue->{date_due};
        $self = $item;
        bless $self, $type;