X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=catalogue%2FMARCdetail.pl;h=2b967df2e68588ec1171568c9aaa60c289f123e0;hb=c39380ed4e3fbc3615dcbbd09800605102dcde57;hp=0a2974b1aa3ab9e353d0bb07e500150850c47ca4;hpb=432777e83388d9ea3d9f9c123e684b6830cd05e3;p=koha_fer diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl index 0a2974b1aa..2b967df2e6 100755 --- a/catalogue/MARCdetail.pl +++ b/catalogue/MARCdetail.pl @@ -82,7 +82,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $record = GetMarcBiblio($biblionumber); +my $record = GetMarcBiblio($biblionumber, 1); +$template->param( ocoins => GetCOinSBiblio($record) ); if ( not defined $record ) { # biblionumber invalid -> report and exit @@ -176,7 +177,7 @@ for ( my $tabloop = 0 ; $tabloop <= 10 ; $tabloop++ ) { # loop through each subfield for my $i ( 0 .. $#subf ) { - $subf[$i][0] = "@" unless $subf[$i][0]; + $subf[$i][0] = "@" unless defined $subf[$i][0]; next if ( $tagslib->{ $fields[$x_i]->tag() }->{ $subf[$i][0] }->{tab}