getTotalResults()):
$hasResults = true;
?>
-
-
translate('Site pages'); ?>
-
- getContent() as $sitePage): ?>
- site(); ?>
- -
- hyperlink($sitePage->title(), $sitePage->siteUrl()); ?>
- hyperlink($site->title(), $site->siteUrl()); ?>
-
-
-
- hyperlink(
- sprintf($this->translate('View all results (%s total)'), $responseSitePages->getTotalResults()),
- $this->url(
- null,
- ['action' => 'site-pages'],
- ['query' => ['fulltext_search' => $fulltextSearch]],
- true
- )
- ); ?>
-
+ getContent() as $sitePage) {
+ array_push($sitePages, $sitePage);
+ }
+ echo $this->partial('common/cross-site-search/site-page-results', [
+ 'sitePages' => $sitePages,
+ ]);
+ ?>
-
getTotalResults()):
$hasResults = true;
?>
-
-
translate('Items'); ?>
-
- getContent() as $item): ?>
- sites(); ?>
- -
- displayTitle(); ?>
-
-
- - hyperlink($site->title(), $item->siteUrl($site->slug())); ?>
-
-
-
-
-
- hyperlink(
- sprintf($this->translate('View all results (%s total)'), $responseItems->getTotalResults()),
- $this->url(
- null,
- ['action' => 'items'],
- ['query' => ['fulltext_search' => $fulltextSearch]],
- true
- )
- ); ?>
-
+ getContent() as $item) {
+ array_push($items, $item);
+ }
+ echo $this->partial('common/cross-site-search/item-results', [
+ 'items' => $items,
+ ]);
+ ?>
-
-getTotalResults()):
- $hasResults = true;
-?>
-
-
translate('Item sets'); ?>
-
- getContent() as $itemSet): ?>
- sites(); ?>
- -
- displayTitle(); ?>
-
-
- - hyperlink($site->title(), $item->siteUrl($site->slug())); ?>
-
-
-
-
-
- hyperlink(
- sprintf($this->translate('View all results (%s total)'), $responseItemSets->getTotalResults()),
- $this->url(
- null,
- ['action' => 'item-sets'],
- ['query' => ['fulltext_search' => $fulltextSearch]],
- true
- )
- ); ?>
-
translate('No result found'); ?>
diff --git a/view/common/cross-site-search/site-page-results.phtml b/view/common/cross-site-search/site-page-results.phtml
index 70fce30..3d8d58d 100644
--- a/view/common/cross-site-search/site-page-results.phtml
+++ b/view/common/cross-site-search/site-page-results.phtml
@@ -1,17 +1,49 @@
-params()->fromQuery('fulltext_search'); ?>
+params()->fromQuery('fulltext_search');
+$archiveSiteHelper = $this->getHelperPluginManager()->get('archiveSiteMeta');
+$archive_collections = $archiveSiteHelper->getCollections();
+?>
-
translate('Site page results for "%s"'), $fulltextSearch); ?>
+
-view/common/cross-site-search/site-page-results.phtml
-
-
+
+
+
+ Page |
+ Site |
+ Curator |
+ Collection |
+ Date |
+
+
+
site(); ?>
- -
- hyperlink($sitePage->title(), $sitePage->siteUrl()); ?>
- hyperlink($site->title(), $site->siteUrl()); ?>
-
+ getSiteMetaValues($site); ?>
+
+
+ hyperlink($sitePage->title(), $sitePage->siteUrl()); ?>
+ |
+
+ hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?>
+ |
+
+
+ = $site_meta_values['currator']; ?>
+
+ |
+
+
+ = $archive_collections[$site_meta_values['collection']]; ?>
+
+ |
+
+
+ = $site_meta_values['project_date']; ?>
+
+ |
+
-
-
+
+
diff --git a/view/common/site-list-entry.phtml b/view/common/site-list-entry.phtml
index a2c38be..c4e0698 100644
--- a/view/common/site-list-entry.phtml
+++ b/view/common/site-list-entry.phtml
@@ -3,8 +3,7 @@ $summary = $showSummary ? $site->summary() : null;
?>
-
- = $site->title(); ?>
+ hyperlink($site->title(), $site->siteUrl(), ['class' => 'site-link']); ?>
|
diff --git a/view/layout/layout.phtml b/view/layout/layout.phtml
index 7e2d01c..f08446f 100644
--- a/view/layout/layout.phtml
+++ b/view/layout/layout.phtml
@@ -92,9 +92,6 @@ endif;
-
-Hello
-
content; ?>
|