diff --git a/module/finc/src/finc/View/Helper/Root/Record.php b/module/finc/src/finc/View/Helper/Root/Record.php index 340f8980884318fa5765bd0b95292d4f85259f3e..d6f09bca3f8ea81a24b1d6fcca4466a45a938b15 100644 --- a/module/finc/src/finc/View/Helper/Root/Record.php +++ b/module/finc/src/finc/View/Helper/Root/Record.php @@ -197,7 +197,8 @@ class Record extends \VuFind\View\Helper\Root\Record $type == 'author' ? $this->removeAuthorDates($lookfor) : $lookfor ); - return parent::getLink($type, $lookfor); + /* remove invalid new line in link templates, remove after fixed in templates or VuFind parent */ + return str_replace(["\n"], '', parent::getLink($type, $lookfor) ?? ''); } /**