diff --git a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php index cf5e262c106ea2d6a1ca1a2b8da2da17b42d65d1..80645778afa8c43854b91e72487c35969780d5df 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php @@ -276,6 +276,8 @@ class RecordDataFormatter extends AbstractHelper $view = $this->getView(); $escaper = (isset($options['translate']) && $options['translate']) ? $view->plugin('transEsc') : $view->plugin('escapeHtml'); + $transDomain = isset($options['translationTextDomain']) + ? $options['translationTextDomain'] : ''; $separator = isset($options['separator']) ? $options['separator'] : '<br />'; $retVal = ''; @@ -283,7 +285,7 @@ class RecordDataFormatter extends AbstractHelper $remaining = count($data); foreach ($array as $line) { $remaining--; - $text = $escaper($line); + $text = $escaper($transDomain . $line); $retVal .= ($link = $this->getLink($line, $options)) ? '<a href="' . $link . '">' . $text . '</a>' : $text; if ($remaining > 0) {