Bug 18400 - Noisy warns in opac-search.pl during itemtype sorting
[koha-ffzg.git] / opac / opac-downloadshelf.pl
index 142577b..51769c4 100755 (executable)
@@ -70,7 +70,7 @@ if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) {
         if ($format =~ /^\d+$/) {
             my @biblios;
             while ( my $content = $contents->next ) {
-                push @biblios, $content->biblionumber->biblionumber;
+                push @biblios, $content->biblionumber;
             }
             $output = marc2csv(\@biblios, $format);
         # Other formats
@@ -79,7 +79,7 @@ if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) {
                 filters => 'ViewPolicy'
             });
             while ( my $content = $contents->next ) {
-                my $biblionumber = $content->biblionumber->biblionumber;
+                my $biblionumber = $content->biblionumber;
 
                 my $record = GetMarcBiblio($biblionumber, 1);
                 my $framework = &GetFrameworkCode( $biblionumber );