Skip to content
Snippets Groups Projects
Commit 572925fa authored by Gregor Gawol's avatar Gregor Gawol Committed by Dorian Merz
Browse files

refs #18214 [master] allsubjects

* added additional template
parent 96877736
No related merge requests found
<!-- finc: RecordDriver - solrMarc data-allSubjectHeadingsWithExtended -->
<?php if(!empty($data)): ?>
<?php foreach ($data as $field): ?>
<div class="subject-line" property="keywords">
<?php $subject = ''; ?>
<?php if(count($field) == 1 && !isset($field['subject'])) $field = explode('--', $field[0]); ?>
<?php if(isset($field['subject'])): // extended topics ?>
<?php $field = $field['subject']; ?>
<?php endif; ?>
<?php $i = 0; foreach ($field as $subfield): ?>
<?=($i++ == 0) ? '' : ' &gt; '?>
<?php $subject = trim($subject . ' ' . $subfield); ?>
<a title="<?=$this->escapeHtmlAttr($subject)?>" href="<?=$this->record($this->driver)->getLink('subject', $subject)?>" rel="nofollow"><?=trim($this->escapeHtml($subfield))?></a>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
<!-- finc: RecordDriver - solrMarc data-allSubjectHeadingsWithExtended - END -->
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