Skip to content
Snippets Groups Projects
Commit 01eb8462 authored by Josef Moravec's avatar Josef Moravec Committed by Robert Lange
Browse files

Fix double colon in MARC links (#1725)

parent 547afd88
Branches
Tags
No related merge requests found
...@@ -643,7 +643,8 @@ trait MarcAdvancedTrait ...@@ -643,7 +643,8 @@ trait MarcAdvancedTrait
{ {
// If set, use relationship information from subfield i // If set, use relationship information from subfield i
if ($subfieldI = $field->getSubfield('i')) { if ($subfieldI = $field->getSubfield('i')) {
$data = trim($subfieldI->getData()); // VuFind will add a colon to the label, so prevent double colons:
$data = rtrim(trim($subfieldI->getData(), ':'));
if (!empty($data)) { if (!empty($data)) {
return $data; return $data;
} }
......
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