Commit 7bb6f8f7 authored by Loraine Gueguen 's avatar Loraine Gueguen
Browse files

keep only common_name on the home page

parent 955702d1
......@@ -337,9 +337,7 @@
<div class="tripal-organism-teaser-title tripal-teaser-title">
<p class='data_highlight'>
<?php
print "<a href=\"".$GLOBALS['base_url']."/organism/".str_replace(' ', '-', $org->genus)."/".str_replace(' ', '-', $org->species)."\"><i>$org->genus $org->species</i>";
if (strtolower($org->common_name) != strtolower($org->genus[0].$org->species))
print " ($org->common_name)";
print "<a href=\"".$GLOBALS['base_url']."/organism/".str_replace(' ', '-', $org->genus)."/".str_replace(' ', '-', $org->species)."\"><i>$org->common_name</i>";
print "</a>";
?>
</p>
......@@ -376,9 +374,7 @@
<h4>
<?php
$org = $page['organisms'][$org_id];
print "<i>$org->genus $org->species</i>";
if (strtolower($org->common_name) != strtolower($org->genus[0].$org->species))
print " ($org->common_name)";
print "<i>$org->common_name</i>";
?>
</h4>
<?php else: ?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment