The issue is that the ca_object has relations with ca_entities as author, and what i want to show is the ca_entities.preferred_labels.name.
Not sure how to dig into this.
I narrowed my search to this code in browse_results_images_html.php
$vs_result_output = "
<div class='bResultItemCol col-xs-{$vn_col_span_xs} col-sm-{$vn_col_span_sm} col-md-{$vn_col_span}'>
<div class='bResultItem' id='row{$vn_id}' onmouseover='jQuery(\"#bResultItemExpandedInfo{$vn_id}\").show();' onmouseout='jQuery(\"#bResultItemExpandedInfo{$vn_id}\").hide();'>
<div class='bSetsSelectMultiple'><input type='checkbox' name='object_ids' value='{$vn_id}'></div>
<div class='bResultItemContent'><div class='text-center bResultItemImg'>{$vs_rep_detail_link}</div>
<div class='bResultItemText'>
<small>{$vs_idno_detail_link}</small><br/>{$vs_label_detail_link}
</div><!-- end bResultItemText -->
</div><!-- end bResultItemContent -->
<div class='bResultItemExpandedInfo' id='bResultItemExpandedInfo{$vn_id}'>
<hr>
{$vs_expanded_info}{$vs_add_to_set_link}
</div><!-- bResultItemExpandedInfo -->
</div><!-- end bResultItem -->
</div><!-- end col -->";
and a few lines above, i see
$vs_idno_detail_link = caDetailLink($this->request, $qr_res->get("{$vs_table}.idno"), '', $vs_table, $vn_id);
$vs_label_detail_link = caDetailLink($this->request, $qr_res->get("{$vs_table}.preferred_labels"), '', $vs_table, $vn_id);
What I would like is to have something like $vs_entity_detail link filtering the ca_entities with the relation type as author, kind of i have in the detail page for the ca_object with the code
<unit relativeTo="ca_entities" restrictToRelationshipTypes="author">^ca_entities.preferred_labels</unit>