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

refs #15188 [fid_bbi]

* display all subject headings extended
parent 364b8ca4
Branches
Tags
No related merge requests found
......@@ -416,7 +416,7 @@ class RecordDataFormatterFactory
'Language', 'getLanguages', 'data-transEscCommaSepLang.phtml'
);
$spec->setTemplateLine(
'Subjects', 'getAllSubjectHeadings', 'data-allSubjectHeadings.phtml'
'Subjects', 'getAllSubjectHeadingsExtended', 'data-allSubjectHeadingsExtended.phtml'
);
$spec->setTemplateLine(
'RVK', 'getRVK', 'data-rvk.phtml'
......
<?php foreach ($data as $field): ?>
<div class="subject-line" property="keywords">
<?php $subject = ''; ?>
<?php if (isset($field['subject'])): ?>
<?php if(count($field['subject']) == 1) $field = explode('--', $field['subject']); ?>
<?php $i = 0; foreach ($field['subject'] 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; ?>
<?php endif; ?>
</div>
<?php endforeach; ?>
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