function bp_aps_get_interests($collection_query)
{
    $return = '';
    $collection_string = bp_aps_get_xprofile_value($collection_query, false);
    if ($collection_string != '') {
        $collection_array = explode(', ', $collection_string);
        foreach ($collection_array as $single) {
            $return .= bp_aps_wrap_value_in_link($single) . comma_if_not_last($collection_array, $single);
        }
    }
    return $return;
}
						<a href="<?php 
        bp_member_permalink();
        ?>
"><?php 
        echo bp_aps_get_member_display_name();
        ?>
</a>
					</div>
					<div class="member-list-cell col-3 item-location">
						<?php 
        echo bp_aps_get_linkable_location();
        ?>
					</div>
					<div class="member-list-cell col-4 item-institution">
						<?php 
        echo bp_aps_get_xprofile_value('Professional Affiliation: Name of institution');
        ?>
					</div>

					<div class="clear"></div>
				</li>

			<?php 
    }
    ?>

			</ul>

			<?php 
    do_action('bp_after_directory_members_list');
    ?>
    ?>
</td>
			</tr>
			
			<?php 
    bp_aps_show_extra_affiliations();
    ?>

			<tr <?php 
    bp_field_css_class();
    ?>
>
				<td class="label">Research/Current Projects</td>
				<td class="data">
					<?php 
    echo bp_aps_get_xprofile_value('Research/Current Projects', false);
    ?>
				</td>
			</tr>
			<tr <?php 
    bp_field_css_class();
    ?>
>
				<td class="label">Time Period Interests</td>
				<td class="data"><?php 
    echo bp_aps_get_interests('Research Interests: Time Period');
    ?>
</td>
			</tr>
			<tr <?php 
    bp_field_css_class();