<? foreach ($data as $field): ?>
  <div class="subject-line" property="keywords">
    <? $subject = ''; ?>
    <? if(count($field) == 1) $field = explode('--', $field[0]); ?>
    <? $i = 0; foreach ($field as $subfield): ?>
      <?=($i++ == 0) ? '' : ' &gt; '?>
      <? $subject = trim($subject . ' ' . $subfield); ?>
      <a title="<?=$this->escapeHtmlAttr($subject)?>" href="<?=$this->record($this->driver)->getLink('subject', $subject)?>" rel="nofollow"><?=trim($this->escapeHtml($subfield))?></a>
    <? endforeach; ?>
  </div>
<? endforeach; ?>
