bibb-theme/templates/RecordTab/staffviewarray.phtml
2026-02-24 07:35:06 +01:00

28 lines
1.0 KiB
PHTML
Executable File

<?
// 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>
<? $displayFields = array('id','recordtype','citation','citationdr','collection', 'participation','researchfocus','license','rightslicense', 'rightsuri','rightsholder', 'embargoterms', 'embargoliftdate','url'); ?>
<? foreach ($this->driver->getRawData() as $field => $values): ?>
<? if (in_array($field,$displayFields)) : ?>
<tr>
<th><?=$this->escapeHtml($this->translate("BIBBFields::" .$field)) ?>:</th>
<td colspan="3">
<? if (!is_array($values)) { $values = [$values]; } ?>
<? foreach ($values as $value): ?>
<?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br />
<? endforeach; ?>
</td>
</tr>
<? endif; ?>
<? endforeach; ?>
</table>