Bug 16296 - Fix records displaying in virtualshelves
authorAlex Arnaud <alex.arnaud@biblibre.com>
Tue, 19 Apr 2016 15:18:41 +0000 (17:18 +0200)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Fri, 22 Apr 2016 22:50:41 +0000 (22:50 +0000)
Test plan:
- Empty OPACXSLTResultsDisplay system preference,
- select a virtual shelf in the dropdown list "Lists" on navigation bar
  (Or create one and add records),
- check that records are correctly displayed (title, author, publisher
  etc...).

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Display is now correct
No errors

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

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

opac/opac-shelves.pl

index 258044b..3d17bd6 100755 (executable)
@@ -250,8 +250,8 @@ if ( $op eq 'view' ) {
 
             my @items;
             while ( my $content = $contents->next ) {
-                my $this_item;
                 my $biblionumber = $content->biblionumber->biblionumber;
+                my $this_item    = GetBiblioData($biblionumber);
                 my $record       = GetMarcBiblio($biblionumber);
 
                 if ( C4::Context->preference("OPACXSLTResultsDisplay") ) {