diff --git a/application/src/Api/Representation/AssetRepresentation.php b/application/src/Api/Representation/AssetRepresentation.php index c8c26438cb..ee30bc81f1 100644 --- a/application/src/Api/Representation/AssetRepresentation.php +++ b/application/src/Api/Representation/AssetRepresentation.php @@ -60,6 +60,11 @@ public function altText() return $this->resource->getAltText(); } + public function displayTitle() + { + return $this->name(); + } + public function thumbnail() { return $this; diff --git a/application/src/Api/Representation/SitePageRepresentation.php b/application/src/Api/Representation/SitePageRepresentation.php index 96b87cde50..4fe4a22807 100644 --- a/application/src/Api/Representation/SitePageRepresentation.php +++ b/application/src/Api/Representation/SitePageRepresentation.php @@ -72,6 +72,16 @@ public function isPublic() return $this->resource->isPublic(); } + /** + * Alias of title(). + * + * @return string + */ + public function displayTitle() + { + return $this->title(); + } + /** * Get the blocks assigned to this page. * diff --git a/application/src/Api/Representation/SiteRepresentation.php b/application/src/Api/Representation/SiteRepresentation.php index b1ba3ffbb6..f2fea3098f 100644 --- a/application/src/Api/Representation/SiteRepresentation.php +++ b/application/src/Api/Representation/SiteRepresentation.php @@ -255,6 +255,16 @@ public function owner() ->getRepresentation($this->resource->getOwner()); } + public function displayTitle() + { + return $this->title(); + } + + public function displayDescription() + { + return $this->summary(); + } + public function siteUrl($siteSlug = null, $canonical = false) { if (!$siteSlug) { diff --git a/application/view/omeka/site/index/search.phtml b/application/view/omeka/site/index/search.phtml index 370c7ecfaa..7ae929074c 100644 --- a/application/view/omeka/site/index/search.phtml +++ b/application/view/omeka/site/index/search.phtml @@ -28,13 +28,13 @@ $resourceControllers = [