2021-05-08 18:27:48 +02:00
|
|
|
<?php
|
|
|
|
$fulltextSearch = $this->params()->fromQuery('fulltext_search');
|
|
|
|
$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
|
|
|
|
$archive_collections = $archiveSiteHelper->getCollections();
|
|
|
|
?>
|
2021-05-08 11:44:47 +02:00
|
|
|
|
2021-05-31 16:58:51 +02:00
|
|
|
|
|
|
|
|
2021-05-08 18:27:48 +02:00
|
|
|
<!-- <h2><?php echo sprintf($this->translate('Site page results for "%s"'), $fulltextSearch); ?></h2> -->
|
2021-05-08 11:44:47 +02:00
|
|
|
|
2021-05-08 14:09:02 +02:00
|
|
|
|
2021-05-08 18:27:48 +02:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Page</th>
|
|
|
|
<th>Site</th>
|
|
|
|
<th>Curator</th>
|
|
|
|
<th>Collection</th>
|
|
|
|
<th>Date</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-05-08 11:44:47 +02:00
|
|
|
<?php foreach ($sitePages as $sitePage): ?>
|
|
|
|
<?php $site = $sitePage->site(); ?>
|
2021-05-08 18:27:48 +02:00
|
|
|
<?php $site_meta_values = $archiveSiteHelper->getSiteMetaValues($site); ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?php echo $this->hyperlink($sitePage->title(), $sitePage->siteUrl()); ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php echo $this->hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php if ($site_meta_values != null): ?>
|
|
|
|
<?= $site_meta_values['currator']; ?><br />
|
|
|
|
<?php endif; ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php if ($site_meta_values != null): ?>
|
|
|
|
<?= $archive_collections[$site_meta_values['collection']]; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php if ($site_meta_values != null): ?>
|
|
|
|
<?= $site_meta_values['project_date']; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-05-08 11:44:47 +02:00
|
|
|
<?php endforeach; ?>
|
2021-05-08 18:27:48 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|