if (sizeof($va_entities)) { if (sizeof($va_entities) == 1) { print "<H6>Related person/organisation</H6>"; } else { print "<H6>Related people/organisations</H6>"; } $t_rel_entity = new ca_entities(); foreach ($va_entities as $va_entity) { $t_rel_entity->load($va_entity["entity_id"]); $t_object_thumb->load($t_rel_entity->get("ca_objects.object_id", array("restrictToRelationshipTypes" => array("cover"), "checkAccess" => $va_access_values))); $vs_thumb = $t_object_thumb->get("ca_object_representations.media.icon", array("checkAccess" => $va_access_values)); if ($vs_thumb) { print "<div class='row'><div class='col-sm-3 col-md-3 col-lg-3'>" . $vs_thumb . "</div>\n"; print "<div class='col-sm-9 col-md-9 col-lg-9'>\n"; } print $t_rel_entity->getWithTemplate("<b><l>^ca_entities.preferred_labels.displayname</l></b>"); if ($vs_brief_description = $t_rel_entity->get("ca_entities.brief_description")) { print "<br/>" . $vs_brief_description; } if ($vs_thumb) { print "</div></div><!-- end row -->"; } else { print "<br/>"; } print "<br/>"; } } $va_collections = $t_item->get("ca_collections", array("returnAsArray" => true, "checkAccess" => $va_access_values)); if (sizeof($va_collections)) { print "<H6>Related collection" . (sizeof($va_collections) > 1 ? "s" : "") . "</H6>"; $t_rel_collection = new ca_collections();