( $type eq 'av' ? ( category => $code ) : () ),
};
}
if ( $col eq 'booksellerid' ) {
my $booksellerid = $self->booksellerid;
if ($booksellerid) {
my $bookseller = Koha::Acquisition::Booksellers->find( $booksellerid );
$strings->{$col} = {
str => $bookseller->name,
type => 'acquisition_source'
} if $bookseller;
return $strings;
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
return escape_str(row.acquisition_source);
return escape_str(row._strings.acquisition_source ? row._strings.acquisition_source.str : row.acquisition_source);
},
{
-