Skip to content
Snippets Groups Projects
Commit 5946b5ec authored by Robert Lange's avatar Robert Lange Committed by Dorian Merz
Browse files

refs #20022 [fid_adlr] result list: add lazy fallback search in case of calling a missing record

* also do not check for existence of linked record on every call (implemented in 16914)
parent 3ee5a243
No related merge requests found
......@@ -62,7 +62,7 @@ if ($cover):
<?php $containerID = $this->driver->getContainerRecordID(); ?>
<?php /* TODO: handle highlighting more elegantly here: */ ?>
<?php if ($containerID): ?>
<?php $recordLinkUrl = $this->recordLink()->getUrl("$containerSource|$containerID"); ?>
<?php $recordLinkUrl = $this->recordLink()->getUrl("$containerSource|$containerID", $journalTitle, 'JournalTitle'); ?>
<?php if ($recordLinkUrl != ""): ?>
<a href="<?=$recordLinkUrl?>"><?=$this->highlight($journalTitle) ?></a>
<?php else: ?>
......@@ -83,7 +83,7 @@ if ($cover):
<?php foreach ($summInCollection as $collId => $collText): ?>
<div>
<strong><?=$this->transEsc("in_collection_label")?></strong>
<a class="collectionLinkText" href="<?=$this->recordLink()->getUrl($collId)?>">
<a class="collectionLinkText" href="<?=$this->recordLink()->getUrl($collId, $collId, 'ParentID')?>">
<?=$this->escapeHtml($collText)?>
</a>
</div>
......
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