bibb-theme/templates/RecordDriver/SolrDefault/data-allRecordLinks.phtml
2026-02-24 07:35:06 +01:00

14 lines
627 B
PHTML
Executable File

<? foreach ($data as $recordLink): ?>
<? $link = str_replace("type=id","type=ctrlnum",$this->recordLink()->related($recordLink['link'])); ?>
<?=$this->transEsc($recordLink['title'])?>:
<? // print_r($recordLink['link']); ?>
<a href="<?= substr($link,0, -strlen("&jumpto=1")+1) ?>"><?=$this->escapeHtml($recordLink['value'])?></a><br />
<? endforeach; ?>
<? /* if we have record links, display relevant explanatory notes */
$related = $this->driver->getRelationshipNotes();
if (!empty($related)): ?>
<? foreach ($related as $field): ?>
<?=$this->escapeHtml($field)?><br/>
<? endforeach; ?>
<? endif; ?>