Skip to content
Snippets Groups Projects
Commit 56710127 authored by Viola Elsenhans's avatar Viola Elsenhans Committed by Mathias Maaß
Browse files

refs #24303 [finc] remove leading space of author link

parent 786dc766
No related merge requests found
...@@ -332,7 +332,8 @@ class Record extends \VuFind\View\Helper\Root\Record ...@@ -332,7 +332,8 @@ class Record extends \VuFind\View\Helper\Root\Record
if (preg_match('/(.*)(\d.*)/Uus', $author, $match)) { if (preg_match('/(.*)(\d.*)/Uus', $author, $match)) {
$author = (isset($match[1])) ? trim($match[1]) : $author; $author = (isset($match[1])) ? trim($match[1]) : $author;
} }
return $author; // remove leading space of $author
return ltrim($author);
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment