use Template::Plugin;
use base qw( Template::Plugin );
use Encode qw{encode is_utf8};
use C4::Koha;
=pod
sub GetByCode {
my ( $self, $category, $code, $opac ) = @_;
my $av = GetAuthorisedValueByCode( $category, $code, $opac );
return GetAuthorisedValueByCode( $category, $code, $opac );
return $av;
}
1;
use C4::Context;
my $sth = C4::Context->dbh->prepare($query);
$sth->execute($branchcode);
my $b = $sth->fetchrow_hashref();
return $b->{branchname};
return $b ? $b->{'branchname'} : q{};
sub GetLoggedInBranchcode {
use Encode qw{encode decode};
-