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

refs #14567:

* added solr field output to staff view tab
parent dbf76753
No related merge requests found
<!-- finc: recordtab - staffviewarray --> <!-- finc: recordtab - staffviewai -->
<? <?
// Set page title. // Set page title.
$this->headTitle($this->translate('Staff View') . ': ' . $this->driver->getBreadcrumb()); $this->headTitle($this->translate('Staff View') . ': ' . $this->driver->getBreadcrumb());
?> ?>
<table class="citation table table-striped"> <table class="citation table table-striped">
<? foreach ($this->driver->getAIRecord() as $field => $values): ?> <? foreach ($this->driver->getAIRecord() as $field => $values): ?>
<tr> <tr>
<th><?=$this->escapeHtml($field)?></th> <th><?=$this->escapeHtml($field)?></th>
<td> <td>
<? if (!is_array($values)) { $values = array($values); } ?> <? if (!is_array($values)) { $values = array($values); } ?>
<? foreach ($values as $value): ?> <? foreach ($values as $value): ?>
<?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br /> <?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br />
<? endforeach; ?> <? endforeach; ?>
</td> </td>
</tr> </tr>
<? endforeach; ?> <? endforeach; ?>
<? /* the following introduced in 9934*/ ?>
<? if ($openURL = $this->driver->getOpenUrl()): ?>
<tr>
<th><?=$this->escapeHtml('openURL')?></th>
<td>
<?=$this->escapeHtml($openURL)?><br />
</td>
</tr>
<? endif; ?>
<? $fields = $this->driver->getRawData();
if (!empty($fields)): ?>
<tr><th><?=$this->translate('SOLR')?></th><td></td></tr>
<? ksort($fields);
foreach($fields as $key => $values): ?>
<? if ($key === 'fullrecord') continue;?>
<tr><th><?=$this->escapeHtml($key)?></th><td><?= $this->escapeHtml(is_array($values) ? implode(', ',$values) : $values)?></td></tr>
<? endforeach ?>
<? endif; ?>
</table> </table>
<!-- finc: recordtab - staffviewarray - END --> <!-- finc: recordtab - staffviewai - END -->
<!-- finc: recordtab - staffviewmarc -->
<?
// Set page title.
$this->headTitle($this->translate('Staff View') . ': ' . $this->driver->getBreadcrumb());
?>
<?=\VuFind\XSLT\Processor::process('record-marc.xsl', $this->driver->getXML('marc21'))?>
<? /* the following introduced in 9934*/ ?>
<? if ($openURL = $this->driver->getOpenUrl()): ?>
<tr>
<th><?=$this->escapeHtml('openURL')?></th>
<td>
<?=$this->escapeHtml($openURL)?><br />
</td>
</tr>
<? endif; ?>
<? $fields = $this->driver->getRawData();
if (!empty($fields)): ?>
<table class="citation table table-striped">
<caption><?=$this->translate('SOLR')?></caption>
<? ksort($fields);
foreach($fields as $key => $values): ?>
<? if ($key === 'fullrecord') continue;?>
<tr><th><?=$this->escapeHtml($key)?></th><td><?= $this->escapeHtml(is_array($values) ? implode(', ',$values) : $values)?></td></tr>
<? endforeach ?>
</table>
<? endif; ?>
<!-- finc: recordtab - staffviewmarc - 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