transEsc($label . $str);
};
return '(' . implode(', ', array_unique(array_map($translate, $datafield))) . ')';
};
$formattedAuthors = [];
?>
$dataFields): ?>
=$this->escapeHtml($author)?>
// Display additional data using the appropriate translation prefix
// (for example, to render author roles correctly):
if (!empty($requiredDataFields)) {
foreach ($requiredDataFields as $field) {
$name = $field['name'];
$prefix = isset($field['prefix']) ? $field['prefix'] : '';
if (isset($dataFields[$name])) {
echo $formatProperty($dataFields[$name], $name, $prefix);
}
}
}
?>
// Strip whitespace before close tags to avoid spaces in front of commas:
$formattedAuthors[] = trim(preg_replace('/\s+<\//', '', ob_get_contents()));
ob_end_clean();
?>
=implode('; ', $formattedAuthors)?>