X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-authoritiesdetail.pl;h=3e17cf18a95ac18134001775c87d5f2c7ca81006;hb=aace5d436dbab1f13e2e1c06d0b4ed5f1ec13ced;hp=ffe9734bc88714c33ce1da346f66c18806242140;hpb=7886297f05ece48185b2f046ae025a57643ee65c;p=koha_fer diff --git a/opac/opac-authoritiesdetail.pl b/opac/opac-authoritiesdetail.pl index ffe9734bc8..3e17cf18a9 100755 --- a/opac/opac-authoritiesdetail.pl +++ b/opac/opac-authoritiesdetail.pl @@ -67,6 +67,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); my $authid = $query->param('authid'); +$authid = int($authid); my $record = GetAuthority( $authid ); if ( ! $record ) { print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early @@ -121,7 +122,7 @@ if ($show_marc) { my @subfields_data; # skip UNIMARC fields <200, they are useless for a patron - next if C4::Context->preference('MarcFlavour') eq 'UNIMARC' && $field->tag() <200; + next if C4::Context->preference('marcflavour') eq 'UNIMARC' && $field->tag() <200; # if tag <10, there's no subfield, use the "@" trick if ( $field->tag() < 10 ) { @@ -133,6 +134,9 @@ if ($show_marc) { $subfield_data{marc_tag} = $field->tag(); push( @subfields_data, \%subfield_data ); } + elsif ( C4::Context->preference('marcflavour') eq 'MARC21' && $field->tag() eq 667 ) { + # tagfield 667 is a nonpublic general note in MARC21, which shouldn't be shown in the OPAC + } else { my @subf = $field->subfields;