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