From 2000aa0c6d27d20c36b4cfd9b46c73914b304a24 Mon Sep 17 00:00:00 2001 From: Claas Kazzer <kazzer@ub.uni-leipzig.de> Date: Tue, 15 May 2018 15:54:05 +0200 Subject: [PATCH] refs #13194 * prevents display of empty lines when displaying values from merged fields --- themes/finc/templates/RecordTab/description.phtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/themes/finc/templates/RecordTab/description.phtml b/themes/finc/templates/RecordTab/description.phtml index 3e35a167776..8420678662f 100644 --- a/themes/finc/templates/RecordTab/description.phtml +++ b/themes/finc/templates/RecordTab/description.phtml @@ -11,7 +11,14 @@ $mainFields = $formatter->getData($driver, $formatter->getDefaults('description' <caption class="sr-only"><?=$this->transEsc('Description')?></caption> <? if (!empty($mainFields)): ?> <? foreach ($mainFields as $key => $current): ?> - <tr><th><?=$this->transEsc($key)?>:</th><td><?=$current['value']?></td></tr> + <? if ($key == null): ?> + <?=$current['value']?> + <? else: ?> + <tr> + <th><?=$this->transEsc($key)?>:</th> + <td><?=$current['value']?></td> + </tr> + <? endif; ?> <? endforeach; ?> <? else: ?> <tr><td><?=$this->transEsc('no_description')?></td></tr> -- GitLab