Skip to content
Snippets Groups Projects
Commit ea5c80d3 authored by Alexander Purr's avatar Alexander Purr Committed by Dorian Merz
Browse files

refs #16002 [fid_adlr] don't render record link of parent record if link can't be resolved

parent 5f16219d
Branches
Tags
No related merge requests found
......@@ -60,7 +60,16 @@ if ($cover):
<?php $containerSource = $this->driver->getSourceIdentifier(); ?>
<?php $containerID = $this->driver->getContainerRecordID(); ?>
<?php /* TODO: handle highlighting more elegantly here: */ ?>
<a href="<?=($containerID ? $this->recordLink()->getUrl("$containerSource|$containerID") : $this->record($this->driver)->getLink('journaltitle', str_replace(['{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'], '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a>
<?php if ($containerID): ?>
<?php $recordLinkUrl = $this->recordLink()->getUrl("$containerSource|$containerID"); ?>
<?php if ($recordLinkUrl != ""): ?>
<a href="<?=$recordLinkUrl?>"><?=$this->highlight($journalTitle) ?></a>
<?php else: ?>
<?=$this->highlight($journalTitle) ?>
<?php endif; ?>
<?php else: ?>
<a href="<?=$this->record($this->driver)->getLink('journaltitle', str_replace(['{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'] , '', $journalTitle))?>"><?=$this->highlight($journalTitle) ?></a>
<?php endif; ?>
<?php /* finc-specific: nxt line #8639 - CK */ ?>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate) . ')' : ''?>
<?php elseif (!empty($summDate)): ?>
......
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