I’m working on the AdvancedSearch module and within resource-list.phtml file in view/search/ and trying to show one presentation of data for each item on one site but show a different presentation on another.
But I can’t seem to get the current site name.
the variable $site seems to be an instance of \Omeka\Api\Representation\SiteRepresentation
But if I call $site->displayTitle(), I get this error:
Call to undefined method Omeka\Api\Representation\SiteRepresentation::displayTitle() in /Applications/MAMP/htdocs/new/modules/AdvancedSearch/view/search/resource-list.phtml:76
And I can’t find any documentation for what methods are available for SiteRepresentation.
Does anyone know what I might be able to use for this purpose? Or is there a place I can read about what’s available for SiteRepresentation?
Actually I found a variable called $siteSlug set as
$siteSlug = $site ? $site->slug() : null;
So I could check it there.
Also, I didn’t check this but I think there’s a list of properties returned in the file SiteRepresentation.php in the folder application/src/Api/Representation/