X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=opac%2Fopac-basket.pl;h=a50bdd57967e3d0d05134fa12af90f99b14e4296;hb=970b41ed2ef6b17c9361da6d3387f0424b04343e;hp=b36e8c1caf588d1b762738d36d7087779f9e77bf;hpb=70325977039de4b7c8915b20cb5979a185b5079c;p=koha.git diff --git a/opac/opac-basket.pl b/opac/opac-basket.pl index b36e8c1caf..a50bdd5796 100755 --- a/opac/opac-basket.pl +++ b/opac/opac-basket.pl @@ -62,6 +62,11 @@ foreach my $biblionumber ( @bibs ) { my $marcseriesarray = GetMarcSeries ($record,$marcflavour); my $marcurlsarray = GetMarcUrls ($record,$marcflavour); my @items = &GetItemsInfo( $biblionumber, 'opac' ); + + my $hasauthors = 0; + if($dat->{'author'} || @$marcauthorsarray) { + $hasauthors = 1; + } my $shelflocations =GetKohaAuthorisedValues('items.location',$dat->{'frameworkcode'}); my $collections = GetKohaAuthorisedValues('items.ccode',$dat->{'frameworkcode'} ); @@ -90,6 +95,7 @@ foreach my $biblionumber ( @bibs ) { $dat->{MARCAUTHORS} = $marcauthorsarray; $dat->{MARCSERIES} = $marcseriesarray; $dat->{MARCURLS} = $marcurlsarray; + $dat->{HASAUTHORS} = $hasauthors; if ( C4::Context->preference("BiblioDefaultView") eq "normal" ) { $dat->{dest} = "opac-detail.pl";