35 $sysFileFields = isset($params[
'options'][
'sys_file']) && is_array($params[
'options'][
'sys_file'])
36 ? $params[
'options'][
'sys_file']
39 if (empty($sysFileFields)) {
41 $params[
'title'] = $params[
'row'][
'uid'];
46 $fileRecord = $params[
'row'][
'uid_local'][0][
'row'];
50 foreach ($sysFileFields as $field) {
52 if ($field ===
'title') {
53 if (isset($params[
'row'][
'title'])) {
54 $fullTitle = $params[
'row'][
'title'];
57 $metaDataRepository = GeneralUtility::makeInstance(MetaDataRepository::class);
58 $metaData = $metaDataRepository->findByFileUid($fileRecord[
'uid']);
59 $fullTitle = $metaData[
'title'];
71 if (isset($params[
'row'][$field])) {
72 $value = htmlspecialchars($params[
'row'][$field]);
73 } elseif (isset($fileRecord[$field])) {
77 if ((
string)$value ===
'') {
81 $title[] =
'<dt>' . htmlspecialchars($labelText) .
'</dt>' .
'<dd>' . $value .
'</dd>';
83 $params[
'title'] =
'<dl>' . implode(
'', $title) .
'</dl>';