Lines 557-569
if(!$authtypecode) {
Link Here
|
557 |
$authtypecode = $authid ? Koha::Authorities->find($authid)->authtypecode : ''; |
557 |
$authtypecode = $authid ? Koha::Authorities->find($authid)->authtypecode : ''; |
558 |
} |
558 |
} |
559 |
|
559 |
|
|
|
560 |
my $authobj = Koha::Authorities->find($authid); |
561 |
my $count = $authobj ? $authobj->get_usage_count : 0; |
562 |
|
560 |
my ($template, $loggedinuser, $cookie) |
563 |
my ($template, $loggedinuser, $cookie) |
561 |
= get_template_and_user({template_name => "authorities/authorities.tt", |
564 |
= get_template_and_user({template_name => "authorities/authorities.tt", |
562 |
query => $input, |
565 |
query => $input, |
563 |
type => "intranet", |
566 |
type => "intranet", |
564 |
flagsrequired => {editauthorities => 1}, |
567 |
flagsrequired => {editauthorities => 1}, |
565 |
}); |
568 |
}); |
566 |
$template->param(nonav => $nonav,index=>$myindex,authtypecode=>$authtypecode,breedingid=>$breedingid); |
569 |
$template->param(nonav => $nonav,index=>$myindex,authtypecode=>$authtypecode,breedingid=>$breedingid, count=>$count); |
567 |
|
570 |
|
568 |
$tagslib = GetTagsLabels(1,$authtypecode); |
571 |
$tagslib = GetTagsLabels(1,$authtypecode); |
569 |
$mandatory_z3950 = GetMandatoryFieldZ3950($authtypecode); |
572 |
$mandatory_z3950 = GetMandatoryFieldZ3950($authtypecode); |