use C4::Biblio qw( GetMarcUrls );
use C4::Context;
use C4::Output qw( output_html_with_http_headers );
-use C4::AuthoritiesMarc qw( GetAuthority BuildSummary );
+use C4::AuthoritiesMarc qw( GetAuthority BuildSummary GetTagsLabels GenerateHierarchy );
use CGI qw ( -utf8 );
use C4::Koha;
# find the marc field/subfield used in biblio by this authority
if ($show_marc) {
- my $tagslib = &GetTagsLabels( 0, $authtypecode );
+ my $tagslib = GetTagsLabels( 0, $authtypecode );
my $sth =
$dbh->prepare(
"select distinct tagfield from marc_subfield_structure where authtypecode=?"
} else {
my $summary = BuildSummary($record, $authid, $authtypecode);
$template->{VARS}->{'summary'} = $summary;
+
+ if ( C4::Context->preference('OPACAuthorIdentifiers') ) {
+ my $authority = Koha::Authorities->find($authid);
+ my $identifiers = $authority->get_identifiers;
+ $template->param( author_identifiers => $identifiers );
+ }
}
output_html_with_http_headers $query, $cookie, $template->output;