Bug 19651: SIP/ILS/Item misses title and author
authorStefan Berndtsson <stefan.berndtsson@ub.gu.se>
Thu, 23 Nov 2017 13:43:18 +0000 (14:43 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 26 Nov 2017 15:59:31 +0000 (12:59 -0300)
Signed-off-by: Benjamin Rokseth <bensinober@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended $item->biblio by $biblio.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/SIP/ILS/Item.pm

index 84e7411..240e199 100644 (file)
@@ -102,6 +102,8 @@ sub new {
     $self->{hold_queue} = $holds;
     $self->{hold_shelf}    = [( grep {   defined $_->{found}  and $_->{found} eq 'W' } @{$self->{hold_queue}} )];
     $self->{pending_queue} = [( grep {(! defined $_->{found}) or  $_->{found} ne 'W' } @{$self->{hold_queue}} )];
+    $self->{title} = $biblio->title;
+    $self->{author} = $biblio->author;
     bless $self, $type;
 
     syslog( "LOG_DEBUG", "new ILS::Item('%s'): found with title '%s'",