use Modern::Perl;
use Encode;
use Template::Plugin;
use base qw( Template::Plugin );
sub GetByCode {
my ( $self, $category, $code, $opac ) = @_;
return GetAuthorisedValueByCode( $category, $code, $opac );
my $lib = GetAuthorisedValueByCode( $category, $code, $opac );
return Encode::encode_utf8($lib);
}
1;
use strict;
use warnings;
use Template::Plugin::Filter;
use base qw( Template::Plugin::Filter );
use C4::Branch qw( GetBranchName );;
use C4::Branch qw( GetBranchName );
sub filter {
my ($self,$branchcode) = @_;
return GetBranchName( $branchcode );
my $branchname = GetBranchName( $branchcode );
return Encode::encode_utf8($branchname);
-