<?php
    // Set page title.
    $this->headTitle($this->translate('Staff View') . ': ' . $this->driver->getBreadcrumb());
?>
<table class="citation table table-striped">
  <tbody>
    <tr class="pace-car">
	<th width="15%"></th>
	<td width="5%"></td>
        <td width="5%"></td>
	<td width="*"></td>
    </tr>
  <?php $displayFields = array('id','recordtype','citation','citationdr','collection', 'participation','researchfocus','license','rightslicense', 'rightsuri','rightsholder', 'embargoterms', 'embargoliftdate','url'); ?>
  <?php foreach ($this->driver->getRawData() as $field => $values): ?>
    <?php if (in_array($field,$displayFields)) :  ?>
      <tr>
	<th><?=$this->escapeHtml($this->translate("BIBBFields::" .$field)) ?>:</th> 
        <td colspan="3">
          <?php if (!is_array($values)) { $values = [$values]; } ?>
          <?php foreach ($values as $value): ?>
	    <?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br />
          <?php endforeach; ?>
        </td>
      </tr>
    <?php endif; ?>
  <?php endforeach; ?>
</table>
