Bug 14544: Fixes regression: display author and dateadded on the list view [intranet]
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Oct 2015 10:02:33 +0000 (11:02 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 5 Nov 2015 13:00:31 +0000 (10:00 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
virtualshelves/shelves.pl

index 5a82e0b..3dfa211 100755 (executable)
@@ -226,6 +226,8 @@ if ( $op eq 'view' ) {
 
                 my $marcflavour = C4::Context->preference("marcflavour");
                 my $itemtypeinfo = getitemtypeinfo( $content->biblionumber->biblioitems->first->itemtype, 'intranet' );
+                $this_item->{author}            = $content->biblionumber->author;
+                $this_item->{dateadded}         = $content->dateadded;
                 $this_item->{imageurl}          = $itemtypeinfo->{imageurl};
                 $this_item->{description}       = $itemtypeinfo->{description};
                 $this_item->{notforloan}        = $itemtypeinfo->{notforloan};