bibb-theme/templates/RecordDriver/SolrDefault/data-allRecordLinks.phtml

14 lines
651 B
PHTML
Executable File

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