Bug 16484 - Virtualshelves: Using no XSLTResultsDisplay breaks content display in...
authorNick Clemens <nick@bywatersolutions.com>
Tue, 10 May 2016 00:33:15 +0000 (20:33 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 23 May 2016 17:25:24 +0000 (17:25 +0000)
To test:
1 - Create a list in staff client
2 - Set XSLTResultsDisplay to blank
3 - View list, titles don't display
4 - Apply patch
5 - View list, titles display
6 - Set XSLTResultsDisplay to default
7 - View list, titles display as before patch

Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

virtualshelves/shelves.pl

index 8130c45..14bd34b 100755 (executable)
@@ -232,6 +232,7 @@ if ( $op eq 'view' ) {
 
                 my $marcflavour = C4::Context->preference("marcflavour");
                 my $itemtypeinfo = getitemtypeinfo( $content->biblionumber->biblioitems->first->itemtype, 'intranet' );
+                $this_item->{title}             = $content->biblionumber->title;
                 $this_item->{author}            = $content->biblionumber->author;
                 $this_item->{dateadded}         = $content->dateadded;
                 $this_item->{imageurl}          = $itemtypeinfo->{imageurl};